Version Notes
Update:
* added the ability to set prefix and ending for 'ecomm_prodid' (for all type products or only for configurable and grouped products).
Download this release
Release Info
| Developer | Vladas Tomkevicius |
| Extension | Anaraky_GDRT_1 |
| Version | 1.0.7 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.6 to 1.0.7
app/code/community/Anaraky/Gdrt/Block/Script.php
CHANGED
|
@@ -1,15 +1,50 @@
|
|
| 1 |
<?php
|
| 2 |
class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
private function getParams()
|
| 5 |
{
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
$inclTax = false;
|
| 12 |
-
if ((int)Mage::getStoreConfig('gdrt/general/gdrt_tax', $
|
| 13 |
$inclTax = true;
|
| 14 |
|
| 15 |
$type = $this->getData('pageType');
|
|
@@ -37,7 +72,7 @@ class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
|
| 37 |
$totalvalue = Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), $inclTax);
|
| 38 |
|
| 39 |
$params = array(
|
| 40 |
-
'ecomm_prodid' =>
|
| 41 |
'ecomm_pagetype' => 'product',
|
| 42 |
'ecomm_totalvalue' => (float)number_format($totalvalue, '2', '.', '')
|
| 43 |
);
|
|
@@ -53,7 +88,7 @@ class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
|
| 53 |
$totalvalue = 0;
|
| 54 |
foreach ($items as $item)
|
| 55 |
{
|
| 56 |
-
$data[0][] =
|
| 57 |
$data[1][] = (int)$item->getQty();
|
| 58 |
$totalvalue += $inclTax ? $item->getRowTotalInclTax() : $item->getRowTotal();
|
| 59 |
}
|
|
@@ -82,7 +117,7 @@ class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
|
| 82 |
|
| 83 |
foreach ($items as $item)
|
| 84 |
{
|
| 85 |
-
$data[0][] =
|
| 86 |
$data[1][] = (int)$item->getQtyToInvoice();
|
| 87 |
$totalvalue += $inclTax ? $item->getRowTotalInclTax() : $item->getRowTotal();
|
| 88 |
}
|
|
@@ -173,9 +208,9 @@ class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
|
| 173 |
|
| 174 |
protected function _toHtml()
|
| 175 |
{
|
| 176 |
-
$
|
| 177 |
-
$gcId = (int)Mage::getStoreConfig('gdrt/general/gc_id', $
|
| 178 |
-
$gcLabel = trim(Mage::getStoreConfig('gdrt/general/gc_label', $
|
| 179 |
$gcParams = $this->getParams();
|
| 180 |
|
| 181 |
$s = PHP_EOL .
|
|
@@ -196,9 +231,9 @@ class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
|
| 196 |
'</div>' . PHP_EOL .
|
| 197 |
'</noscript>';
|
| 198 |
|
| 199 |
-
if ((int)Mage::getStoreConfig('gdrt/debug/show_info', $
|
| 200 |
{
|
| 201 |
-
$lk = str_replace(' ', '', Mage::getStoreConfig('dev/restrict/allow_ips', $
|
| 202 |
$ips = explode(',', $lk);
|
| 203 |
if (empty($ips[0]) || in_array(Mage::helper('core/http')->getRemoteAddr(), $ips))
|
| 204 |
{
|
| 1 |
<?php
|
| 2 |
class Anaraky_Gdrt_Block_Script extends Mage_Core_Block_Abstract {
|
| 3 |
|
| 4 |
+
private $_storeId = 0;
|
| 5 |
+
private $_pid = false;
|
| 6 |
+
private $_pid_prefix = "";
|
| 7 |
+
private $_pid_prefix_ofcp = 0;
|
| 8 |
+
private $_pid_ending = "";
|
| 9 |
+
private $_pid_ending_ofcp = 0;
|
| 10 |
+
|
| 11 |
+
private function getEcommProdid($product)
|
| 12 |
+
{
|
| 13 |
+
$ecomm_prodid = (string)($this->_pid ? $product->getId() : $product->getSku());
|
| 14 |
+
$ofcp = false;
|
| 15 |
+
if ($product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE ||
|
| 16 |
+
$product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_GROUPED)
|
| 17 |
+
{
|
| 18 |
+
$ofcp = true;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
if (!empty($this->_pid_prefix) && (($this->_pid_prefix_ofcp === 1 && $ofcp) ||
|
| 22 |
+
$this->_pid_prefix_ofcp === 0))
|
| 23 |
+
{
|
| 24 |
+
$ecomm_prodid = $this->_pid_prefix . $ecomm_prodid;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
if (!empty($this->_pid_ending) && (($this->_pid_ending_ofcp === 1 && $ofcp) ||
|
| 28 |
+
$this->_pid_ending_ofcp === 0))
|
| 29 |
+
{
|
| 30 |
+
$ecomm_prodid .= $this->_pid_ending;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
return $ecomm_prodid;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
private function getParams()
|
| 37 |
{
|
| 38 |
+
if ((int)Mage::getStoreConfig('gdrt/general/gdrt_product_id', $this->_storeId) === 0)
|
| 39 |
+
$this->_pid = true;
|
| 40 |
+
|
| 41 |
+
$this->_pid_prefix = Mage::getStoreConfig('gdrt/general/gdrt_product_id_prefix', $this->_storeId);
|
| 42 |
+
$this->_pid_prefix_ofcp = (int)Mage::getStoreConfig('gdrt/general/gdrt_product_id_prefix_ofcp', $this->_storeId);
|
| 43 |
+
$this->_pid_ending = Mage::getStoreConfig('gdrt/general/gdrt_product_id_ending', $this->_storeId);
|
| 44 |
+
$this->_pid_ending_ofcp = (int)Mage::getStoreConfig('gdrt/general/gdrt_product_id_ending_ofcp', $this->_storeId);
|
| 45 |
|
| 46 |
$inclTax = false;
|
| 47 |
+
if ((int)Mage::getStoreConfig('gdrt/general/gdrt_tax', $this->_storeId) === 1)
|
| 48 |
$inclTax = true;
|
| 49 |
|
| 50 |
$type = $this->getData('pageType');
|
| 72 |
$totalvalue = Mage::helper('tax')->getPrice($product, $product->getFinalPrice(), $inclTax);
|
| 73 |
|
| 74 |
$params = array(
|
| 75 |
+
'ecomm_prodid' => $this->getEcommProdid($product),
|
| 76 |
'ecomm_pagetype' => 'product',
|
| 77 |
'ecomm_totalvalue' => (float)number_format($totalvalue, '2', '.', '')
|
| 78 |
);
|
| 88 |
$totalvalue = 0;
|
| 89 |
foreach ($items as $item)
|
| 90 |
{
|
| 91 |
+
$data[0][] = $this->getEcommProdid($product);
|
| 92 |
$data[1][] = (int)$item->getQty();
|
| 93 |
$totalvalue += $inclTax ? $item->getRowTotalInclTax() : $item->getRowTotal();
|
| 94 |
}
|
| 117 |
|
| 118 |
foreach ($items as $item)
|
| 119 |
{
|
| 120 |
+
$data[0][] = $this->getEcommProdid($product);
|
| 121 |
$data[1][] = (int)$item->getQtyToInvoice();
|
| 122 |
$totalvalue += $inclTax ? $item->getRowTotalInclTax() : $item->getRowTotal();
|
| 123 |
}
|
| 208 |
|
| 209 |
protected function _toHtml()
|
| 210 |
{
|
| 211 |
+
$this->_storeId = Mage::app()->getStore()->getId();
|
| 212 |
+
$gcId = (int)Mage::getStoreConfig('gdrt/general/gc_id', $this->_storeId);
|
| 213 |
+
$gcLabel = trim(Mage::getStoreConfig('gdrt/general/gc_label', $this->_storeId));
|
| 214 |
$gcParams = $this->getParams();
|
| 215 |
|
| 216 |
$s = PHP_EOL .
|
| 231 |
'</div>' . PHP_EOL .
|
| 232 |
'</noscript>';
|
| 233 |
|
| 234 |
+
if ((int)Mage::getStoreConfig('gdrt/debug/show_info', $this->_storeId) === 1)
|
| 235 |
{
|
| 236 |
+
$lk = str_replace(' ', '', Mage::getStoreConfig('dev/restrict/allow_ips', $this->_storeId));
|
| 237 |
$ips = explode(',', $lk);
|
| 238 |
if (empty($ips[0]) || in_array(Mage::helper('core/http')->getRemoteAddr(), $ips))
|
| 239 |
{
|
app/code/community/Anaraky/Gdrt/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Anaraky_Gdrt>
|
| 5 |
-
<version>1.0.
|
| 6 |
</Anaraky_Gdrt>
|
| 7 |
</modules>
|
| 8 |
|
|
@@ -27,8 +27,12 @@
|
|
| 27 |
<default>
|
| 28 |
<gdrt>
|
| 29 |
<general>
|
| 30 |
-
<gdrt_enable>
|
| 31 |
<gdrt_product_id>1</gdrt_product_id>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
<gdrt_tax>0</gdrt_tax>
|
| 33 |
</general>
|
| 34 |
<pages>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Anaraky_Gdrt>
|
| 5 |
+
<version>1.0.7</version>
|
| 6 |
</Anaraky_Gdrt>
|
| 7 |
</modules>
|
| 8 |
|
| 27 |
<default>
|
| 28 |
<gdrt>
|
| 29 |
<general>
|
| 30 |
+
<gdrt_enable>0</gdrt_enable>
|
| 31 |
<gdrt_product_id>1</gdrt_product_id>
|
| 32 |
+
<gdrt_product_id_prefix></gdrt_product_id_prefix>
|
| 33 |
+
<gdrt_product_id_prefix_ofcp>0</gdrt_product_id_prefix_ofcp>
|
| 34 |
+
<gdrt_product_id_ending></gdrt_product_id_ending>
|
| 35 |
+
<gdrt_product_id_ending_ofcp>0</gdrt_product_id_ending_ofcp>
|
| 36 |
<gdrt_tax>0</gdrt_tax>
|
| 37 |
</general>
|
| 38 |
<pages>
|
app/code/community/Anaraky/Gdrt/etc/system.xml
CHANGED
|
@@ -12,7 +12,7 @@
|
|
| 12 |
<gdrt translate="label">
|
| 13 |
<label>GDRT Settings</label>
|
| 14 |
<tab>gdrt_tab</tab>
|
| 15 |
-
<sort_order>
|
| 16 |
<show_in_default>1</show_in_default>
|
| 17 |
<show_in_website>1</show_in_website>
|
| 18 |
<show_in_store>1</show_in_store>
|
|
@@ -49,7 +49,9 @@
|
|
| 49 |
<label>google_conversion_label</label>
|
| 50 |
<frontend_type>text</frontend_type>
|
| 51 |
<comment>
|
|
|
|
| 52 |
This field is optional
|
|
|
|
| 53 |
</comment>
|
| 54 |
<depends>
|
| 55 |
<gdrt_enable>1</gdrt_enable>
|
|
@@ -64,7 +66,9 @@
|
|
| 64 |
<frontend_type>select</frontend_type>
|
| 65 |
<source_model>gdrt/adminhtml_system_config_source_useasid</source_model>
|
| 66 |
<comment>
|
|
|
|
| 67 |
Must be same as 'Product ID' in the data feeds of the Google Merchant
|
|
|
|
| 68 |
</comment>
|
| 69 |
<depends>
|
| 70 |
<gdrt_enable>1</gdrt_enable>
|
|
@@ -74,17 +78,71 @@
|
|
| 74 |
<show_in_website>1</show_in_website>
|
| 75 |
<show_in_store>1</show_in_store>
|
| 76 |
</gdrt_product_id>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
<gdrt_tax translate="label">
|
| 78 |
<label>Total value</label>
|
| 79 |
<frontend_type>select</frontend_type>
|
| 80 |
<source_model>tax/system_config_source_priceType</source_model>
|
| 81 |
<comment>
|
|
|
|
| 82 |
The value of 'ecomm_totalvalue' with or without taxes?
|
|
|
|
| 83 |
</comment>
|
| 84 |
<depends>
|
| 85 |
<gdrt_enable>1</gdrt_enable>
|
| 86 |
</depends>
|
| 87 |
-
<sort_order>
|
| 88 |
<show_in_default>1</show_in_default>
|
| 89 |
<show_in_website>1</show_in_website>
|
| 90 |
<show_in_store>1</show_in_store>
|
|
@@ -93,7 +151,7 @@
|
|
| 93 |
</general>
|
| 94 |
|
| 95 |
<pages translate="label">
|
| 96 |
-
<label>
|
| 97 |
<sort_order>2</sort_order>
|
| 98 |
<show_in_default>1</show_in_default>
|
| 99 |
<show_in_website>1</show_in_website>
|
|
@@ -103,8 +161,10 @@
|
|
| 103 |
<label>Home</label>
|
| 104 |
<frontend_type>text</frontend_type>
|
| 105 |
<comment>
|
| 106 |
-
<![CDATA[
|
| 107 |
-
|
|
|
|
|
|
|
| 108 |
</comment>
|
| 109 |
<sort_order>1</sort_order>
|
| 110 |
<show_in_default>1</show_in_default>
|
|
@@ -115,7 +175,9 @@
|
|
| 115 |
<label>Search results</label>
|
| 116 |
<frontend_type>text</frontend_type>
|
| 117 |
<comment>
|
|
|
|
| 118 |
Structure is the same as in the previous field
|
|
|
|
| 119 |
</comment>
|
| 120 |
<sort_order>2</sort_order>
|
| 121 |
<show_in_default>1</show_in_default>
|
|
@@ -126,7 +188,9 @@
|
|
| 126 |
<label>Category</label>
|
| 127 |
<frontend_type>text</frontend_type>
|
| 128 |
<comment>
|
|
|
|
| 129 |
Structure is the same as in the previous field
|
|
|
|
| 130 |
</comment>
|
| 131 |
<sort_order>3</sort_order>
|
| 132 |
<show_in_default>1</show_in_default>
|
|
@@ -137,7 +201,9 @@
|
|
| 137 |
<label>Product</label>
|
| 138 |
<frontend_type>text</frontend_type>
|
| 139 |
<comment>
|
|
|
|
| 140 |
Structure is the same as in the previous field
|
|
|
|
| 141 |
</comment>
|
| 142 |
<sort_order>4</sort_order>
|
| 143 |
<show_in_default>1</show_in_default>
|
|
@@ -148,7 +214,9 @@
|
|
| 148 |
<label>Cart</label>
|
| 149 |
<frontend_type>text</frontend_type>
|
| 150 |
<comment>
|
|
|
|
| 151 |
Structure is the same as in the previous field
|
|
|
|
| 152 |
</comment>
|
| 153 |
<sort_order>5</sort_order>
|
| 154 |
<show_in_default>1</show_in_default>
|
|
@@ -159,7 +227,9 @@
|
|
| 159 |
<label>Purchase</label>
|
| 160 |
<frontend_type>text</frontend_type>
|
| 161 |
<comment>
|
|
|
|
| 162 |
Structure is the same as in the previous field
|
|
|
|
| 163 |
</comment>
|
| 164 |
<sort_order>6</sort_order>
|
| 165 |
<show_in_default>1</show_in_default>
|
|
@@ -169,30 +239,30 @@
|
|
| 169 |
</fields>
|
| 170 |
</pages>
|
| 171 |
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
<show_in_default>1</show_in_default>
|
| 182 |
<show_in_website>1</show_in_website>
|
| 183 |
<show_in_store>1</show_in_store>
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
<show_in_default>1</show_in_default>
|
| 191 |
<show_in_website>1</show_in_website>
|
| 192 |
<show_in_store>1</show_in_store>
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
</groups>
|
| 197 |
</gdrt>
|
| 198 |
</sections>
|
| 12 |
<gdrt translate="label">
|
| 13 |
<label>GDRT Settings</label>
|
| 14 |
<tab>gdrt_tab</tab>
|
| 15 |
+
<sort_order>1000</sort_order>
|
| 16 |
<show_in_default>1</show_in_default>
|
| 17 |
<show_in_website>1</show_in_website>
|
| 18 |
<show_in_store>1</show_in_store>
|
| 49 |
<label>google_conversion_label</label>
|
| 50 |
<frontend_type>text</frontend_type>
|
| 51 |
<comment>
|
| 52 |
+
<![CDATA[
|
| 53 |
This field is optional
|
| 54 |
+
]]>
|
| 55 |
</comment>
|
| 56 |
<depends>
|
| 57 |
<gdrt_enable>1</gdrt_enable>
|
| 66 |
<frontend_type>select</frontend_type>
|
| 67 |
<source_model>gdrt/adminhtml_system_config_source_useasid</source_model>
|
| 68 |
<comment>
|
| 69 |
+
<![CDATA[
|
| 70 |
Must be same as 'Product ID' in the data feeds of the Google Merchant
|
| 71 |
+
]]>
|
| 72 |
</comment>
|
| 73 |
<depends>
|
| 74 |
<gdrt_enable>1</gdrt_enable>
|
| 78 |
<show_in_website>1</show_in_website>
|
| 79 |
<show_in_store>1</show_in_store>
|
| 80 |
</gdrt_product_id>
|
| 81 |
+
<gdrt_product_id_prefix translate="label">
|
| 82 |
+
<label>Prefix for product id</label>
|
| 83 |
+
<frontend_type>text</frontend_type>
|
| 84 |
+
<comment>
|
| 85 |
+
<![CDATA[ For example: "prod_" ]]>
|
| 86 |
+
</comment>
|
| 87 |
+
<depends>
|
| 88 |
+
<gdrt_enable>1</gdrt_enable>
|
| 89 |
+
</depends>
|
| 90 |
+
<sort_order>5</sort_order>
|
| 91 |
+
<show_in_default>1</show_in_default>
|
| 92 |
+
<show_in_website>1</show_in_website>
|
| 93 |
+
<show_in_store>1</show_in_store>
|
| 94 |
+
</gdrt_product_id_prefix>
|
| 95 |
+
<gdrt_product_id_prefix_ofcp translate="label">
|
| 96 |
+
<label>Use prefix only for configurable and grouped products</label>
|
| 97 |
+
<frontend_type>select</frontend_type>
|
| 98 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 99 |
+
<depends>
|
| 100 |
+
<gdrt_enable>1</gdrt_enable>
|
| 101 |
+
</depends>
|
| 102 |
+
<sort_order>6</sort_order>
|
| 103 |
+
<show_in_default>1</show_in_default>
|
| 104 |
+
<show_in_website>1</show_in_website>
|
| 105 |
+
<show_in_store>1</show_in_store>
|
| 106 |
+
</gdrt_product_id_prefix_ofcp>
|
| 107 |
+
<gdrt_product_id_ending translate="label">
|
| 108 |
+
<label>Ending for product id</label>
|
| 109 |
+
<frontend_type>text</frontend_type>
|
| 110 |
+
<comment>
|
| 111 |
+
<![CDATA[ For example: "_prod" ]]>
|
| 112 |
+
</comment>
|
| 113 |
+
<depends>
|
| 114 |
+
<gdrt_enable>1</gdrt_enable>
|
| 115 |
+
</depends>
|
| 116 |
+
<sort_order>7</sort_order>
|
| 117 |
+
<show_in_default>1</show_in_default>
|
| 118 |
+
<show_in_website>1</show_in_website>
|
| 119 |
+
<show_in_store>1</show_in_store>
|
| 120 |
+
</gdrt_product_id_ending>
|
| 121 |
+
<gdrt_product_id_ending_ofcp translate="label">
|
| 122 |
+
<label>Use ending only for configurable and grouped products</label>
|
| 123 |
+
<frontend_type>select</frontend_type>
|
| 124 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 125 |
+
<depends>
|
| 126 |
+
<gdrt_enable>1</gdrt_enable>
|
| 127 |
+
</depends>
|
| 128 |
+
<sort_order>8</sort_order>
|
| 129 |
+
<show_in_default>1</show_in_default>
|
| 130 |
+
<show_in_website>1</show_in_website>
|
| 131 |
+
<show_in_store>1</show_in_store>
|
| 132 |
+
</gdrt_product_id_ending_ofcp>
|
| 133 |
<gdrt_tax translate="label">
|
| 134 |
<label>Total value</label>
|
| 135 |
<frontend_type>select</frontend_type>
|
| 136 |
<source_model>tax/system_config_source_priceType</source_model>
|
| 137 |
<comment>
|
| 138 |
+
<![CDATA[
|
| 139 |
The value of 'ecomm_totalvalue' with or without taxes?
|
| 140 |
+
]]>
|
| 141 |
</comment>
|
| 142 |
<depends>
|
| 143 |
<gdrt_enable>1</gdrt_enable>
|
| 144 |
</depends>
|
| 145 |
+
<sort_order>9</sort_order>
|
| 146 |
<show_in_default>1</show_in_default>
|
| 147 |
<show_in_website>1</show_in_website>
|
| 148 |
<show_in_store>1</show_in_store>
|
| 151 |
</general>
|
| 152 |
|
| 153 |
<pages translate="label">
|
| 154 |
+
<label>Settings of pages</label>
|
| 155 |
<sort_order>2</sort_order>
|
| 156 |
<show_in_default>1</show_in_default>
|
| 157 |
<show_in_website>1</show_in_website>
|
| 161 |
<label>Home</label>
|
| 162 |
<frontend_type>text</frontend_type>
|
| 163 |
<comment>
|
| 164 |
+
<![CDATA[
|
| 165 |
+
Model name / Controller name / Action name<br/>
|
| 166 |
+
Action name is optional
|
| 167 |
+
]]>
|
| 168 |
</comment>
|
| 169 |
<sort_order>1</sort_order>
|
| 170 |
<show_in_default>1</show_in_default>
|
| 175 |
<label>Search results</label>
|
| 176 |
<frontend_type>text</frontend_type>
|
| 177 |
<comment>
|
| 178 |
+
<![CDATA[
|
| 179 |
Structure is the same as in the previous field
|
| 180 |
+
]]>
|
| 181 |
</comment>
|
| 182 |
<sort_order>2</sort_order>
|
| 183 |
<show_in_default>1</show_in_default>
|
| 188 |
<label>Category</label>
|
| 189 |
<frontend_type>text</frontend_type>
|
| 190 |
<comment>
|
| 191 |
+
<![CDATA[
|
| 192 |
Structure is the same as in the previous field
|
| 193 |
+
]]>
|
| 194 |
</comment>
|
| 195 |
<sort_order>3</sort_order>
|
| 196 |
<show_in_default>1</show_in_default>
|
| 201 |
<label>Product</label>
|
| 202 |
<frontend_type>text</frontend_type>
|
| 203 |
<comment>
|
| 204 |
+
<![CDATA[
|
| 205 |
Structure is the same as in the previous field
|
| 206 |
+
]]>
|
| 207 |
</comment>
|
| 208 |
<sort_order>4</sort_order>
|
| 209 |
<show_in_default>1</show_in_default>
|
| 214 |
<label>Cart</label>
|
| 215 |
<frontend_type>text</frontend_type>
|
| 216 |
<comment>
|
| 217 |
+
<![CDATA[
|
| 218 |
Structure is the same as in the previous field
|
| 219 |
+
]]>
|
| 220 |
</comment>
|
| 221 |
<sort_order>5</sort_order>
|
| 222 |
<show_in_default>1</show_in_default>
|
| 227 |
<label>Purchase</label>
|
| 228 |
<frontend_type>text</frontend_type>
|
| 229 |
<comment>
|
| 230 |
+
<![CDATA[
|
| 231 |
Structure is the same as in the previous field
|
| 232 |
+
]]>
|
| 233 |
</comment>
|
| 234 |
<sort_order>6</sort_order>
|
| 235 |
<show_in_default>1</show_in_default>
|
| 239 |
</fields>
|
| 240 |
</pages>
|
| 241 |
|
| 242 |
+
<debug translate="label">
|
| 243 |
+
<label>Debug</label>
|
| 244 |
+
<comment>
|
| 245 |
+
<![CDATA[
|
| 246 |
+
Highly recommended to set the "Allowed IPs" in the "Developer Client Restrictions"
|
| 247 |
+
(System > Configuration > Developer).
|
| 248 |
+
]]>
|
| 249 |
+
</comment>
|
| 250 |
+
<sort_order>3</sort_order>
|
| 251 |
<show_in_default>1</show_in_default>
|
| 252 |
<show_in_website>1</show_in_website>
|
| 253 |
<show_in_store>1</show_in_store>
|
| 254 |
+
<fields>
|
| 255 |
+
<show_info>
|
| 256 |
+
<label>Show page information</label>
|
| 257 |
+
<frontend_type>select</frontend_type>
|
| 258 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
| 259 |
+
<sort_order>1</sort_order>
|
| 260 |
<show_in_default>1</show_in_default>
|
| 261 |
<show_in_website>1</show_in_website>
|
| 262 |
<show_in_store>1</show_in_store>
|
| 263 |
+
</show_info>
|
| 264 |
+
</fields>
|
| 265 |
+
</debug>
|
| 266 |
</groups>
|
| 267 |
</gdrt>
|
| 268 |
</sections>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Anaraky_GDRT_1</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GNU General Public License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -9,11 +9,11 @@
|
|
| 9 |
<summary>Google Dynamic Remarketing Tag extension for Magento</summary>
|
| 10 |
<description>With this extension is simply and easy to integrate the Google Dynamic Remarketing Tag into Magento.</description>
|
| 11 |
<notes>Update:
|
| 12 |
-
* added the ability to
|
| 13 |
<authors><author><name>Vladas Tomkevicius</name><user>Neodan</user><email>neodann@gmail.com</email></author></authors>
|
| 14 |
-
<date>2013-
|
| 15 |
-
<time>
|
| 16 |
-
<contents><target name="magecommunity"><dir name="Anaraky"><dir name="Gdrt"><dir name="Block"><file name="Script.php" hash="
|
| 17 |
<compatible/>
|
| 18 |
-
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php
|
| 19 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Anaraky_GDRT_1</name>
|
| 4 |
+
<version>1.0.7</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GNU General Public License</license>
|
| 7 |
<channel>community</channel>
|
| 9 |
<summary>Google Dynamic Remarketing Tag extension for Magento</summary>
|
| 10 |
<description>With this extension is simply and easy to integrate the Google Dynamic Remarketing Tag into Magento.</description>
|
| 11 |
<notes>Update:
|
| 12 |
+
* added the ability to set prefix and ending for 'ecomm_prodid' (for all type products or only for configurable and grouped products).</notes>
|
| 13 |
<authors><author><name>Vladas Tomkevicius</name><user>Neodan</user><email>neodann@gmail.com</email></author></authors>
|
| 14 |
+
<date>2013-12-11</date>
|
| 15 |
+
<time>21:51:09</time>
|
| 16 |
+
<contents><target name="magecommunity"><dir name="Anaraky"><dir name="Gdrt"><dir name="Block"><file name="Script.php" hash="8757990ccb0c9a70fa3e593dc8f158ff"/></dir><dir name="Helper"><file name="Data.php" hash="64bf0f7fd706e48775562dd65f84ea7d"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Useasid.php" hash="d0f1371d883f6dd3af422e907770ee87"/></dir></dir></dir></dir><file name="Observer.php" hash="4182860b2afe88fc3f5f83dbef6adc0f"/></dir><dir name="etc"><file name="adminhtml.xml" hash="03a29217c242534e2f13fe79e5fb43c7"/><file name="config.xml" hash="108549fa5a7e6c3e22b464b53f462ac9"/><file name="system.xml" hash="768148be874bac918b79122660a4c752"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Anaraky_Gdrt.xml" hash="43fa98d76721559c9ca20636dcb6af61"/></dir></target></contents>
|
| 17 |
<compatible/>
|
| 18 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
| 19 |
</package>
|
