kulmage_google_gdwords - Version 1.2.0

Version Notes

Kulmage_Adwords is used to add google adwords in magento website.

This version is stable

Download this release

Release Info

Developer Kuldip
Extension kulmage_google_gdwords
Version 1.2.0
Comparing to
See all releases


Code changes from version 1.1.0 to 1.2.0

app/code/community/Kulmage/Adwords/Block/Adwords.php CHANGED
@@ -15,6 +15,7 @@ class Kulmage_Adwords_Block_Adwords extends Mage_Core_Block_Abstract
15
  $this->setGoogleConversionFormat(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_format'));
16
  $this->setGoogleConversionColor(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_color'));
17
  $this->setGoogleConversionLabel(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_label'));
 
18
  }
19
 
20
 
@@ -34,9 +35,13 @@ class Kulmage_Adwords_Block_Adwords extends Mage_Core_Block_Abstract
34
  var google_conversion_format = "'.$this->getGoogleConversionFormat().'";
35
  var google_conversion_color = "'.$this->getGoogleConversionColor().'";
36
  var google_conversion_label = "'.$this->getGoogleConversionLabel().'";
37
- var google_conversion_value = 0;
38
  if ('.$this->getAmount().') {
39
- google_conversion_value = '.$this->getAmount().';
 
 
 
 
40
  }
41
  /* ]]> */
42
  </script>
15
  $this->setGoogleConversionFormat(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_format'));
16
  $this->setGoogleConversionColor(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_color'));
17
  $this->setGoogleConversionLabel(Mage::getStoreConfig('adwordsmodule/kulmage/google_conversion_label'));
18
+ $this->setGoogleConversionCurrencyFormat(Mage::getStoreConfig('adwordsmodule/kulmage/currency'));
19
  }
20
 
21
 
35
  var google_conversion_format = "'.$this->getGoogleConversionFormat().'";
36
  var google_conversion_color = "'.$this->getGoogleConversionColor().'";
37
  var google_conversion_label = "'.$this->getGoogleConversionLabel().'";
38
+
39
  if ('.$this->getAmount().') {
40
+ var google_conversion_value = '.$this->getAmount().';
41
+ }
42
+ else
43
+ {
44
+ var google_conversion_value = 0;
45
  }
46
  /* ]]> */
47
  </script>
app/code/community/Kulmage/Adwords/Helper/Data.php CHANGED
@@ -13,14 +13,15 @@ class Kulmage_Adwords_Helper_Data extends Mage_Core_Helper_Abstract
13
 
14
  $resurce = Mage::getModel('sales/order')->getResource();
15
  $select = $resurce->getReadConnection()->select()
16
- ->from(array('o' => $resurce->getTable('sales/order')), 'subtotal')
17
  ->where('o.entity_id=?', $orderId)
18
  ;
19
 
20
  $result = $resurce->getReadConnection()->fetchRow($select);
 
21
 
22
- if($result['subtotal'] > 0)
23
- return round($result['subtotal'],2);
24
  else
25
  return 1;
26
  }
13
 
14
  $resurce = Mage::getModel('sales/order')->getResource();
15
  $select = $resurce->getReadConnection()->select()
16
+ ->from(array('o' => $resurce->getTable('sales/order')), 'base_subtotal')
17
  ->where('o.entity_id=?', $orderId)
18
  ;
19
 
20
  $result = $resurce->getReadConnection()->fetchRow($select);
21
+ print_r($result); die;
22
 
23
+ if($result['base_subtotal'] > 0)
24
+ return round($result['base_subtotal'],2);
25
  else
26
  return 1;
27
  }
app/code/community/Kulmage/Adwords/etc/system.xml CHANGED
@@ -71,7 +71,7 @@
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
  <show_in_store>1</show_in_store>
74
- </google_conversion_label>
75
  </fields>
76
  </kulmage>
77
  </groups>
71
  <show_in_default>1</show_in_default>
72
  <show_in_website>1</show_in_website>
73
  <show_in_store>1</show_in_store>
74
+ </google_conversion_label>
75
  </fields>
76
  </kulmage>
77
  </groups>
app/design/frontend/default/default/layout/{kulmage_adwords.xml → Kulmage_Adwords.xml} RENAMED
File without changes
package.xml CHANGED
@@ -1,21 +1,22 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kulmage_google_gdwords</name>
4
- <version>1.1.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Kulmage_Adwords is used to add google adwords in magento website</summary>
10
- <description>Kulmage_Adwords is used to add google adwords in magento website.&#xD;
11
- you can manage it from admin just add credential from admin and thats it you can check adwords data in success page by view source</description>
12
- <notes>Kulmage_Adwords is used to add google adwords in magento website.&#xD;
13
- &#xD;
 
14
  This version is stable</notes>
15
  <authors><author><name>Kuldip</name><user>kuldipsinh</user><email>er.kuldipsinh@gmail.com</email></author></authors>
16
- <date>2012-12-03</date>
17
- <time>04:30:28</time>
18
- <contents><target name="magecommunity"><dir name="Kulmage"><dir name="Adwords"><dir name="Block"><file name="Adwords.php" hash="2778007f87b1b6be193e3434b58c7e2a"/></dir><dir name="Helper"><file name="Data.php" hash="51fccc45f1569d8ff2723b1bc0a1904d"/></dir><dir name="etc"><file name="config.xml" hash="93a7df2290a266b54d176c87a4b196c0"/><file name="system.xml" hash="0195be66bdec3df0665704e2c401b66e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kulmage_Adwords.xml" hash="8a83b1bbad56e45846620d92f31f320f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="kulmage_adwords.xml" hash="f0cb4564a6c971c6d5797c1b5d198a9b"/></dir></dir></dir></dir></target></contents>
19
  <compatible/>
20
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
21
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>kulmage_google_gdwords</name>
4
+ <version>1.2.0</version>
5
  <stability>stable</stability>
6
+ <license>OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Kulmage_Adwords is used to add google adwords in magento website</summary>
10
+ <description>Kulmage_Adwords is used to add google adwords in magento website.&amp;#xD;&#xD;
11
+ you can manage it from admin just add credential from admin and thats it you can check adwords data in success page by view source&lt;/description&gt;&#xD;
12
+ </description>
13
+ <notes>Kulmage_Adwords is used to add google adwords in magento website.&amp;#xD;&#xD;
14
+ &amp;#xD;&#xD;
15
  This version is stable</notes>
16
  <authors><author><name>Kuldip</name><user>kuldipsinh</user><email>er.kuldipsinh@gmail.com</email></author></authors>
17
+ <date>2013-06-13</date>
18
+ <time>09:40:30</time>
19
+ <contents><target name="magecommunity"><dir name="Kulmage"><dir name="Adwords"><dir name="Block"><file name="Adwords.php" hash="174ef3566f06de2619bc79cd41adc6b0"/></dir><dir name="Helper"><file name="Data.php" hash="8a6e557bc9585b9663e03a4253aacf9c"/></dir><dir name="etc"><file name="config.xml" hash="93a7df2290a266b54d176c87a4b196c0"/><file name="system.xml" hash="43fad71c5d496599e3980f701fec6bbb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Kulmage_Adwords.xml" hash="8a83b1bbad56e45846620d92f31f320f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="Kulmage_Adwords.xml" hash="f0cb4564a6c971c6d5797c1b5d198a9b"/></dir></dir></dir></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>