From b221b6e493c4d821f38f40a0076c888235cc0a96 Mon Sep 17 00:00:00 2001 From: gonzalo Date: Wed, 23 Jul 2025 14:50:33 -0300 Subject: [PATCH 1/4] configapikey #2167 for magento 2.4 --- view/adminhtml/web/js/configapikey.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/view/adminhtml/web/js/configapikey.js b/view/adminhtml/web/js/configapikey.js index 26521fa5..08b12b42 100644 --- a/view/adminhtml/web/js/configapikey.js +++ b/view/adminhtml/web/js/configapikey.js @@ -367,6 +367,18 @@ define( } } }); + confirmation( { + content: "Confirm your data", + actions: { + confirm: function () { + alert({content: 'you confirm'}); + }, + cancel: function () { + alert({content: 'you not confirm'}); + } + } + } + ); }); } }); From 5f9d66024285b4ea7388c544a72009f12e1cb11e Mon Sep 17 00:00:00 2001 From: gonzalo Date: Fri, 25 Jul 2025 13:36:14 -0300 Subject: [PATCH 2/4] configapikey for magento 2.4 --- view/adminhtml/web/js/configapikey.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/view/adminhtml/web/js/configapikey.js b/view/adminhtml/web/js/configapikey.js index 08b12b42..331e9f3c 100644 --- a/view/adminhtml/web/js/configapikey.js +++ b/view/adminhtml/web/js/configapikey.js @@ -319,6 +319,7 @@ define( var apiKey = $('#mailchimp_general_apikey').val(); var selectedStore = $('#mailchimp_general_monkeystore').find(':selected').val(); var encrypt = 0; + var accountdata = []; if (apiKey == '******') { encrypt = 3; } @@ -334,8 +335,13 @@ define( $.each(data, function (i, item) { if (item.hasOwnProperty('label')) { $('#mailchimp_general_account_details_ul').append('
  • ' + item.label + ' ' + item.value + '
  • '); + } else if (item.hasOwnProperty('html')) { + accountdata[item.html] = item.value; } }); + accountdata.forEach(function (value, index) { + alert({content: index+' '+value}); + }) if (data.list_id) { $('#mailchimp_general_monkeylist').append($('