diff --git a/Amasty_GiftCard/requirejs-config.js b/Amasty_GiftCard/requirejs-config.js new file mode 100644 index 000000000..206514d68 --- /dev/null +++ b/Amasty_GiftCard/requirejs-config.js @@ -0,0 +1,10 @@ +/* eslint-disable no-unused-vars */ +var config = { + config: { + mixins: { + 'Amasty_GiftCard/js/giftcard': { + 'Amasty_GiftCard/js/giftcard-mixin': true + } + } + } +}; diff --git a/Amasty_GiftCard/web/js/giftcard-mixin.js b/Amasty_GiftCard/web/js/giftcard-mixin.js new file mode 100644 index 000000000..1d73dac24 --- /dev/null +++ b/Amasty_GiftCard/web/js/giftcard-mixin.js @@ -0,0 +1,13 @@ +define([], function () { + 'use strict'; + + return function (Component) { + return Component.extend({ + defaults: { + element: { + addToCardButton: '.tocart', + } + } + }); + }; +});