Skip to content

Commit a6ed3e8

Browse files
committed
Add documentation
1 parent 9e60e92 commit a6ed3e8

File tree

7 files changed

+60
-51
lines changed

7 files changed

+60
-51
lines changed

Block/Adminhtml/System/Config/Form/Composer/Version.php

-10
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,6 @@ public function getVersion()
9696
return $this->getComposerVersion($this->getModuleName());
9797
}
9898

99-
/**
100-
* @return string
101-
*/
102-
public function getModuleName()
103-
{
104-
$classArray = explode('\\', get_class($this));
105-
106-
return count($classArray) > 2 ? "{$classArray[0]}_{$classArray[1]}" : '';
107-
}
108-
10999
/**
110100
* Get module composer version
111101
*

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

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Magento\Framework\View\Element\AbstractBlock;
1414
use MagePal\CheckoutSuccessMiscScript\Helper\Data;
1515

16-
1716
/**
1817
* Class MiscScript
1918
* @package MagePal\CheckoutSuccessMiscScript\Block\Adminhtml\System\Config\Form\Field

Block/Adminhtml/System/Config/Form/Module/Version.php

-11
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function __construct(
4444
*
4545
* @param AbstractElement $element
4646
* @return string
47-
* @throws LocalizedException
4847
*/
4948
public function render(AbstractElement $element)
5049
{
@@ -75,14 +74,4 @@ public function getVersion()
7574
$moduleInfo = $this->_moduleList->getOne($this->getModuleName());
7675
return $moduleInfo['setup_version'];
7776
}
78-
79-
/**
80-
* @return string
81-
*/
82-
public function getModuleName()
83-
{
84-
$classArray = explode('\\', get_class($this));
85-
86-
return count($classArray) > 2 ? "{$classArray[0]}_{$classArray[1]}" : '';
87-
}
8877
}

Helper/Data.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
use Magento\Framework\App\Helper\AbstractHelper;
1111
use Magento\Framework\App\Helper\Context;
12-
use Magento\Framework\ObjectManagerInterface;
12+
use Magento\Framework\Json\Helper\Data as JsonHelper;
1313
use Magento\Store\Model\ScopeInterface;
1414

1515
/**
@@ -34,17 +34,17 @@ class Data extends AbstractHelper
3434
const TEMPLATE_END = '}}';
3535

3636
/**
37-
* @var \Magento\Framework\Json\Helper\Data
37+
* @var JsonHelper
3838
*/
3939
protected $jsonHelper;
4040

4141
/**
4242
* @param Context $context
43-
* @param ObjectManagerInterface
43+
* @param JsonHelper $jsonHelper
4444
*/
4545
public function __construct(
4646
Context $context,
47-
\Magento\Framework\Json\Helper\Data $jsonHelper
47+
JsonHelper $jsonHelper
4848
) {
4949
parent::__construct($context);
5050
$this->jsonHelper = $jsonHelper;

README.md

+22-20
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,18 @@ Design beautiful order confirmation page with our new [Enhanced Success Page](ht
2121
- Coupon Code
2222
- Discount
2323

24-
## Installation
24+
## Documentation
2525

26-
#### Step 1
27-
##### Using Composer (recommended)
26+
- [How to Installing Order Confirmation Miscellaneous HTML and Scripts](https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2/#installation)
27+
28+
- [How to Configure Add Miscellaneous HTML and Scripts to Checkout Success Page](https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2/#configuration)
29+
30+
## Installation using Composer (recommended)
2831

2932
```
3033
composer require magepal/magento2-checkout-success-misc-script
3134
```
3235

33-
##### Manually
34-
* Download the extension
35-
* Unzip the file
36-
* Create a folder {Magento 2 root}/app/code/MagePal/CheckoutSuccessMiscScript
37-
* Copy the content from the unzip folder
38-
39-
40-
#### Step 2 - Enable extension (from {Magento root} folder)
41-
* php -f bin/magento module:enable --clear-static-content MagePal_CheckoutSuccessMiscScript
42-
* php -f bin/magento setup:upgrade
43-
44-
#### Step 3 - Configure Checkout Success Miscellaneous Scripts
45-
46-
Log into your Magento 2 Admin, then goto Stores -> Configuration -> MagePal -> Checkout
47-
4836
Contribution
4937
---
5038
Want to contribute to this extension? The quickest way is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).
@@ -55,9 +43,23 @@ If you encounter any problems or bugs, please open an issue on [GitHub](https://
5543

5644
Need help setting up or want to customize this extension to meet your business needs? Please email [email protected] and if we like your idea we will add this feature for free or at a discounted rate.
5745

58-
Top Magento 2 Extensions
46+
Magento 2 Extensions
5947
---
60-
[Custom SMTP](https://www.magepal.com/magento2/extensions/custom-smtp.html) | [Google Tag Manager](https://www.magepal.com/magento2/extensions/google-tag-manager.html) | [Enhanced E-commerce](https://www.magepal.com/magento2/extensions/enhanced-ecommerce-for-google-tag-manager.html) | [Reindex](https://www.magepal.com/magento2/extensions/reindex.html) | [Custom Shipping Method](https://www.magepal.com/magento2/extensions/custom-shipping-rates-for-magento-2.html) | [Preview Order Confirmation](https://www.magepal.com/magento2/extensions/preview-order-confirmation-page-for-magento-2.html) | [Guest to Customer](https://www.magepal.com/magento2/extensions/guest-to-customer.html) | [Admin Form Fields Manager](https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html) | [Customer Dashboard Links Manager](https://www.magepal.com/magento2/extensions/customer-dashboard-links-manager-for-magento-2.html) | [Lazy Loader](https://www.magepal.com/magento2/extensions/lazy-load.html) | [Order Confirmation Page Miscellaneous Scripts](https://www.magepal.com/magento2/extensions/order-confirmation-miscellaneous-scripts-for-magento-2.html)
48+
- [Custom SMTP](https://www.magepal.com/magento2/extensions/custom-smtp.html)
49+
- [Catalog Hover Image for Magento](https://www.magepal.com/magento2/extensions/catalog-hover-image-for-magento.html)
50+
- [Enhanced Success Page for Magento 2](https://www.magepal.com/magento2/extensions/enhanced-success-page.html)
51+
- [Enhanced Transactional Emails for Magento 2](https://www.magepal.com/magento2/extensions/enhanced-transactional-emails.html)
52+
- [Google Tag Manager](https://www.magepal.com/magento2/extensions/google-tag-manager.html)
53+
- [Enhanced E-commerce](https://www.magepal.com/magento2/extensions/enhanced-ecommerce-for-google-tag-manager.html)
54+
- [Reindex](https://www.magepal.com/magento2/extensions/reindex.html)
55+
- [Custom Shipping Method](https://www.magepal.com/magento2/extensions/custom-shipping-rates-for-magento-2.html)
56+
- [Preview Order Confirmation](https://www.magepal.com/magento2/extensions/preview-order-confirmation-page-for-magento-2.html)
57+
- [Guest to Customer](https://www.magepal.com/magento2/extensions/guest-to-customer.html)
58+
- [Admin Form Fields Manager](https://www.magepal.com/magento2/extensions/admin-form-fields-manager-for-magento-2.html)
59+
- [Customer Dashboard Links Manager](https://www.magepal.com/magento2/extensions/customer-dashboard-links-manager-for-magento-2.html)
60+
- [Lazy Loader](https://www.magepal.com/magento2/extensions/lazy-load.html)
61+
- [Order Confirmation Page Miscellaneous Scripts](https://www.magepal.com/magento2/extensions/order-confirmation-miscellaneous-scripts-for-magento-2.html)
62+
- [HTML Minifier for Magento2](https://www.magepal.com/magento2/extensions/html-minifier.html)
6163

6264
© MagePal LLC. | [www.magepal.com](http:/www.magepal.com)
6365

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "magepal/magento2-checkout-success-misc-script",
3-
"description": "Add Miscellaneous HTML and JavaScript codes to Magento2 checkout conformation page",
3+
"description": "Add Miscellaneous HTML and JavaScript codes to Magento2 checkout confirmation page",
44
"keywords": [
55
"magento 2",
66
"checkout tags",
@@ -21,7 +21,7 @@
2121
"magepal/magento2-preview-checkout-success-page":"Preview checkout success page from admin"
2222
},
2323
"type": "magento2-module",
24-
"version": "1.1.7",
24+
"version": "1.1.8",
2525
"license": [
2626
"proprietary"
2727
],

etc/adminhtml/system.xml

+32-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,39 @@
2020
<attribute type="expanded">1</attribute>
2121
<comment>
2222
<![CDATA[
23-
<strong>Copyright © 2019 <a href="http://www.magepal.com" target="_blank">www.magepal.com</a> / <a href="mailto:[email protected]">[email protected]</a></strong><br />
24-
Discover other must have extensions at <a href="https://www.magepal.com" target="_blank">www.magepal.com</a>. Thanks for choosing MagePal Extensions.<br/><br/>
23+
<div id="magepal-info-csms">
24+
Copyright © 2019 <a href="https://www.magepal.com/magento2/extensions.html?utm_source=miscellaneous-scripts&utm_medium=admin" target="_blank">MagePal, LLC</a>
25+
<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>
26+
<a href="https://www.magepal.com/help/docs/success-page-miscellaneous-scripts-magento-2/?utm_source=miscellaneous-scripts&utm_medium=admin#support">Support</a>
27+
<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>
28+
<a href="https://www.magepal.com/order-confirmation-miscellaneous-scripts-for-magento-2.html?utm_source=miscellaneous-scripts&utm_medium=admin" target="_blank">Extension Detail</a>
29+
<a href="https://www.magepal.com/magento2/extensions.html?utm_source=miscellaneous-scripts&utm_medium=admin" target="_blank">More Extensions</a>
30+
</div>
31+
<div>
32+
Design beautiful order confirmation page with our new <a href="https://www.magepal.com/enhanced-success-page.html">Enhanced Success Page</a> extension.
33+
</div>
2534
<hr style="border-top: 1px solid #e3e3e3" />
26-
]]>
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>]]>
2756
</comment>
2857
<field id="module_version" translate="label" type="label" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
2958
<label>Module Version</label>

0 commit comments

Comments
 (0)