Skip to content

Commit 695c47d

Browse files
committed
change merchant id to site id
1 parent c388538 commit 695c47d

File tree

4 files changed

+11
-16
lines changed

4 files changed

+11
-16
lines changed

app/code/community/Rekko/Tagging/Block/Tagging.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ public function getPluginEnabledStatus()
88
return Mage::getStoreConfig('rekko_section/rekko_group/enabled', Mage::app()->getStore());
99
}
1010

11-
public function getRekkoMerchantID()
11+
public function getSiteId()
1212
{
13-
return Mage::getStoreConfig('rekko_section/rekko_group/merchant_ID',
13+
return Mage::getStoreConfig('rekko_section/rekko_group/site_ID',
1414
Mage::app()->getStore());
1515
}
1616

app/code/community/Rekko/Tagging/etc/system.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
<show_in_website>1</show_in_website>
2424
<show_in_store>1</show_in_store>
2525
<fields>
26-
<merchant_ID translate="label tooltip comment">
27-
<label>Merchant ID</label>
26+
<site_ID translate="label tooltip comment">
27+
<label>Site ID</label>
2828
<sort_order>1</sort_order>
2929
<comment>Some comment about my field</comment>
30-
<tooltip>Enter Rekko Merchant ID</tooltip>
30+
<tooltip>Enter Site ID</tooltip>
3131
<show_in_default>1</show_in_default>
3232
<show_in_website>1</show_in_website>
3333
<show_in_store>1</show_in_store>
3434
<frontend_type>text</frontend_type>
35-
</merchant_ID>
35+
</site_ID>
3636
</fields>
3737
</rekko_group>
3838

app/design/frontend/base/default/template/rekko/rekko.phtml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
<?php
2-
$merchantID = Mage::getStoreConfig('rekko_section/rekko_group/merchant_ID');
3-
?>
1+
<?php $siteID = Mage::getStoreConfig('rekko_section/rekko_group/site_ID');?>
42

5-
<?php if ($merchantID): ?>
3+
<?php if ($siteID): ?>
64
<!--Script tag for setup.js-->
75
<script type="text/javascript">
86
var cvtJsHost = (("https:" == document.location.protocol)
@@ -76,7 +74,7 @@ $merchantID = Mage::getStoreConfig('rekko_section/rekko_group/merchant_ID');
7674
<!--End Visitor Profile Tagging-->
7775
<?php endif; ?>
7876
<script type="text/javascript">
79-
window.convert = new Convert("<?php echo $merchantID; ?>");
77+
window.convert = new Convert("<?php echo $siteID; ?>");
8078
convert.init();
8179
</script>
8280
<?php endif; ?>

app/design/frontend/base/default/template/rekko/rekkoproduct.phtml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<?php
2-
$moduleName = 'Smashmetrics_Rekko'; //eg Mage_Cms
3-
$merchantID = Mage::getStoreConfig('rekko_section/rekko_group/merchant_ID');
4-
$domain_name = Mage::getStoreConfig('rekko_section/rekko_group/domain_name');
5-
$enabled = Mage::getStoreConfig('advanced/modules_disable_output/' . $moduleName) == 0;
6-
if ($enabled):
2+
$siteID = Mage::getStoreConfig('rekko_section/rekko_group/site_ID');
3+
if ($siteID):
74
$_product = Mage::registry('current_product');
85
$catIds = $_product->getCategoryIds();
96
$category = array();

0 commit comments

Comments
 (0)