punchtabpoints - Version 1.0.8

Version Notes

- Display Reward Points in
* Product page
* Cart page
* Checkout page
* Order Success Page
- Earn Reward Points at www.punchtab.com (reported when order completes successfully)
- Configure
* value for PunchTab Key
* points multiple for dollars purchased
* location of Rewards Tab on site pages
* enable/disable Rewards Points features
* change text displayed before/after points value

Download this release

Release Info

Developer Magento Core Team
Extension punchtabpoints
Version 1.0.8
Comparing to
See all releases


Code changes from version 1.0.7 to 1.0.8

app/code/community/PunchTab/Points/Block/Pt.php CHANGED
@@ -11,7 +11,8 @@ class PunchTab_Points_Block_Pt extends Mage_Core_Block_Template
11
 
12
  public function getScript()
13
  {
14
- return Mage::helper('points')->getRewardsTabScript();
 
15
  }
16
 
17
  }
11
 
12
  public function getScript()
13
  {
14
+ $scrpt = Mage::helper('points')->getRewardsTabScript();
15
+ return $scrpt;
16
  }
17
 
18
  }
app/code/community/PunchTab/Points/Helper/Data.php CHANGED
@@ -70,6 +70,12 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
70
  $scrpt .= '/static/js/pt_magento.js";';
71
  $scrpt .= 'var sm = document.getElementsByTagName("script")[0]; sm.parentNode.insertBefore(ptm, sm);';
72
  $scrpt .= '})();';
 
 
 
 
 
 
73
  $scrpt .= '</script>';
74
 
75
  /*
70
  $scrpt .= '/static/js/pt_magento.js";';
71
  $scrpt .= 'var sm = document.getElementsByTagName("script")[0]; sm.parentNode.insertBefore(ptm, sm);';
72
  $scrpt .= '})();';
73
+
74
+ $scrpt .= 'window.ptAsyncInit = function() {';
75
+ $scrpt .= ' if(typeof pt_magento !== "undefined")';
76
+ $scrpt .= ' pt_magento.relocate_magento_points(null,null,null);';
77
+ $scrpt .= '}';
78
+
79
  $scrpt .= '</script>';
80
 
81
  /*
app/code/community/PunchTab/Points/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <PunchTab_Points>
6
- <version>1.0.7</version>
7
  </PunchTab_Points>
8
  </modules>
9
 
3
  <config>
4
  <modules>
5
  <PunchTab_Points>
6
+ <version>1.0.8</version>
7
  </PunchTab_Points>
8
  </modules>
9
 
app/design/frontend/default/default/layout/points.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <layout version="1.0.7">
3
 
4
  <default>
5
  <reference name="before_body_end">
@@ -11,7 +11,7 @@
11
  </default>
12
 
13
  <catalog_product_view>
14
- <reference name="product.info.addtocart">
15
  <block type="points/points" name="points_points" after="-" template="points/points.phtml"/>
16
  </reference>
17
  </catalog_product_view>
1
  <?xml version="1.0"?>
2
+ <layout version="1.0.8">
3
 
4
  <default>
5
  <reference name="before_body_end">
11
  </default>
12
 
13
  <catalog_product_view>
14
+ <reference name="alert.urls">
15
  <block type="points/points" name="points_points" after="-" template="points/points.phtml"/>
16
  </reference>
17
  </catalog_product_view>
app/design/frontend/default/default/template/points/points.phtml CHANGED
@@ -3,9 +3,7 @@ $points = $this->getPoints();
3
  if(Mage::getStoreConfig('points/settings/enabled') && $points!=0) {
4
  ?>
5
 
6
- <br/>
7
- <br/>
8
- <div id="magento_points" class="regular-price">
9
  <div>
10
  <span><?php echo $this->getTextBeforePoints();echo $points; echo $this->getTextAfterPoints();?></span>
11
  <a href="#" class=pt_open>Learn More</a>
3
  if(Mage::getStoreConfig('points/settings/enabled') && $points!=0) {
4
  ?>
5
 
6
+ <div id="movable_points" class="regular-price">
 
 
7
  <div>
8
  <span><?php echo $this->getTextBeforePoints();echo $points; echo $this->getTextAfterPoints();?></span>
9
  <a href="#" class=pt_open>Learn More</a>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>punchtabpoints</name>
4
- <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/lgpl-3.0.html">LGPL 3.0</license>
7
  <channel>community</channel>
@@ -23,9 +23,9 @@ From purchases to social sharing, reward-enable any action you want to incentivi
23
  * enable/disable Rewards Points features&#xD;
24
  * change text displayed before/after points value</notes>
25
  <authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
26
- <date>2011-12-10</date>
27
- <time>03:55:55</time>
28
- <contents><target name="magecommunity"><dir name="PunchTab"><dir name="Points"><dir name="Block"><dir name="Cart"><file name="Points.php" hash="0c955704e51f8b9a9dd297265526f1fc"/></dir><dir name="Multishipping"><file name="Points.php" hash="3e681f954f47d243a93f426f5dc2ac1a"/><file name="Success.php" hash="6dde193eba26e1765bf0f7c198e1d248"/></dir><dir name="Onepage"><file name="Points.php" hash="a543931a531512fe209c35abbdff704b"/><file name="Success.php" hash="ec69bc1c5a1fb0401f5d26509c5a34ca"/></dir><file name="Points.php" hash="70af0851f6a944e34c3c48a4ea137179"/><file name="Pt.php" hash="12f0a834df7a458e67f3b5035c89f050"/><file name="Sidebar.php" hash="5bf33a1f8399f6755d884794fb049cd0"/></dir><dir name="Helper"><file name="Data.php" hash="2a6aa0e96510342ae3306c49bc1007cf"/></dir><dir name="Model"><dir name="Backend"><dir name="Source"><file name="Position.php" hash="80c4d2d40a00673ab7cd397d3f112f98"/></dir></dir><file name="Observer.php" hash="3ccd2b6754f6a858560c9f8d272f2716"/></dir><dir name="etc"><file name="config.xml" hash="4453912bf246da5d9cf1e7dbf18847c2"/><file name="system.xml" hash="706a17b4e358c04627f32e6c7b67e42c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PunchTab_Points.xml" hash="c4c05dc493146f8f6a04277724f544e3"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="points.xml" hash="31edecdfb53b941078644a0d3b55af47"/></dir><dir name="template"><dir name="points"><dir name="cart"><file name="points.phtml" hash="2533ba5e2e0786a46b95466c9aca58fe"/></dir><dir name="multishipping"><file name="points.phtml" hash="334fe3e06b3c75aa13ee0dcec9626cc7"/><file name="success.phtml" hash="3edef21101a690662846fd6febe27ae2"/></dir><dir name="onepage"><file name="points.phtml" hash="a0317a8f35c3bb788edcdaea7d8fdbb1"/><file name="success.phtml" hash="71028bdc157ead5e6ae7d03d9f8ad4c0"/></dir><file name="points.phtml" hash="c999d4687d072f31d6db22e2d3b34da5"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="points.xml" hash="31edecdfb53b941078644a0d3b55af47"/></dir><dir name="template"><dir name="points"><dir name="cart"><file name="points.phtml" hash="2533ba5e2e0786a46b95466c9aca58fe"/></dir><dir name="multishipping"><file name="points.phtml" hash="334fe3e06b3c75aa13ee0dcec9626cc7"/><file name="success.phtml" hash="3edef21101a690662846fd6febe27ae2"/></dir><dir name="onepage"><file name="points.phtml" hash="a0317a8f35c3bb788edcdaea7d8fdbb1"/><file name="success.phtml" hash="71028bdc157ead5e6ae7d03d9f8ad4c0"/></dir><file name="points.phtml" hash="c999d4687d072f31d6db22e2d3b34da5"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies/>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>punchtabpoints</name>
4
+ <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.gnu.org/licenses/lgpl-3.0.html">LGPL 3.0</license>
7
  <channel>community</channel>
23
  * enable/disable Rewards Points features&#xD;
24
  * change text displayed before/after points value</notes>
25
  <authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
26
+ <date>2011-12-11</date>
27
+ <time>04:45:42</time>
28
+ <contents><target name="magecommunity"><dir name="PunchTab"><dir name="Points"><dir name="Block"><dir name="Cart"><file name="Points.php" hash="0c955704e51f8b9a9dd297265526f1fc"/></dir><dir name="Multishipping"><file name="Points.php" hash="3e681f954f47d243a93f426f5dc2ac1a"/><file name="Success.php" hash="6dde193eba26e1765bf0f7c198e1d248"/></dir><dir name="Onepage"><file name="Points.php" hash="a543931a531512fe209c35abbdff704b"/><file name="Success.php" hash="ec69bc1c5a1fb0401f5d26509c5a34ca"/></dir><file name="Points.php" hash="70af0851f6a944e34c3c48a4ea137179"/><file name="Pt.php" hash="fa84dde5f77a240c48931a1b7330be3c"/><file name="Sidebar.php" hash="5bf33a1f8399f6755d884794fb049cd0"/></dir><dir name="Helper"><file name="Data.php" hash="b867247f9ef7a8186fafde474ed2ae6b"/></dir><dir name="Model"><dir name="Backend"><dir name="Source"><file name="Position.php" hash="80c4d2d40a00673ab7cd397d3f112f98"/></dir></dir><file name="Observer.php" hash="3ccd2b6754f6a858560c9f8d272f2716"/></dir><dir name="etc"><file name="config.xml" hash="086827a2e4900ec84bf097b949d174ba"/><file name="system.xml" hash="706a17b4e358c04627f32e6c7b67e42c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="PunchTab_Points.xml" hash="c4c05dc493146f8f6a04277724f544e3"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="points.xml" hash="1ff2476110ca372bbfcbb69461731cdd"/></dir><dir name="template"><dir name="points"><dir name="cart"><file name="points.phtml" hash="2533ba5e2e0786a46b95466c9aca58fe"/></dir><dir name="multishipping"><file name="points.phtml" hash="334fe3e06b3c75aa13ee0dcec9626cc7"/><file name="success.phtml" hash="3edef21101a690662846fd6febe27ae2"/></dir><dir name="onepage"><file name="points.phtml" hash="a0317a8f35c3bb788edcdaea7d8fdbb1"/><file name="success.phtml" hash="71028bdc157ead5e6ae7d03d9f8ad4c0"/></dir><file name="points.phtml" hash="2086781aa1c665d505746c57259e68b2"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="points.xml" hash="31edecdfb53b941078644a0d3b55af47"/></dir><dir name="template"><dir name="points"><dir name="cart"><file name="points.phtml" hash="2533ba5e2e0786a46b95466c9aca58fe"/></dir><dir name="multishipping"><file name="points.phtml" hash="334fe3e06b3c75aa13ee0dcec9626cc7"/><file name="success.phtml" hash="3edef21101a690662846fd6febe27ae2"/></dir><dir name="onepage"><file name="points.phtml" hash="a0317a8f35c3bb788edcdaea7d8fdbb1"/><file name="success.phtml" hash="71028bdc157ead5e6ae7d03d9f8ad4c0"/></dir><file name="points.phtml" hash="c999d4687d072f31d6db22e2d3b34da5"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
  <dependencies/>
31
  </package>