punchtabpoints - Version 1.0.5

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.5
Comparing to
See all releases


Code changes from version 1.0.4 to 1.0.5

Files changed (22) hide show
  1. app/code/community/PunchTab/Points/Block/Cart/Points.php +47 -0
  2. app/code/community/PunchTab/Points/Block/Multishipping/Points.php +24 -7
  3. app/code/community/PunchTab/Points/Block/Multishipping/Success.php +57 -0
  4. app/code/community/PunchTab/Points/Block/Onepage/Points.php +58 -0
  5. app/code/community/PunchTab/Points/Block/Onepage/Success.php +57 -0
  6. app/code/community/PunchTab/Points/Block/Points.php +25 -38
  7. app/code/community/PunchTab/Points/Helper/Data.php +52 -7
  8. app/code/community/PunchTab/Points/etc/config.xml +1 -1
  9. app/code/community/PunchTab/Points/etc/system.xml +170 -5
  10. app/design/frontend/base/default/layout/points.xml +0 -52
  11. app/design/frontend/base/default/template/points/multishipping/points.phtml +0 -3
  12. app/design/frontend/base/default/template/points/points.phtml +0 -3
  13. app/design/frontend/base/default/template/points/pt.phtml +0 -4
  14. app/design/frontend/base/default/template/points/sidebar.phtml +0 -1
  15. app/design/frontend/default/default/layout/points.xml +13 -15
  16. app/design/frontend/default/default/template/points/cart/points.phtml +15 -0
  17. app/design/frontend/default/default/template/points/multishipping/points.phtml +6 -1
  18. app/design/frontend/default/default/template/points/multishipping/success.phtml +11 -0
  19. app/design/frontend/default/default/template/points/onepage/points.phtml +19 -0
  20. app/design/frontend/default/default/template/points/onepage/success.phtml +11 -0
  21. app/design/frontend/default/default/template/points/points.phtml +13 -1
  22. package.xml +9 -5
app/code/community/PunchTab/Points/Block/Cart/Points.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class PunchTab_Points_Block_Cart_Points extends Mage_Core_Block_Template
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ parent::_construct();
9
+ $this->setTemplate('points/cart/points.phtml');
10
+ }
11
+
12
+ public function getTextBeforePoints()
13
+ {
14
+ $txt = Mage::getStoreConfig('points/text/cart_before');
15
+ if(strlen(trim($txt)) != 0)
16
+ return trim($txt).' ';
17
+ return '';
18
+ }
19
+
20
+ public function getTextAfterPoints()
21
+ {
22
+ $txt = Mage::getStoreConfig('points/text/cart_after');
23
+ if(strlen(trim($txt)) != 0)
24
+ return ' '.trim($txt);
25
+ return '';
26
+ }
27
+
28
+ public function getPoints()
29
+ {
30
+ $price = 0;
31
+ $core_session = Mage::getSingleton('core/session');
32
+ $visitor_data = $core_session->getVisitorData();
33
+ $uri = $visitor_data['request_uri'];
34
+ if(strpos($uri,'checkout/cart'))
35
+ {
36
+ $checkout_session = Mage::getSingleton('checkout/session');
37
+ if($checkout_session)
38
+ {
39
+ $sales_quote = $checkout_session->getQuote();
40
+ if($sales_quote)
41
+ $price = $sales_quote->getSubtotal();
42
+ }
43
+ }
44
+ return floor($price*Mage::getStoreConfig('points/settings/multiple'));
45
+ }
46
+
47
+ }
app/code/community/PunchTab/Points/Block/Multishipping/Points.php CHANGED
@@ -8,25 +8,41 @@ class PunchTab_Points_Block_Multishipping_Points extends Mage_Checkout_Block_Mul
8
  parent::_construct();
9
  $this->setTemplate('points/multishipping/points.phtml');
10
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- public function getMessage()
13
  {
14
  $price = 0;
15
  $app = Mage::app('default');
16
  $core_session = Mage::getSingleton('core/session');
17
  $visitor_data = $core_session->getVisitorData();
18
  $uri = $visitor_data['request_uri'];
19
- //Mage::Log($uri);
20
- if(strpos($uri,'multishipping/overviewPost'))
21
  {
22
  $oids = Mage::getSingleton('core/session')->getOrderIds();
23
- //Mage::Log("count oids ".count($oids));
24
  if($oids && is_array($oids))
25
  {
26
  foreach($oids as $key => $value)
27
  {
28
- //Mage::Log($key);
29
- //Mage::Log($value);
30
  $order = Mage::getModel('sales/order');
31
  $order->loadByIncrementId($value);
32
  $price += $order->getSubtotal();
@@ -34,7 +50,8 @@ class PunchTab_Points_Block_Multishipping_Points extends Mage_Checkout_Block_Mul
34
  }
35
  }
36
  $points = floor($price*Mage::getStoreConfig('points/settings/multiple'));
37
- return $points.' points';
 
38
  }
39
 
40
  }
8
  parent::_construct();
9
  $this->setTemplate('points/multishipping/points.phtml');
10
  }
11
+
12
+ public function getTextBeforePoints()
13
+ {
14
+ $txt = Mage::getStoreConfig('points/text/checkout_before');
15
+ if(strlen(trim($txt)) != 0)
16
+ return trim($txt).' ';
17
+ return '';
18
+ }
19
+
20
+ public function getTextAfterPoints()
21
+ {
22
+ $txt = Mage::getStoreConfig('points/text/checkout_after');
23
+ if(strlen(trim($txt)) != 0)
24
+ return ' '.trim($txt);
25
+ return '';
26
+ }
27
 
28
+ public function getPoints()
29
  {
30
  $price = 0;
31
  $app = Mage::app('default');
32
  $core_session = Mage::getSingleton('core/session');
33
  $visitor_data = $core_session->getVisitorData();
34
  $uri = $visitor_data['request_uri'];
35
+ Mage::Log($uri);
36
+ if(strpos($uri,'multishipping'))
37
  {
38
  $oids = Mage::getSingleton('core/session')->getOrderIds();
39
+ Mage::Log("count oids ".count($oids));
40
  if($oids && is_array($oids))
41
  {
42
  foreach($oids as $key => $value)
43
  {
44
+ Mage::Log($key);
45
+ Mage::Log($value);
46
  $order = Mage::getModel('sales/order');
47
  $order->loadByIncrementId($value);
48
  $price += $order->getSubtotal();
50
  }
51
  }
52
  $points = floor($price*Mage::getStoreConfig('points/settings/multiple'));
53
+ Mage::Log("Points ".$points);
54
+ return $points;
55
  }
56
 
57
  }
app/code/community/PunchTab/Points/Block/Multishipping/Success.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class PunchTab_Points_Block_Multishipping_Success extends Mage_Core_Block_Template
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ parent::_construct();
9
+ $this->setTemplate('points/multishipping/success.phtml');
10
+ }
11
+
12
+ public function getTextBeforePoints()
13
+ {
14
+ $txt = Mage::getStoreConfig('points/text/success_before');
15
+ if(strlen(trim($txt)) != 0)
16
+ return trim($txt).' ';
17
+ return '';
18
+ }
19
+
20
+ public function getTextAfterPoints()
21
+ {
22
+ $txt = Mage::getStoreConfig('points/text/success_after');
23
+ if(strlen(trim($txt)) != 0)
24
+ return ' '.trim($txt);
25
+ return '';
26
+ }
27
+
28
+ public function getPoints()
29
+ {
30
+ $price = 0;
31
+ $core_session = Mage::getSingleton('core/session');
32
+ $visitor_data = $core_session->getVisitorData();
33
+ $uri = $visitor_data['request_uri'];
34
+
35
+ if(strpos($uri,'checkout'))
36
+ {
37
+ $checkout_session = Mage::getSingleton('checkout/session');
38
+ if($checkout_session)
39
+ {
40
+ $sales_quote = $checkout_session->getQuote();
41
+ if($sales_quote)
42
+ $price = $sales_quote->getSubtotal();
43
+ //Mage::Log($uri);
44
+ if(strpos($uri,'onepage/saveOrder'))
45
+ {
46
+ $order_id = $checkout_session->getLastOrderId();
47
+ //Mage::Log("Last Order ID: ".$order_id);
48
+ $order = Mage::getModel('sales/order');
49
+ $order->load($order_id);
50
+ $price = $order->getSubtotal();
51
+ }
52
+ }
53
+ }
54
+ return floor($price*Mage::getStoreConfig('points/settings/multiple'));
55
+ }
56
+
57
+ }
app/code/community/PunchTab/Points/Block/Onepage/Points.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class PunchTab_Points_Block_Onepage_Points extends Mage_Core_Block_Template
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ parent::_construct();
9
+ $this->setTemplate('points/onepage/points.phtml');
10
+ }
11
+
12
+
13
+ public function getTextBeforePoints()
14
+ {
15
+ $txt = Mage::getStoreConfig('points/text/checkout_before');
16
+ if(strlen(trim($txt)) != 0)
17
+ return trim($txt).' ';
18
+ return '';
19
+ }
20
+
21
+ public function getTextAfterPoints()
22
+ {
23
+ $txt = Mage::getStoreConfig('points/text/checkout_after');
24
+ if(strlen(trim($txt)) != 0)
25
+ return ' '.trim($txt);
26
+ return '';
27
+ }
28
+
29
+ public function getPoints()
30
+ {
31
+ $price = 0;
32
+ $core_session = Mage::getSingleton('core/session');
33
+ $visitor_data = $core_session->getVisitorData();
34
+ $uri = $visitor_data['request_uri'];
35
+
36
+ if(strpos($uri,'checkout'))
37
+ {
38
+ $checkout_session = Mage::getSingleton('checkout/session');
39
+ if($checkout_session)
40
+ {
41
+ $sales_quote = $checkout_session->getQuote();
42
+ if($sales_quote)
43
+ $price = $sales_quote->getSubtotal();
44
+ //Mage::Log($uri);
45
+ if(strpos($uri,'onepage/saveOrder'))
46
+ {
47
+ $order_id = $checkout_session->getLastOrderId();
48
+ //Mage::Log("Last Order ID: ".$order_id);
49
+ $order = Mage::getModel('sales/order');
50
+ $order->load($order_id);
51
+ $price = $order->getSubtotal();
52
+ }
53
+ }
54
+ }
55
+ return floor($price*Mage::getStoreConfig('points/settings/multiple'));
56
+ }
57
+
58
+ }
app/code/community/PunchTab/Points/Block/Onepage/Success.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class PunchTab_Points_Block_Onepage_Success extends Mage_Core_Block_Template
4
+ {
5
+
6
+ public function _construct()
7
+ {
8
+ parent::_construct();
9
+ $this->setTemplate('points/onepage/success.phtml');
10
+ }
11
+
12
+ public function getTextBeforePoints()
13
+ {
14
+ $txt = Mage::getStoreConfig('points/text/success_before');
15
+ if(strlen(trim($txt)) != 0)
16
+ return trim($txt).' ';
17
+ return '';
18
+ }
19
+
20
+ public function getTextAfterPoints()
21
+ {
22
+ $txt = Mage::getStoreConfig('points/text/success_after');
23
+ if(strlen(trim($txt)) != 0)
24
+ return ' '.trim($txt);
25
+ return '';
26
+ }
27
+
28
+ public function getPoints()
29
+ {
30
+ $price = 0;
31
+ $core_session = Mage::getSingleton('core/session');
32
+ $visitor_data = $core_session->getVisitorData();
33
+ $uri = $visitor_data['request_uri'];
34
+
35
+ if(strpos($uri,'checkout'))
36
+ {
37
+ $checkout_session = Mage::getSingleton('checkout/session');
38
+ if($checkout_session)
39
+ {
40
+ $sales_quote = $checkout_session->getQuote();
41
+ if($sales_quote)
42
+ $price = $sales_quote->getSubtotal();
43
+ //Mage::Log($uri);
44
+ if(strpos($uri,'onepage/saveOrder'))
45
+ {
46
+ $order_id = $checkout_session->getLastOrderId();
47
+ //Mage::Log("Last Order ID: ".$order_id);
48
+ $order = Mage::getModel('sales/order');
49
+ $order->load($order_id);
50
+ $price = $order->getSubtotal();
51
+ }
52
+ }
53
+ }
54
+ return floor($price*Mage::getStoreConfig('points/settings/multiple'));
55
+ }
56
+
57
+ }
app/code/community/PunchTab/Points/Block/Points.php CHANGED
@@ -8,50 +8,37 @@ class PunchTab_Points_Block_Points extends Mage_Core_Block_Template
8
  parent::_construct();
9
  $this->setTemplate('points/points.phtml');
10
  }
11
-
12
- public function getMessage()
13
  {
14
- $price = 0;
15
- $core_session = Mage::getSingleton('core/session');
16
- $visitor_data = $core_session->getVisitorData();
17
- $uri = $visitor_data['request_uri'];
 
18
 
19
- if(strpos($uri,'checkout'))
20
- {
21
- $checkout_session = Mage::getSingleton('checkout/session');
22
- if($checkout_session)
23
- {
24
- $sales_quote = $checkout_session->getQuote();
25
- if($sales_quote)
26
- $price = $sales_quote->getSubtotal();
27
- //Mage::Log($uri);
28
- if(strpos($uri,'onepage/saveOrder'))
29
- {
30
- $order_id = $checkout_session->getLastOrderId();
31
- //Mage::Log("Last Order ID: ".$order_id);
32
- $order = Mage::getModel('sales/order');
33
- $order->load($order_id);
34
- $price = $order->getSubtotal();
35
- }
36
- }
37
- }
38
- else
39
  {
40
- $catalog_session = Mage::getSingleton('catalog/session');
41
- if($catalog_session)
42
  {
43
- $product_id = $catalog_session->getLastViewedProductId();
44
- if($product_id)
45
- {
46
- $product = Mage::getModel('catalog/product')->load($product_id);
47
- $price = $product->getPrice();
48
- }
49
  }
50
  }
51
- $points = floor($price*Mage::getStoreConfig('points/settings/multiple'));
52
- //Mage::Log("Points ".$points);
53
- return $points.' points';
54
-
55
  }
56
 
57
  }
8
  parent::_construct();
9
  $this->setTemplate('points/points.phtml');
10
  }
11
+
12
+ public function getTextBeforePoints()
13
  {
14
+ $txt = Mage::getStoreConfig('points/text/product_before');
15
+ if(strlen(trim($txt)) != 0)
16
+ return trim($txt).' ';
17
+ return '';
18
+ }
19
 
20
+ public function getTextAfterPoints()
21
+ {
22
+ $txt = Mage::getStoreConfig('points/text/product_after');
23
+ if(strlen(trim($txt)) != 0)
24
+ return ' '.trim($txt);
25
+ return '';
26
+ }
27
+
28
+ public function getPoints()
29
+ {
30
+ $price = 0;
31
+ $catalog_session = Mage::getSingleton('catalog/session');
32
+ if($catalog_session)
 
 
 
 
 
 
 
33
  {
34
+ $product_id = $catalog_session->getLastViewedProductId();
35
+ if($product_id)
36
  {
37
+ $product = Mage::getModel('catalog/product')->load($product_id);
38
+ $price = $product->getPrice();
 
 
 
 
39
  }
40
  }
41
+ return floor($price*Mage::getStoreConfig('points/settings/multiple'));
 
 
 
42
  }
43
 
44
  }
app/code/community/PunchTab/Points/Helper/Data.php CHANGED
@@ -9,8 +9,18 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
9
  return $scrpt;
10
  }
11
 
 
 
 
 
 
 
 
 
12
  public function getRewardsTabScript()
13
  {
 
 
14
  $key = Mage::getStoreConfig('points/settings/key');
15
  Mage::Log("Key Length: ".strlen($key)." Key: ".$key);
16
  if(strlen($key)==0)
@@ -25,6 +35,44 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
25
  $pthost = "www.punchtab.com";
26
  Mage::getModel('core/config')->saveConfig('points/settings/pthost',$pthost);
27
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  $scrpt = '<script type="text/javascript" charset="utf-8">';
29
  $scrpt .= 'var is_ssl = ("https:" == document.location.protocol);';
30
  $scrpt .= 'var asset_host = is_ssl ? "https://';
@@ -37,7 +85,6 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
37
  $scrpt .= '</script>';
38
 
39
  $scrpt .= '<script type="text/javascript" charset="utf-8">';
40
- //$scrpt .= 'window.load = function(){';
41
  $scrpt .= 'var _ptq = _ptq || [];';
42
  $scrpt .= 'var reward_widget_options = {};';
43
  $scrpt .= 'reward_widget_options.key = "';
@@ -57,15 +104,13 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
57
  case 'bottom-right': $scrpt .= 'reward_widget_options.position = {x:"right",y:"bottom"};';break;
58
  default: $scrpt .= 'reward_widget_options.position = {x:"right",y:"bottom"};';break;
59
  }
60
-
61
  $scrpt .= 'var reward_widget = new PT.reward_widget(reward_widget_options);';
 
 
 
62
  //$scrpt .= '}';
63
- $scrpt .= 'window.ptAsyncInit = function() {';
64
- $scrpt .= ' if(typeof pt_magento !== "undefined")';
65
- $scrpt .= ' pt_magento.check_and_show_login_button();';
66
- $scrpt .= '}';
67
  $scrpt .= '</script>';
68
-
69
  return $scrpt;
70
  }
71
 
9
  return $scrpt;
10
  }
11
 
12
+ public function isPunchTabEnabled()
13
+ {
14
+ if(Mage::getStoreConfig('points/settings/enabled') == 0)
15
+ return FALSE;
16
+ else
17
+ return TRUE;
18
+ }
19
+
20
  public function getRewardsTabScript()
21
  {
22
+ if(Mage::getStoreConfig('points/settings/enabled') == 0)
23
+ return '';
24
  $key = Mage::getStoreConfig('points/settings/key');
25
  Mage::Log("Key Length: ".strlen($key)." Key: ".$key);
26
  if(strlen($key)==0)
35
  $pthost = "www.punchtab.com";
36
  Mage::getModel('core/config')->saveConfig('points/settings/pthost',$pthost);
37
  }
38
+
39
+
40
+ $scrpt = '<script type="text/javascript" charset="utf-8">';
41
+ $scrpt .= 'var _ptq = _ptq || [];';
42
+ $scrpt .= 'var _punchtab_settings = {';
43
+ $scrpt .= 'key: "';
44
+ $scrpt .= $key;
45
+ $scrpt .= '",';
46
+ if( Mage::getStoreConfig('points/settings/position') == 'in-line') {
47
+ $scrpt .= 'display: "inline",';
48
+ }
49
+ else {
50
+ $scrpt .= 'display: "tab",';
51
+ }
52
+ switch(Mage::getStoreConfig('points/settings/position'))
53
+ {
54
+ case 'top-left': $scrpt .= 'position: {x:"left",y:"top"}';break;
55
+ case 'top-right': $scrpt .= 'position: {x:"right",y:"top"}';break;
56
+ case 'bottom-left': $scrpt .= 'position: {x:"left",y:"bottom"}';break;
57
+ case 'bottom-right': $scrpt .= 'position: {x:"right",y:"bottom"}';break;
58
+ default: $scrpt .= 'position: {x:"right",y:"bottom"}';break;
59
+ }
60
+ $scrpt .= '};';
61
+ $scrpt .= '(function() {';
62
+ $scrpt .= 'var pt = document.createElement("script"); pt.type = "text/javascript"; pt.async = true;';
63
+ $scrpt .= 'pt.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
64
+ $scrpt .= $pthost;
65
+ $scrpt .= '/static/js/pt.js";';
66
+ $scrpt .= 'var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(pt, s);';
67
+ $scrpt .= 'var ptm = document.createElement("script"); ptm.type = "text/javascript"; ptm.async = true;';
68
+ $scrpt .= 'ptm.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
69
+ $scrpt .= $pthost;
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
+ /*
76
  $scrpt = '<script type="text/javascript" charset="utf-8">';
77
  $scrpt .= 'var is_ssl = ("https:" == document.location.protocol);';
78
  $scrpt .= 'var asset_host = is_ssl ? "https://';
85
  $scrpt .= '</script>';
86
 
87
  $scrpt .= '<script type="text/javascript" charset="utf-8">';
 
88
  $scrpt .= 'var _ptq = _ptq || [];';
89
  $scrpt .= 'var reward_widget_options = {};';
90
  $scrpt .= 'reward_widget_options.key = "';
104
  case 'bottom-right': $scrpt .= 'reward_widget_options.position = {x:"right",y:"bottom"};';break;
105
  default: $scrpt .= 'reward_widget_options.position = {x:"right",y:"bottom"};';break;
106
  }
 
107
  $scrpt .= 'var reward_widget = new PT.reward_widget(reward_widget_options);';
108
+ //$scrpt .= 'window.ptAsyncInit = function() {';
109
+ //$scrpt .= ' if(typeof pt_magento !== "undefined")';
110
+ //$scrpt .= ' pt_magento.check_and_show_login_button();';
111
  //$scrpt .= '}';
 
 
 
 
112
  $scrpt .= '</script>';
113
+ */
114
  return $scrpt;
115
  }
116
 
app/code/community/PunchTab/Points/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <PunchTab_Points>
6
- <version>1.0.4</version>
7
  </PunchTab_Points>
8
  </modules>
9
 
3
  <config>
4
  <modules>
5
  <PunchTab_Points>
6
+ <version>1.0.5</version>
7
  </PunchTab_Points>
8
  </modules>
9
 
app/code/community/PunchTab/Points/etc/system.xml CHANGED
@@ -12,49 +12,214 @@
12
  <show_in_store>1</show_in_store>
13
  <groups>
14
  <settings translate="label">
15
- <label>PunchTab Settings</label>
16
  <frontend_type>text</frontend_type>
17
  <sort_order>1</sort_order>
18
  <show_in_default>1</show_in_default>
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  <fields>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  <key translate="label">
23
  <label>PunchTab Key</label>
24
  <frontend_type>text</frontend_type>
25
- <sort_order>1</sort_order>
26
  <show_in_default>1</show_in_default>
27
  <show_in_website>1</show_in_website>
28
  <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
29
  </key>
30
  <position translate="label">
31
  <label>Rewards Display</label>
32
  <frontend_type>select</frontend_type>
33
  <source_model>points/backend_source_position</source_model>
34
- <sort_order>2</sort_order>
35
  <show_in_default>1</show_in_default>
36
  <show_in_website>1</show_in_website>
37
  <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
 
38
  </position>
39
  <multiple translate="label">
40
  <label>Points Multiple</label>
41
  <frontend_type>text</frontend_type>
42
- <sort_order>3</sort_order>
43
  <show_in_default>1</show_in_default>
44
  <show_in_website>1</show_in_website>
45
  <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
46
  </multiple>
47
  <pthost translate="label">
48
  <label>PunchTab Host</label>
49
  <frontend_type>text</frontend_type>
50
- <sort_order>4</sort_order>
51
  <show_in_default>1</show_in_default>
52
  <show_in_website>1</show_in_website>
53
  <show_in_store>1</show_in_store>
 
 
 
 
 
 
 
54
  </pthost>
55
  </fields>
56
  </settings>
57
  </groups>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  </points>
59
  </sections>
60
 
12
  <show_in_store>1</show_in_store>
13
  <groups>
14
  <settings translate="label">
15
+ <label>Main Settings</label>
16
  <frontend_type>text</frontend_type>
17
  <sort_order>1</sort_order>
18
  <show_in_default>1</show_in_default>
19
  <show_in_website>1</show_in_website>
20
  <show_in_store>1</show_in_store>
21
+ <comment>
22
+ <![CDATA[
23
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
24
+ Instructions to get <b>PunchTab Key</b><br/>
25
+ 1. Go to <a href="http://www.punchtab.com">www.punchtab.com</a> to signup for Key<br/>
26
+ 2. Enter magento store admin email address for "<b>Enter your email address</b>"<br/>
27
+ 3. Enter name of magento store site for "<b>Enter your website</b>" <br/>
28
+ 4. Click on <b>Sign up for free</b> button to complete signup<br/>
29
+ 5. Click on <b>Dashboard</b> from top menu<br/>
30
+ 6. Click on <b>Settings</b> from left menu displayed under <b>Loyalty Program</b><br/>
31
+ 7. Copy/save <b>Access Key</b> displayed on the right side of <b>Settings</b> page<br/>
32
+ 8. Paste Key copied into <b>PunchTab Key</b> field below<br/>
33
+ Support at <a href="http://feedback.punchtab.com">feedback.punchtab.com</a> or email <a href="mailto:support@punchtab.com">support@punchtab.com</a>.<br/>
34
+ </div>
35
+ ]]>
36
+ </comment>
37
  <fields>
38
+ <enabled translate="label">
39
+ <label>Enable PunchTab Rewards</label>
40
+ <frontend_type>select</frontend_type>
41
+ <source_model>adminhtml/system_config_source_yesno</source_model>
42
+ <sort_order>1</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>1</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ <comment>
47
+ <![CDATA[
48
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
49
+ Select <b>Yes</b> to enable PunchTab Points feature.
50
+ </div>
51
+ ]]>
52
+ </comment>
53
+ </enabled>
54
  <key translate="label">
55
  <label>PunchTab Key</label>
56
  <frontend_type>text</frontend_type>
57
+ <sort_order>2</sort_order>
58
  <show_in_default>1</show_in_default>
59
  <show_in_website>1</show_in_website>
60
  <show_in_store>1</show_in_store>
61
+ <comment>
62
+ <![CDATA[
63
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
64
+ Refer to Instructions above.
65
+ </div>
66
+ ]]>
67
+ </comment>
68
  </key>
69
  <position translate="label">
70
  <label>Rewards Display</label>
71
  <frontend_type>select</frontend_type>
72
  <source_model>points/backend_source_position</source_model>
73
+ <sort_order>3</sort_order>
74
  <show_in_default>1</show_in_default>
75
  <show_in_website>1</show_in_website>
76
  <show_in_store>1</show_in_store>
77
+ <comment>
78
+ <![CDATA[
79
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
80
+ Position of Rewards Tab on pages. <br/>
81
+ In case of <i>inline</i> selection, sidebar widget displayed above right column. <br/>
82
+ </div>
83
+ ]]>
84
+ </comment>
85
  </position>
86
  <multiple translate="label">
87
  <label>Points Multiple</label>
88
  <frontend_type>text</frontend_type>
89
+ <sort_order>4</sort_order>
90
  <show_in_default>1</show_in_default>
91
  <show_in_website>1</show_in_website>
92
  <show_in_store>1</show_in_store>
93
+ <comment>
94
+ <![CDATA[
95
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
96
+ Number of Rewards Points for dollar spent.
97
+ </div>
98
+ ]]>
99
+ </comment>
100
  </multiple>
101
  <pthost translate="label">
102
  <label>PunchTab Host</label>
103
  <frontend_type>text</frontend_type>
104
+ <sort_order>5</sort_order>
105
  <show_in_default>1</show_in_default>
106
  <show_in_website>1</show_in_website>
107
  <show_in_store>1</show_in_store>
108
+ <comment>
109
+ <![CDATA[
110
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
111
+ Leave the default value pointing to PunchTab Website.
112
+ </div>
113
+ ]]>
114
+ </comment>
115
  </pthost>
116
  </fields>
117
  </settings>
118
  </groups>
119
+ <groups>
120
+ <text>
121
+ <label>Display Text</label>
122
+ <frontend_type>text</frontend_type>
123
+ <sort_order>2</sort_order>
124
+ <show_in_default>1</show_in_default>
125
+ <show_in_website>1</show_in_website>
126
+ <show_in_store>1</show_in_store>
127
+ <fields>
128
+ <product_before translate="label">
129
+ <label>Product Page - Before</label>
130
+ <frontend_type>text</frontend_type>
131
+ <sort_order>1</sort_order>
132
+ <show_in_default>1</show_in_default>
133
+ <show_in_website>1</show_in_website>
134
+ <show_in_store>1</show_in_store>
135
+ <comment>
136
+ <![CDATA[
137
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
138
+ Text surrounding points value displayed with Product Information.
139
+ </div>
140
+ ]]>
141
+ </comment>
142
+ </product_before>
143
+ <product_after translate="label">
144
+ <label>Product Page - After </label>
145
+ <frontend_type>text</frontend_type>
146
+ <sort_order>2</sort_order>
147
+ <show_in_default>1</show_in_default>
148
+ <show_in_website>1</show_in_website>
149
+ <show_in_store>1</show_in_store>
150
+ </product_after>
151
+ <cart_before translate="label">
152
+ <label>Cart Page - Before</label>
153
+ <frontend_type>text</frontend_type>
154
+ <sort_order>3</sort_order>
155
+ <show_in_default>1</show_in_default>
156
+ <show_in_website>1</show_in_website>
157
+ <show_in_store>1</show_in_store>
158
+ <comment>
159
+ <![CDATA[
160
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
161
+ Text surrounding points value displayed in Checkout Cart.
162
+ </div>
163
+ ]]>
164
+ </comment>
165
+ </cart_before>
166
+ <cart_after translate="label">
167
+ <label>Cart Page - After</label>
168
+ <frontend_type>text</frontend_type>
169
+ <sort_order>4</sort_order>
170
+ <show_in_default>1</show_in_default>
171
+ <show_in_website>1</show_in_website>
172
+ <show_in_store>1</show_in_store>
173
+ </cart_after>
174
+ <checkout_before translate="label">
175
+ <label>Checkout Page - Before</label>
176
+ <frontend_type>text</frontend_type>
177
+ <sort_order>5</sort_order>
178
+ <show_in_default>1</show_in_default>
179
+ <show_in_website>1</show_in_website>
180
+ <show_in_store>1</show_in_store>
181
+ <comment>
182
+ <![CDATA[
183
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
184
+ Text surrounding points value displayed in Checkout Page.
185
+ </div>
186
+ ]]>
187
+ </comment>
188
+ </checkout_before>
189
+ <checkout_after translate="label">
190
+ <label>Checkout Page - After</label>
191
+ <frontend_type>text</frontend_type>
192
+ <sort_order>6</sort_order>
193
+ <show_in_default>1</show_in_default>
194
+ <show_in_website>1</show_in_website>
195
+ <show_in_store>1</show_in_store>
196
+ </checkout_after>
197
+ <success_before translate="label">
198
+ <label>Order Success Page: Before</label>
199
+ <frontend_type>text</frontend_type>
200
+ <sort_order>7</sort_order>
201
+ <show_in_default>1</show_in_default>
202
+ <show_in_website>1</show_in_website>
203
+ <show_in_store>1</show_in_store>
204
+ <comment>
205
+ <![CDATA[
206
+ <div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
207
+ Text surrounding points value displayed in Order Success Page.
208
+ </div>
209
+ ]]>
210
+ </comment>
211
+ </success_before>
212
+ <success_after translate="label">
213
+ <label>Order Success Page: After</label>
214
+ <frontend_type>text</frontend_type>
215
+ <sort_order>8</sort_order>
216
+ <show_in_default>1</show_in_default>
217
+ <show_in_website>1</show_in_website>
218
+ <show_in_store>1</show_in_store>
219
+ </success_after>
220
+ </fields>
221
+ </text>
222
+ </groups>
223
  </points>
224
  </sections>
225
 
app/design/frontend/base/default/layout/points.xml DELETED
@@ -1,52 +0,0 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.0.1">
3
-
4
- <default>
5
- <block type="points/points" name="points" />
6
- <block type="points/multishipping_points" name="multishipping_points" />
7
- <reference name="before_body_end">
8
- <block type="points/pt" name="points_pt" before="-" template="points/pt.phtml"/>
9
- </reference>
10
- <reference name="right">
11
- <block type="points/sidebar" name="points_sidebar" before="-" template="points/sidebar.phtml"/>
12
- </reference>
13
- </default>
14
-
15
- <catalog_product_view>
16
- <reference name="alert.urls">
17
- <block type="points/points" name="points_points" before="-" template="points/points.phtml"/>
18
- </reference>
19
- </catalog_product_view>
20
-
21
- <checkout_cart_index>
22
- <reference name="checkout.cart.methods">
23
- <block type="points/points" name="points_points" before="-" />
24
- </reference>
25
- </checkout_cart_index>
26
-
27
- <checkout_onepage_index>
28
- <reference name="right">
29
- <block type="points/points" name="points_points" after="-" />
30
- </reference>
31
- </checkout_onepage_index>
32
-
33
- <checkout_multishipping_overview>
34
- <reference name="checkout.multishipping.overview.items.after">
35
- <block type="points/points" name="points_points" after="-" />
36
- </reference>
37
- </checkout_multishipping_overview>
38
-
39
- <checkout_onepage_success>
40
- <reference name="checkout.success">
41
- <block type="points/points" name="points_points" after="-" />
42
- </reference>
43
- </checkout_onepage_success>
44
-
45
- <checkout_multishipping_success>
46
- <reference name="checkout_success">
47
- <block type="points/multishipping_points" name="multishipping_points" after="-" />
48
- </reference>
49
- </checkout_multishipping_success>
50
-
51
- </layout>
52
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/points/multishipping/points.phtml DELETED
@@ -1,3 +0,0 @@
1
- <div id="magento_points" class="regular-price">
2
- <span><?php echo $this->getMessage();?></span>
3
- </div>
 
 
 
app/design/frontend/base/default/template/points/points.phtml DELETED
@@ -1,3 +0,0 @@
1
- <div id="magento_points" class="regular-price">
2
- <span><?php echo $this->getMessage();?></span>
3
- </div>
 
 
 
app/design/frontend/base/default/template/points/pt.phtml DELETED
@@ -1,4 +0,0 @@
1
- <div id="pt-scripts" class="points" name="points">
2
- <?php echo $this->getScript(); ?>
3
- </div>
4
-
 
 
 
 
app/design/frontend/base/default/template/points/sidebar.phtml DELETED
@@ -1 +0,0 @@
1
- <div id="punchtab_widget"></div>
 
app/design/frontend/default/default/layout/points.xml CHANGED
@@ -1,9 +1,7 @@
1
  <?xml version="1.0"?>
2
- <layout version="0.0.1">
3
 
4
  <default>
5
- <block type="points/points" name="points" />
6
- <block type="points/multishipping_points" name="multishipping_points" />
7
  <reference name="before_body_end">
8
  <block type="points/pt" name="points_pt" before="-" template="points/pt.phtml"/>
9
  </reference>
@@ -13,38 +11,38 @@
13
  </default>
14
 
15
  <catalog_product_view>
16
- <reference name="alert.urls">
17
- <block type="points/points" name="points_points" before="-" template="points/points.phtml"/>
18
  </reference>
19
  </catalog_product_view>
20
 
21
  <checkout_cart_index>
22
  <reference name="checkout.cart.methods">
23
- <block type="points/points" name="points_points" before="-" />
24
  </reference>
25
  </checkout_cart_index>
26
 
27
  <checkout_onepage_index>
28
  <reference name="right">
29
- <block type="points/points" name="points_points" after="-" />
30
  </reference>
31
  </checkout_onepage_index>
32
 
33
- <checkout_multishipping_overview>
34
- <reference name="checkout.multishipping.overview.items.after">
35
- <block type="points/points" name="points_points" after="-" />
36
- </reference>
37
- </checkout_multishipping_overview>
38
-
39
  <checkout_onepage_success>
40
  <reference name="checkout.success">
41
- <block type="points/points" name="points_points" after="-" />
42
  </reference>
43
  </checkout_onepage_success>
44
 
 
 
 
 
 
 
45
  <checkout_multishipping_success>
46
  <reference name="checkout_success">
47
- <block type="points/multishipping_points" name="multishipping_points" after="-" />
48
  </reference>
49
  </checkout_multishipping_success>
50
 
1
  <?xml version="1.0"?>
2
+ <layout version="1.0.5">
3
 
4
  <default>
 
 
5
  <reference name="before_body_end">
6
  <block type="points/pt" name="points_pt" before="-" template="points/pt.phtml"/>
7
  </reference>
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>
18
 
19
  <checkout_cart_index>
20
  <reference name="checkout.cart.methods">
21
+ <block type="points/cart_points" name="cart_points" after="-" template="points/cart/points.phtml"/>
22
  </reference>
23
  </checkout_cart_index>
24
 
25
  <checkout_onepage_index>
26
  <reference name="right">
27
+ <block type="points/onepage_points" name="onepage_points" after="-" template="points/onepage/points.phtml"/>
28
  </reference>
29
  </checkout_onepage_index>
30
 
 
 
 
 
 
 
31
  <checkout_onepage_success>
32
  <reference name="checkout.success">
33
+ <block type="points/onepage_success" name="onepage_success" after="-" template="points/onepage/success.phtml"/>
34
  </reference>
35
  </checkout_onepage_success>
36
 
37
+ <checkout_multishipping_overview>
38
+ <reference name="checkout.multishipping.overview.items.after">
39
+ <block type="points/multishipping_points" name="multishipping_points" before="-" template="points/multishipping/points.phtml"/>
40
+ </reference>
41
+ </checkout_multishipping_overview>
42
+
43
  <checkout_multishipping_success>
44
  <reference name="checkout_success">
45
+ <block type="points/multishipping_success" name="multishipping_success" after="-" template="points/multishipping/success.phtml"/>
46
  </reference>
47
  </checkout_multishipping_success>
48
 
app/design/frontend/default/default/template/points/cart/points.phtml ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <? if(Mage::getStoreConfig('points/settings/enabled')) { ?>
2
+ <div id="magento_points" class="regular-price">
3
+
4
+ <? if(strlen(Mage::getModel('core/cookie')->get('ptfbst'))==0) { ?>
5
+ <div id="magento_points_login">
6
+ <span>
7
+ <?php echo $this->getTextBeforePoints();?>
8
+ </span>
9
+ </div>
10
+ <? } ?>
11
+
12
+ <span><?php echo $this->getPoints(); echo $this->getTextAfterPoints();?></span>
13
+ <a href="#" class=pt_open>Learn More</a>
14
+ </div>
15
+ <? } ?>
app/design/frontend/default/default/template/points/multishipping/points.phtml CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
1
  <div id="magento_points" class="regular-price">
2
- <span><?php echo $this->getMessage();?></span>
3
  </div>
 
1
+ <?
2
+ $points = $this->getPoints();
3
+ if(Mage::getStoreConfig('points/settings/enabled') && $points!=0) {
4
+ ?>
5
  <div id="magento_points" class="regular-price">
6
+ <span><?php echo $this->getTextBeforePoints();echo $points;echo $this->getTextAfterPoints();?></span>
7
  </div>
8
+ <? } ?>
app/design/frontend/default/default/template/points/multishipping/success.phtml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ $points = $this->getPoints();
3
+ if(Mage::getStoreConfig('points/settings/enabled') && $points!=0) {
4
+ ?>
5
+ <div id="magento_points" class="regular-price">
6
+ <div>
7
+ <span><?php echo $this->getTextBeforePoints();echo $points; echo $this->getTextAfterPoints();?></span>
8
+ <a href="#" class=pt_open>Learn More</a>
9
+ </div>
10
+ </div>
11
+ <? } ?>
app/design/frontend/default/default/template/points/onepage/points.phtml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ if( Mage::getStoreConfig('points/settings/enabled') &&
3
+ strlen(Mage::getModel('core/cookie')->get('ptfbst'))!=0 ) {
4
+ ?>
5
+ <div id="magento_points">
6
+ <div class="block block-progress opc-block-progress">
7
+ <dl>
8
+ <dt class="complete">
9
+ Rewards
10
+ <span class="separator">|</span>
11
+ <a href="#" class=pt_open>Learn More</a>
12
+ </dt>
13
+ <dd class="complete">
14
+ <span><?php echo $this->getTextBeforePoints();echo $this->getPoints(); echo $this->getTextAfterPoints();?></span>
15
+ </dd>
16
+ </dl>
17
+ </div>
18
+ </div>
19
+ <? } ?>
app/design/frontend/default/default/template/points/onepage/success.phtml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?
2
+ if( Mage::getStoreConfig('points/settings/enabled') &&
3
+ strlen(Mage::getModel('core/cookie')->get('ptfbst'))!=0 ) {
4
+ ?>
5
+ <div id="magento_points" class="regular-price">
6
+ <div>
7
+ <span><?php echo $this->getTextBeforePoints();echo $this->getPoints(); echo $this->getTextAfterPoints();?></span>
8
+ <a href="#" class=pt_open>Learn More</a>
9
+ </div>
10
+ </div>
11
+ <? } ?>
app/design/frontend/default/default/template/points/points.phtml CHANGED
@@ -1,3 +1,15 @@
 
 
 
 
 
 
 
1
  <div id="magento_points" class="regular-price">
2
- <span><?php echo $this->getMessage();?></span>
 
 
 
3
  </div>
 
 
1
+ <?
2
+ $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>
12
+ </div>
13
  </div>
14
+
15
+ <? } ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>punchtabpoints</name>
4
- <version>1.0.4</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>
@@ -12,16 +12,20 @@
12
  From purchases to social sharing, reward-enable any action you want to incentivize your users to take on your Magento eCommerce site.</description>
13
  <notes>- Display Reward Points in&#xD;
14
  * Product page&#xD;
 
15
  * Checkout page&#xD;
16
  * Order Success Page&#xD;
 
17
  - Configure &#xD;
 
18
  * points multiple for dollars purchased&#xD;
19
  * location of Rewards Tab on site pages&#xD;
20
- - Earn Reward Points at www.punchtab.com (reported when order completes successfully)</notes>
 
21
  <authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
22
- <date>2011-11-29</date>
23
- <time>02:49:23</time>
24
- <contents><target name="magecommunity"><dir name="PunchTab"><dir name="Points"><dir name="Block"><dir name="Multishipping"><file name="Points.php" hash="2904825280ac274f1d89f84d363a32e2"/></dir><file name="Points.php" hash="5b7578288edc1fe6743b7eed502a5a5f"/><file name="Pt.php" hash="12f0a834df7a458e67f3b5035c89f050"/><file name="Sidebar.php" hash="5bf33a1f8399f6755d884794fb049cd0"/></dir><dir name="Helper"><file name="Data.php" hash="cd954975945776516fc99183ae3da61e"/></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="fedf8aec537f4083be57073bd731308f"/><file name="system.xml" hash="5331b91ddf2baa81263b3e87093542f2"/></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="base"><dir name="default"><dir name="layout"><file name="points.xml" hash="c64d209ff4f3f423f173b3d85c470578"/></dir><dir name="template"><dir name="points"><dir name="multishipping"><file name="points.phtml" hash="17ff2427fe17c787c3708cfa00140f78"/></dir><file name="points.phtml" hash="17ff2427fe17c787c3708cfa00140f78"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="layout"><file name="points.xml" hash="c64d209ff4f3f423f173b3d85c470578"/></dir><dir name="template"><dir name="points"><dir name="multishipping"><file name="points.phtml" hash="17ff2427fe17c787c3708cfa00140f78"/></dir><file name="points.phtml" hash="17ff2427fe17c787c3708cfa00140f78"/><file name="pt.phtml" hash="27063bd14d7abb81baafed07cbbd5916"/><file name="sidebar.phtml" hash="568f4f7ac38ad1b1e0f2e4da21639a70"/></dir></dir></dir></dir></dir></target></contents>
25
  <compatible/>
26
  <dependencies/>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>punchtabpoints</name>
4
+ <version>1.0.5</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>
12
  From purchases to social sharing, reward-enable any action you want to incentivize your users to take on your Magento eCommerce site.</description>
13
  <notes>- Display Reward Points in&#xD;
14
  * Product page&#xD;
15
+ * Cart page&#xD;
16
  * Checkout page&#xD;
17
  * Order Success Page&#xD;
18
+ - Earn Reward Points at www.punchtab.com (reported when order completes successfully) &#xD;
19
  - Configure &#xD;
20
+ * value for PunchTab Key&#xD;
21
  * points multiple for dollars purchased&#xD;
22
  * location of Rewards Tab on site pages&#xD;
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:11:32</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="176cfe44aab1f6df4487fd633621e5b0"/><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="a51414502087bd0227131e1297970320"/></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>