diff --git a/view/adminhtml/web/js/configapikey.js b/view/adminhtml/web/js/configapikey.js index 7e18ecb3..c1870881 100644 --- a/view/adminhtml/web/js/configapikey.js +++ b/view/adminhtml/web/js/configapikey.js @@ -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 () {