Version Notes
1) Display "Reward Points" in Product, Cart, Checkout, and Order Success Pages.
2) Configure various features and display elements like "Rewards Tab" display location, currency-unit-to-points multiple, badges, and text displayed around rewards points .
3) Save points earned on completed orders at punchtab.com.
4) Social buttons (like, tweet, and +1) and facebook comments support in product pages.
5) Integrate Rewards membership with native magento accounts.
6) Rewards Catalog support
7) Display Rewards under My Account
8) Enable Multi-language support
9) Coupon support
10) Bottom Bar support
11) Points grant upon invoicing
12) Remove points for canceled payments or credits
Download this release
Release Info
Developer | Magento Core Team |
Extension | punchtabpoints |
Version | 1.2.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.1 to 1.2.2
app/code/community/PunchTab/Points/Model/Observer.php
CHANGED
@@ -348,12 +348,21 @@ class PunchTab_Points_Model_Observer
|
|
348 |
Mage::Log("WARN - PunchTab not enabled or Client ID/shared secret not set");
|
349 |
}
|
350 |
|
351 |
-
// Dispatched when Order "Invoice"
|
|
|
352 |
public function invoiceRegistered($observer)
|
353 |
{
|
354 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("invoiceRegistered dispatched...");
|
355 |
|
356 |
$order = $observer->getEvent()->getOrder();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
$order_id = $order->getIncrementId();
|
358 |
if( Mage::getStoreConfig('points/settings/enabled') &&
|
359 |
Mage::getStoreConfig('points/settings/granted') == 'invoiced')
|
@@ -365,6 +374,7 @@ class PunchTab_Points_Model_Observer
|
|
365 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Points grant not set at invoice");
|
366 |
}
|
367 |
|
|
|
368 |
// Dispatched when Order "Cancel" is used from Order page
|
369 |
public function paymentCancel($observer)
|
370 |
{
|
@@ -395,14 +405,6 @@ class PunchTab_Points_Model_Observer
|
|
395 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Points removal not done - settings disabled");
|
396 |
}
|
397 |
|
398 |
-
// Dispatched when Order "Invoice" us used from Order page - Does nothing for now
|
399 |
-
public function invoiceCreated($observer)
|
400 |
-
{
|
401 |
-
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("invoiceCreated dispatched...");
|
402 |
-
//$invoice = $observer->getEvent()->getInvoice();
|
403 |
-
//$order = $invoice->getOrder();
|
404 |
-
}
|
405 |
-
|
406 |
// do not know what triggers it!!! - Do nothing for now
|
407 |
public function invoiceCancel($observer)
|
408 |
{
|
348 |
Mage::Log("WARN - PunchTab not enabled or Client ID/shared secret not set");
|
349 |
}
|
350 |
|
351 |
+
// Dispatched when Order "Invoice" is used from Order page - does nothing for now
|
352 |
+
// this is not triggered for Magento 1.3
|
353 |
public function invoiceRegistered($observer)
|
354 |
{
|
355 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("invoiceRegistered dispatched...");
|
356 |
|
357 |
$order = $observer->getEvent()->getOrder();
|
358 |
+
}
|
359 |
+
|
360 |
+
// Dispatched when Order "Invoice" is used from Order page
|
361 |
+
public function invoiceCreated($observer)
|
362 |
+
{
|
363 |
+
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("invoiceCreated dispatched...");
|
364 |
+
$invoice = $observer->getEvent()->getInvoice();
|
365 |
+
$order = $invoice->getOrder();
|
366 |
$order_id = $order->getIncrementId();
|
367 |
if( Mage::getStoreConfig('points/settings/enabled') &&
|
368 |
Mage::getStoreConfig('points/settings/granted') == 'invoiced')
|
374 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Points grant not set at invoice");
|
375 |
}
|
376 |
|
377 |
+
|
378 |
// Dispatched when Order "Cancel" is used from Order page
|
379 |
public function paymentCancel($observer)
|
380 |
{
|
405 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Points removal not done - settings disabled");
|
406 |
}
|
407 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
408 |
// do not know what triggers it!!! - Do nothing for now
|
409 |
public function invoiceCancel($observer)
|
410 |
{
|
app/code/community/PunchTab/Points/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<PunchTab_Points>
|
6 |
-
<version>1.2.
|
7 |
</PunchTab_Points>
|
8 |
</modules>
|
9 |
|
3 |
<config>
|
4 |
<modules>
|
5 |
<PunchTab_Points>
|
6 |
+
<version>1.2.2</version>
|
7 |
</PunchTab_Points>
|
8 |
</modules>
|
9 |
|
app/design/frontend/base/default/layout/points.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.2.
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.2">
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
app/design/frontend/default/default/layout/points.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.2.
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.2">
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>punchtabpoints</name>
|
4 |
-
<version>1.2.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/lgpl-3.0.html">LGPL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -21,9 +21,9 @@
|
|
21 |
11) Points grant upon invoicing
|
22 |
12) Remove points for canceled payments or credits</notes>
|
23 |
<authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
|
24 |
-
<date>2012-11-
|
25 |
-
<time>
|
26 |
-
<contents><target name="magecommunity"><dir name="PunchTab"><dir name="Points"><dir name="Block"><dir name="Body"><file name="Scripts.php" hash="33a55c0339fec45af8c377f50562404f"/></dir><dir name="Cart"><file name="Points.php" hash="0c955704e51f8b9a9dd297265526f1fc"/></dir><dir name="Head"><file name="Scripts.php" hash="9d3e54c80e2f0f8317266d076309692d"/></dir><dir name="Multishipping"><file name="Points.php" hash="2c3e1437acd282d04bdbcc494cccf539"/><file name="Success.php" hash="34a733431a6a49f51bef39ce52385865"/></dir><dir name="Onepage"><file name="Points.php" hash="5327f1a7dc8cf884e9514d9449173f78"/><file name="Success.php" hash="9bd605833e559bec321668477f75c75c"/></dir><file name="Bar.php" hash="34d8cf6acb2dc1fafcf5732b75825f39"/><file name="Fbcomments.php" hash="762632d82e9253effce5357d18ee6d98"/><file name="Points.php" hash="70af0851f6a944e34c3c48a4ea137179"/><file name="Pt.php" hash="fa84dde5f77a240c48931a1b7330be3c"/><file name="Rewards.php" hash="cb9c53eb42fe7d219d416adca40e9d0d"/><file name="Sidebar.php" hash="5bf33a1f8399f6755d884794fb049cd0"/></dir><dir name="Helper"><file name="Data.php" hash="7cb83036ca81957e3c25c479d42e3855"/></dir><dir name="Model"><dir name="Backend"><dir name="Source"><file name="Granted.php" hash="b068bb54adf3e0239d110e4eb7db8654"/><file name="Position.php" hash="256eff743745d9be02c3de3e8b7406c0"/></dir><file name="Language.php" hash="15fe7900bd2ebb301d8e76c52801fa56"/></dir><file name="Api.php" hash="a423082a3cef35888ce47a43f34f439f"/><file name="Observer.php" hash="
|
27 |
<compatible/>
|
28 |
<dependencies/>
|
29 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>punchtabpoints</name>
|
4 |
+
<version>1.2.2</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>
|
21 |
11) Points grant upon invoicing
|
22 |
12) Remove points for canceled payments or credits</notes>
|
23 |
<authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
|
24 |
+
<date>2012-11-27</date>
|
25 |
+
<time>01:40:57</time>
|
26 |
+
<contents><target name="magecommunity"><dir name="PunchTab"><dir name="Points"><dir name="Block"><dir name="Body"><file name="Scripts.php" hash="33a55c0339fec45af8c377f50562404f"/></dir><dir name="Cart"><file name="Points.php" hash="0c955704e51f8b9a9dd297265526f1fc"/></dir><dir name="Head"><file name="Scripts.php" hash="9d3e54c80e2f0f8317266d076309692d"/></dir><dir name="Multishipping"><file name="Points.php" hash="2c3e1437acd282d04bdbcc494cccf539"/><file name="Success.php" hash="34a733431a6a49f51bef39ce52385865"/></dir><dir name="Onepage"><file name="Points.php" hash="5327f1a7dc8cf884e9514d9449173f78"/><file name="Success.php" hash="9bd605833e559bec321668477f75c75c"/></dir><file name="Bar.php" hash="34d8cf6acb2dc1fafcf5732b75825f39"/><file name="Fbcomments.php" hash="762632d82e9253effce5357d18ee6d98"/><file name="Points.php" hash="70af0851f6a944e34c3c48a4ea137179"/><file name="Pt.php" hash="fa84dde5f77a240c48931a1b7330be3c"/><file name="Rewards.php" hash="cb9c53eb42fe7d219d416adca40e9d0d"/><file name="Sidebar.php" hash="5bf33a1f8399f6755d884794fb049cd0"/></dir><dir name="Helper"><file name="Data.php" hash="7cb83036ca81957e3c25c479d42e3855"/></dir><dir name="Model"><dir name="Backend"><dir name="Source"><file name="Granted.php" hash="b068bb54adf3e0239d110e4eb7db8654"/><file name="Position.php" hash="256eff743745d9be02c3de3e8b7406c0"/></dir><file name="Language.php" hash="15fe7900bd2ebb301d8e76c52801fa56"/></dir><file name="Api.php" hash="a423082a3cef35888ce47a43f34f439f"/><file name="Observer.php" hash="85dfc8798dfe65ecd5f6e84d0360fb32"/></dir><dir name="controllers"><file name="RewardsController.php" hash="8039d6270b418681b313759827b00651"/></dir><dir name="etc"><file name="api.xml" hash="5de9b350dcb2745e045d30c54092b57a"/><file name="config.xml" hash="eec3ac1588d68b102bad9929b2159ae9"/><file name="system.xml" hash="680ffcc230a50a2f181c335ea70bbcaa"/></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="ca5d3f4a72a933cf55bb4de8c18b1a59"/></dir><dir name="template"><dir name="points"><dir name="body"><file name="scripts.phtml" hash="3163832695258582903fe63d4a015d68"/></dir><dir name="cart"><file name="points.phtml" hash="598bab86255fd9a22bfa6a42f2a94d89"/></dir><dir name="head"><file name="scripts.phtml" hash="6bd9c28ac694d240c16d23485e83a02f"/></dir><dir name="multishipping"><file name="points.phtml" hash="b5c29d33572c624bbffdac8370888691"/><file name="success.phtml" hash="e71173d14cba4e46656c522d87b58cf0"/></dir><dir name="onepage"><file name="points.phtml" hash="917336395db3df656093f4e74b244ff4"/><file name="success.phtml" hash="97b12dcf1900801f3f699b94d34d99c1"/></dir><file name="bar.phtml" hash="6c2d56103046c5ce8862b3f653d33883"/><file name="fbcomments.phtml" hash="fdf158b520f003d9e01750b389e56da4"/><file name="points.phtml" hash="9eeaa4947625ca5e1a23b2e4a492a391"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="rewards.phtml" hash="205a105419e0e6ced575e0a5a514ef24"/><file name="sidebar.phtml" hash="dd9da0b37025e18a9f10eb71eecd77a1"/></dir></dir></dir></dir><dir name="base"><dir name="default"><dir name="layout"><file name="points.xml" hash="ca5d3f4a72a933cf55bb4de8c18b1a59"/></dir><dir name="template"><dir name="points"><dir name="body"><file name="scripts.phtml" hash="3163832695258582903fe63d4a015d68"/></dir><dir name="cart"><file name="points.phtml" hash="598bab86255fd9a22bfa6a42f2a94d89"/></dir><dir name="head"><file name="scripts.phtml" hash="6bd9c28ac694d240c16d23485e83a02f"/></dir><dir name="multishipping"><file name="points.phtml" hash="b5c29d33572c624bbffdac8370888691"/><file name="success.phtml" hash="e71173d14cba4e46656c522d87b58cf0"/></dir><dir name="onepage"><file name="points.phtml" hash="917336395db3df656093f4e74b244ff4"/><file name="success.phtml" hash="97b12dcf1900801f3f699b94d34d99c1"/></dir><file name="bar.phtml" hash="6c2d56103046c5ce8862b3f653d33883"/><file name="fbcomments.phtml" hash="fdf158b520f003d9e01750b389e56da4"/><file name="points.phtml" hash="9eeaa4947625ca5e1a23b2e4a492a391"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="rewards.phtml" hash="205a105419e0e6ced575e0a5a514ef24"/><file name="sidebar.phtml" hash="dd9da0b37025e18a9f10eb71eecd77a1"/></dir></dir></dir></dir></dir></target></contents>
|
27 |
<compatible/>
|
28 |
<dependencies/>
|
29 |
</package>
|