Skip to content

Commit 3d1586e

Browse files
committed
Code Refactoring
1 parent 1eaa9c1 commit 3d1586e

File tree

4 files changed

+8
-35
lines changed

4 files changed

+8
-35
lines changed

Block/Adminhtml/System/Config/Form/Field/MiscScript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getTemplateButtonList()
8787

8888
foreach ($this->helper->getTemplateVariableKey() as $key) {
8989
$html .= sprintf(
90-
'<%s style="%s" data-mage-init=\\\'%s\\\' type="button"> %s </button>',
90+
'<%s style="%s" data-mage-init=\\\'%s\\\' type="button">%s</button>',
9191
'button',
9292
'margin:3px;',
9393
'{"checkoutSuccessMiscScript":{"textareaId":"<%- _id %>_scripts"}}',

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
[![GitHub stars](https://img.shields.io/github/stars/magepal/magento2-checkout-success-misc-script.svg)](https://www.magepal.com/order-confirmation-miscellaneous-scripts-for-magento-2.html)
88
[![GitHub forks](https://img.shields.io/github/forks/magepal/magento2-checkout-success-misc-script.svg)](https://www.magepal.com/order-confirmation-miscellaneous-scripts-for-magento-2.html)
99

10-
11-
1210
<a href="https://www.magepal.com/order-confirmation-miscellaneous-scripts-for-magento-2.html" ><img alt="Magento2 - Edit Order Email" src="https://user-images.githubusercontent.com/1415141/108899005-e717f680-75e5-11eb-9df8-719925e05baa.png" /></a>
1311

1412
Add miscellaneous HTML and scripts quickly and easily to your Magento2 checkout success page. Ideal for testing new page styling of your order confirmation page, adding new static blocks or other customization to your checkout page.

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"php": "~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.1.3|~7.2.0|~7.3.0|~7.4.0",
1717
"magento/module-backend": "100.0.*|100.1.*|100.2.*|101.0.*|102.0.*",
1818
"magento/framework": "100.0.*|100.1.*|101.0.*|102.0.*|103.0.*",
19-
"magepal/magento2-core":">1.1.0"
19+
"magepal/magento2-core": ">=1.1.0"
2020
},
2121
"suggest": {
2222
"magepal/magento2-preview-checkout-success-page":"Preview checkout success page from admin"
2323
},
2424
"type": "magento2-module",
25-
"version": "1.2.0",
25+
"version": "1.2.1",
2626
"license": [
2727
"proprietary"
2828
],

etc/adminhtml/system.xml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<attribute type="expanded">1</attribute>
2121
<comment>
2222
<![CDATA[
23-
<div id="magepal-info-csms">
24-
Copyright © 2020 <a href="https://www.magepal.com/magento2/extensions.html?utm_source=miscellaneous-scripts&utm_medium=admin" target="_blank">MagePal, LLC</a>
23+
<div class="magepal-info">
24+
Copyright © 2021 <a href="https://www.magepal.com/magento2/extensions.html?utm_source=miscellaneous-scripts&utm_medium=admin" target="_blank">MagePal, LLC</a>
2525
<a href="https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2/?utm_source=miscellaneous-scripts&utm_medium=admin#documentation" target="_blank">Documentation</a>
2626
<a href="https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2/?utm_source=miscellaneous-scripts&utm_medium=admin#support">Support</a>
2727
<a href="https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2?utm_source=miscellaneous-scripts&utm_medium=admin#current_version" target="_blank">Latest Version</a>
@@ -31,34 +31,10 @@
3131
<div>
3232
Design beautiful order confirmation page with our new <a href="https://www.magepal.com/enhanced-success-page.html">Enhanced Success Page</a> extension.
3333
</div>
34-
<hr style="border-top: 1px solid #e3e3e3" />
35-
<style>
36-
#magepal-info-csms a {
37-
font-weight: bold;
38-
border-left: 2px solid #e3e3e3;
39-
padding-left:10px;
40-
padding-right:10px;
41-
color: #ef7e1e;
42-
}
43-
44-
#magepal-info-csms a:first-child {
45-
padding-left: 5px;
46-
border-left: none;
47-
}
48-
49-
#magepal-info-csms {
50-
padding-bottom: 5px;
51-
}
52-
.section-config.active #magepal_checkout_preview_success_page-head {
53-
padding-bottom: 0px;
54-
}
55-
</style>]]>
34+
<hr class="magepal-hr" />
35+
]]>
5636
</comment>
57-
<field id="module_version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
58-
<label>Module Version</label>
59-
<frontend_model>MagePal\CheckoutSuccessMiscScript\Block\Adminhtml\System\Config\Form\Module\Version</frontend_model>
60-
</field>
61-
<field id="composer_version" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
37+
<field id="MagePal_CheckoutSuccessMiscScript" translate="label" type="label" sortOrder="1" showInDefault="1" showInWebsite="0" showInStore="0">
6238
<label>Composer Version</label>
6339
<frontend_model>MagePal\CheckoutSuccessMiscScript\Block\Adminhtml\System\Config\Form\Composer\Version</frontend_model>
6440
</field>
@@ -70,7 +46,6 @@
7046
<label>HTML and Scripts</label>
7147
<frontend_model>MagePal\CheckoutSuccessMiscScript\Block\Adminhtml\System\Config\Form\Field\MiscScript</frontend_model>
7248
<backend_model>MagePal\CheckoutSuccessMiscScript\Model\Config\Backend\Serialized\MiscScriptArraySerialized</backend_model>
73-
<comment></comment>
7449
<depends>
7550
<field id="*/*/active">1</field>
7651
</depends>

0 commit comments

Comments
 (0)