Skip to content

Commit

Permalink
Merge pull request #1751 from mailchimp/Issue1745-2.4
Browse files Browse the repository at this point in the history
closes #1745 for magento 2.4
  • Loading branch information
gonzaloebiz authored Jul 14, 2023
2 parents cfe6686 + da12bd8 commit 0aa3c09
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion view/adminhtml/web/js/configapikey.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ define(
self._changeAbandonedCart();
}
});

var ecommerceEnabled = $('#mailchimp_ecommerce_active').find(':selected').val();
var abandonedCartEnabled = $('#mailchimp_abandonedcart_active').find(':selected').val();
if (ecommerceEnabled == 0 && abandonedCartEnabled == 1) {
self._changeAbandonedCart();
}

},
_changeEcommerce: function () {
Expand Down

0 comments on commit 0aa3c09

Please sign in to comment.