Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
#86672 update addToCardButton selector so that validation works prope…
Browse files Browse the repository at this point in the history
…rly when clicking add to cart sticky
  • Loading branch information
ofrankowska committed Feb 28, 2022
1 parent 4b94026 commit c950646
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Amasty_GiftCard/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable no-unused-vars */
var config = {
config: {
mixins: {
'Amasty_GiftCard/js/giftcard': {
'Amasty_GiftCard/js/giftcard-mixin': true
}
}
}
};
13 changes: 13 additions & 0 deletions Amasty_GiftCard/web/js/giftcard-mixin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
define([], function () {
'use strict';

return function (Component) {
return Component.extend({
defaults: {
element: {
addToCardButton: '.tocart',
}
}
});
};
});

0 comments on commit c950646

Please sign in to comment.