Skip to content

Commit 754fc9f

Browse files
committed
Minor improvements
1 parent 63e67bf commit 754fc9f

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Controller/Adminhtml/Container/Generate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,13 @@ public function execute()
106106
/** @var Redirect $resultRedirect */
107107
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
108108

109+
/* Ability to generate JSON file even if the module is disabled.
109110
if (!$this->config->isEnabled()) {
110111
$this->messageManager
111112
->addErrorMessage(__('To generate a JSON container, please enable the extension first.'));
112113
return $resultRedirect->setPath($this->redirect->getRefererUrl());
113114
}
115+
*/
114116

115117
try {
116118
$storeId = (string)$this->getRequest()->getParam('store_id') ?: null;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"email": "[email protected]"
1010
}
1111
],
12-
"version": "2.0.3",
12+
"version": "2.1.0",
1313
"require": {
1414
"magefan/module-community" : ">=2.1.13"
1515
},

etc/adminhtml/system.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
<field id="account_id" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
3434
<label>Account ID</label>
3535
<comment><![CDATA[
36-
<p>Please get the Google Tag Manager account ID from the GTM Workspace URL path. E.g.<br/>
36+
<p>Please get the <a href="https://tagmanager.google.com/" title="Google Tag Manager" target="_blank">Google Tag Manager</a> account ID from the GTM Workspace URL path. E.g.<br/>
3737
<pre style="border: 1px dashed #5f5f5f;padding: 5px;background: #f4f4f4;">https://tagmanager.google.com/#/container/accounts/<strong>XXXXXXXXXX</strong>/containers/XXXXXXXXX</pre></p>
3838
]]>
3939
</comment>
4040
</field>
4141
<field id="container_id" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
4242
<label>Container ID</label>
4343
<comment><![CDATA[
44-
<p>Please get the Google Tag Manager container ID from the GTM Workspace URL path. E.g.<br/>
44+
<p>Please get the <a href="https://tagmanager.google.com/" title="Google Tag Manager" target="_blank">Google Tag Manager</a> container ID from the GTM Workspace URL path. E.g.<br/>
4545
<pre style="border: 1px dashed #5f5f5f;padding: 5px;background: #f4f4f4;">https://tagmanager.google.com/#/container/accounts/XXXXXXXXXX/containers/<strong>XXXXXXXXX</strong></pre></p>
4646
]]>
4747
</comment>

view/adminhtml/templates/system/config/button/button.phtml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ if (!isset($escaper)) {
2222
<button type="button" id="mf_download">
2323
<?= $escaper->escapeHtml(__('Generate JSON Container & Download File')); ?>
2424
</button>
25+
<p>
26+
<br/>
27+
<?= __('Once the JSON file is downloaded, upload it to %1 > Choose Container > Admin > Import Container.', '<a href="https://tagmanager.google.com/" title="Google Tag Manager" target="_blank">Google Tag Manager</a>') ?>
28+
</p>
2529
<script>
2630
require([
2731
'jquery',

0 commit comments

Comments
 (0)