-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1846 from mailchimp/Issue1841-2.4
closes #1841 for magento 2.4
- Loading branch information
Showing
21 changed files
with
292 additions
and
192 deletions.
There are no files selected for viewing
132 changes: 70 additions & 62 deletions
132
view/adminhtml/templates/customer/edit/tabs/mailchimp.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
view/adminhtml/templates/system/config/cleanecommerce.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div class="actions actions-clean-ecommerce"> | ||
<div id="validation_result" class="message-validation hidden"></div> | ||
<button class="action-clean-ecommerce" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button class="action-clean-ecommerce" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> |
11 changes: 8 additions & 3 deletions
11
view/adminhtml/templates/system/config/create_abandonedcart_automation.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div class="actions actions-get-apikey"> | ||
<button onclick="javascript:window.open('<?php echo $this->authorizeRequestUrl() ?>', 'apiwizard','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=100, top=100, width=800, height=600'); return false;" class="action-get-apikey" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button onclick="javascript:window.open('<?= $escaper->escapeUrl($block->authorizeRequestUrl()) ?>', 'apiwizard','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=100, top=100, width=800, height=600'); return false;" class="action-get-apikey" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> | ||
</div> |
9 changes: 7 additions & 2 deletions
9
view/adminhtml/templates/system/config/createwebhook.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div class="actions actions-create-webhook"> | ||
<div id="validation_result" class="message-validation hidden"></div> | ||
<button class="action-create-webhook" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button class="action-create-webhook" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> |
9 changes: 7 additions & 2 deletions
9
view/adminhtml/templates/system/config/deletestore.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div id="monkey_storeconfirmation" style="display:none;" data-mage-init='{"mailchimpconfirmation":{}}'> | ||
</div> | ||
<div class="actions actions-delete-store"> | ||
<div id="validation_result" class="message-validation hidden"></div> | ||
<button onclick="mailchimpdeleteconfirmation('<?php echo $this->getAjaxCheckUrl() ?>')" class="action-delete-store" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button onclick="mailchimpdeleteconfirmation('<?= $escaper->escapeUrl($block->getAjaxCheckUrl()) ?>')" class="action-delete-store" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,33 +8,37 @@ | |
* @copyright Ebizmarts (http://ebizmarts.com) | ||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) | ||
*/ | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
|
||
?> | ||
<div id="configmonkey_apikey" class="admin__page-section-item" style="display:none;" | ||
data-mage-init='{"configmonkeyapikey":{ | ||
"storeUrl": "<?php echo $this->getUrl('mailchimp/stores/get');?>", | ||
"detailsUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/getaccountdetails');?>", | ||
"storeGridUrl": "<?php echo $this->getUrl('mailchimp/stores/index');?>", | ||
"createWebhookUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/createWebhook');?>", | ||
"getInterestUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/getInterest');?>", | ||
"resyncSubscribersUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/resyncSubscribers');?>", | ||
"resyncProductsUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/resyncProducts');?>", | ||
"cleanEcommerceUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/cleanEcommerce');?>", | ||
"checkEcommerceUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/checkEcommerce');?>", | ||
"fixMailchimpjsUrl": "<?php echo $this->getUrl('mailchimp/ecommerce/fixMailchimpJS');?>", | ||
"scope": "<?php echo $this->getScope();?>", | ||
"scopeId": "<?php echo $this->getScopeId(); ?>" | ||
"storeUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/stores/get'));?>", | ||
"detailsUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/getaccountdetails'));?>", | ||
"storeGridUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/stores/index'));?>", | ||
"createWebhookUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/createWebhook'));?>", | ||
"getInterestUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/getInterest'));?>", | ||
"resyncSubscribersUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/resyncSubscribers'));?>", | ||
"resyncProductsUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/resyncProducts'));?>", | ||
"cleanEcommerceUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/cleanEcommerce'));?>", | ||
"checkEcommerceUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/checkEcommerce'));?>", | ||
"fixMailchimpjsUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/ecommerce/fixMailchimpJS'));?>", | ||
"scope": "<?= $escaper->escapeHtml($block->getScope());?>", | ||
"scopeId": "<?= $escaper->escapeUrl($block->getScopeId()); ?>" | ||
}}'> | ||
</div> | ||
<div style="background:#EAF0EE;border:1px solid #CCCCCC;margin-bottom:10px;padding:11px 0 0 10px;"> | ||
<h4> | ||
<img width="224px" style="padding-left: 15px;" height="60px" src="https://ebizmarts-website.s3.amazonaws.com/Logo_Ebizmarts.png"/><br><br> | ||
<div style="padding-left: 15px;"> | ||
<p> <strong style="color:#EA7601;"><?php echo __('Mailchimp v') ?><?php echo $this->getModuleVersion() ?><?php echo __(' by') ?></strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a></p> | ||
<p><?php echo __('Need help? See our ') ?><a href="https://github.com/mailchimp/mc-magento2/wiki" target="_blank"><?php echo __('Wiki') ?></a><?php echo __(' Got feedback? ') ?><a href="mailto:[email protected]?Subject=MailChimp For Magento Version <?php echo $this->getModuleVersion()?>"><?php echo __('Email us') ?></a></p> | ||
<p><?php echo __('You can find more extension in our ') ?><a href="http://store.ebizmarts.com" target="_blank"><?php echo __('Store') ?></a></p> | ||
<?php if (!$this->getHasApiKey() ) : ?> | ||
<p> <strong style="color:#EA7601;"><?= $escaper->escapeHtml(__('Mailchimp v')) ?><?= $escaper->escapeHtml($block->getModuleVersion()) ?><?= $escaper->escapeHtml(__(' by')) ?></strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a></p> | ||
<p><?= $escaper->escapeHtml(__('Need help? See our ')) ?><a href="https://github.com/mailchimp/mc-magento2/wiki" target="_blank"><?= $escaper->escapeHtml(__('Wiki')) ?></a><?= $escaper->escapeUrl(__(' Got feedback? ')) ?><a href="mailto:[email protected]?Subject=MailChimp For Magento Version <?= $escaper->escapeHtml($block->getModuleVersion())?>"><?= $escaper->escapeHtml(__('Email us')) ?></a></p> | ||
<p><?= $escaper->escapeHtml(__('You can find more extension in our ')) ?><a href="http://store.ebizmarts.com" target="_blank"><?= $escaper->escapeUrl(__('Store')) ?></a></p> | ||
<?php if (!$block->getHasApiKey()): ?> | ||
<p><a style="padding-top: 5px;padding-bottom:5px;padding-left: 30px;padding-right: 30px;background-color:#D75F07 ;color:white;font-weight: bold" href="https://bit.ly/2KpDH5C" target="_blank">Support Mailchimp4Magento, Subscribe for a free Mailchimp Account!</a> </p> | ||
<?php endif; ?> | ||
</div> | ||
</h4> | ||
</div> | ||
</div> |
9 changes: 7 additions & 2 deletions
9
view/adminhtml/templates/system/config/fixmailchimpjs.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div class="actions actions-fix-mailchimp-js"> | ||
<div id="validation_result" class="message-validation hidden"></div> | ||
<button class="action-fix-mailchimp-js" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button class="action-fix-mailchimp-js" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> |
9 changes: 7 additions & 2 deletions
9
view/adminhtml/templates/system/config/js.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div id="monkey_apikey" class="admin__page-section-item" style="display:none;" | ||
data-mage-init='{"monkeyapikey":{"apikeyUrl": "<?php echo $this->getUrl('mailchimp/lists/get');?>"}}'> | ||
</div> | ||
data-mage-init='{"monkeyapikey":{"apikeyUrl": "<?= $escaper->escapeUrl($block->getUrl('mailchimp/lists/get')); ?>"}}'> | ||
</div> |
11 changes: 8 additions & 3 deletions
11
view/adminhtml/templates/system/config/oauth_wizard.phtml
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<?php | ||
/** | ||
* @var $escaper \Magento\Framework\Escaper | ||
*/ | ||
?> | ||
<div class="actions actions-get-apikey"> | ||
<div id="validation_result" class="message-validation hidden"></div> | ||
<button onclick="javascript:window.open('<?php echo $this->authorizeRequestUrl() ?>', 'apiwizard','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=100, top=100, width=500, height=700'); return false;" class="action-get-apikey" type="button" id="<?php echo $block->getHtmlId() ?>"> | ||
<span><?php echo $block->escapeHtml($block->getButtonLabel()) ?></span> | ||
<button onclick="javascript:window.open('<?= $escaper->escapeUrl($block->authorizeRequestUrl()) ?>', 'apiwizard','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, ,left=100, top=100, width=500, height=700'); return false;" class="action-get-apikey" type="button" id="<?= $block->getHtmlId() ?>"> | ||
<span><?= $escaper->escapeHtml($block->getButtonLabel()) ?></span> | ||
</button> | ||
</div> | ||
</div> |
Oops, something went wrong.