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
Download this release
Release Info
Developer | Magento Core Team |
Extension | punchtabpoints |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.9 to 1.2.0
- app/code/community/PunchTab/Points/Helper/Data.php +60 -24
- app/code/community/PunchTab/Points/Model/Observer.php +11 -5
- app/code/community/PunchTab/Points/etc/config.xml +1 -1
- app/code/community/PunchTab/Points/etc/system.xml +22 -21
- app/design/frontend/base/default/layout/points.xml +1 -1
- app/design/frontend/base/default/template/points/bar.phtml +1 -11
- app/design/frontend/default/default/layout/points.xml +1 -1
- app/design/frontend/default/default/template/points/bar.phtml +1 -11
- package.xml +4 -4
app/code/community/PunchTab/Points/Helper/Data.php
CHANGED
@@ -48,25 +48,41 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
|
|
48 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Language: ".$language);
|
49 |
|
50 |
$scrpt = '<script type="text/javascript" charset="utf-8">';
|
51 |
-
$scrpt .= 'var _ptq = _ptq || [];';
|
52 |
-
if( Mage::getStoreConfig('points/social/badges') )
|
53 |
-
$scrpt .= 'var _btq = _btq || [];';
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
$scrpt .= 'var _punchtab_settings = {';
|
56 |
$scrpt .= 'key: "';
|
57 |
$scrpt .= $key;
|
58 |
$scrpt .= '",';
|
59 |
-
|
60 |
if( Mage::getStoreConfig('points/settings/position') == 'none') {
|
61 |
$scrpt .= 'display: "inline",';
|
62 |
}
|
63 |
else {
|
64 |
$scrpt .= 'display: "tab",';
|
65 |
}
|
66 |
-
|
67 |
if($language != "en")
|
68 |
$scrpt .= 'language: "'.$language.'",';
|
69 |
-
|
70 |
switch(Mage::getStoreConfig('points/settings/position'))
|
71 |
{
|
72 |
case 'top-left': $scrpt .= 'position: {x:"left",y:"top"},';break;
|
@@ -92,6 +108,23 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
|
|
92 |
$scrpt .= 'earningmap: false';
|
93 |
$scrpt .= '};';
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
$scrpt .= '(function() {';
|
96 |
$scrpt .= 'var pt = document.createElement("script"); pt.type = "text/javascript"; pt.async = true;';
|
97 |
$scrpt .= 'pt.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
|
@@ -99,28 +132,31 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
|
|
99 |
$scrpt .= '/js/pt.js";';
|
100 |
$scrpt .= 'var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(pt, s);';
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
if( Mage::getStoreConfig('points/
|
109 |
-
{
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
}
|
116 |
|
117 |
$scrpt .= '})();';
|
118 |
|
119 |
-
|
120 |
-
$scrpt .= '
|
|
|
|
|
121 |
$scrpt .= ' pt_magento.relocate_div_by_id("punchtab_social_bar","before","short-description","class");';
|
122 |
$scrpt .= ' pt_magento.relocate_div_by_id("movable_points","before","short-description","class");';
|
123 |
-
$scrpt .= '}';
|
|
|
124 |
|
125 |
$scrpt .= '</script>';
|
126 |
|
@@ -334,7 +370,7 @@ class PunchTab_Points_Helper_Data extends Mage_Core_Helper_Abstract
|
|
334 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Exiting voidToken...");
|
335 |
if($response->{'status'} == 'disconnected')
|
336 |
{
|
337 |
-
Mage::getModel('core/cookie')->delete('pt_token_value','/',$http_host,false,false);
|
338 |
return true;
|
339 |
}
|
340 |
else
|
48 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Language: ".$language);
|
49 |
|
50 |
$scrpt = '<script type="text/javascript" charset="utf-8">';
|
|
|
|
|
|
|
51 |
|
52 |
+
$session = Mage::getSingleton('customer/session',array('name'=>'frontend'));
|
53 |
+
if($session->isLoggedIn())
|
54 |
+
{
|
55 |
+
$customer = $session->getCustomer();
|
56 |
+
$auth_request_array = array();
|
57 |
+
$auth_request_array['id'] = $customer->getEmail();
|
58 |
+
$auth_request_array['first_name'] = $customer->getFirstname();
|
59 |
+
$auth_request_array['last_name'] = $customer->getLastname();
|
60 |
+
$auth_request_array['email'] = $customer->getEmail();
|
61 |
+
$auth_request_str = json_encode($auth_request_array);
|
62 |
+
$auth_request = base64_encode($auth_request_str);
|
63 |
+
$timestamp = time();
|
64 |
+
$signature = hash_hmac('sha1',$auth_request.' '.$timestamp,Mage::getStoreConfig('points/settings/secret'));
|
65 |
+
$scrpt .= 'var _pt_pre_config = {';
|
66 |
+
$scrpt .= ' auth_request: "'.$auth_request.'",';
|
67 |
+
$scrpt .= ' signature: "'.$signature.'",';
|
68 |
+
$scrpt .= ' timestamp: "'.$timestamp.'",';
|
69 |
+
$scrpt .= ' client_id: "'.Mage::getStoreConfig('points/settings/cid').'"';
|
70 |
+
$scrpt .= '};';
|
71 |
+
}
|
72 |
+
|
73 |
+
$scrpt .= 'var _ptq = _ptq || [];';
|
74 |
$scrpt .= 'var _punchtab_settings = {';
|
75 |
$scrpt .= 'key: "';
|
76 |
$scrpt .= $key;
|
77 |
$scrpt .= '",';
|
|
|
78 |
if( Mage::getStoreConfig('points/settings/position') == 'none') {
|
79 |
$scrpt .= 'display: "inline",';
|
80 |
}
|
81 |
else {
|
82 |
$scrpt .= 'display: "tab",';
|
83 |
}
|
|
|
84 |
if($language != "en")
|
85 |
$scrpt .= 'language: "'.$language.'",';
|
|
|
86 |
switch(Mage::getStoreConfig('points/settings/position'))
|
87 |
{
|
88 |
case 'top-left': $scrpt .= 'position: {x:"left",y:"top"},';break;
|
108 |
$scrpt .= 'earningmap: false';
|
109 |
$scrpt .= '};';
|
110 |
|
111 |
+
if( Mage::getStoreConfig('points/settings/badges') != 'none' )
|
112 |
+
{
|
113 |
+
$scrpt .= 'var _btq = _btq || [];';
|
114 |
+
$scrpt .= 'var _punchtab_settings_badges = {';
|
115 |
+
$scrpt .= 'key: "';
|
116 |
+
$scrpt .= $key;
|
117 |
+
$scrpt .= '",';
|
118 |
+
switch(Mage::getStoreConfig('points/settings/badges'))
|
119 |
+
{
|
120 |
+
case 'top-left': $scrpt .= 'position: {x:"left",y:"top"},';break;
|
121 |
+
case 'top-right': $scrpt .= 'position: {x:"right",y:"top"},';break;
|
122 |
+
case 'bottom-left': $scrpt .= 'position: {x:"left",y:"bottom"},';break;
|
123 |
+
case 'bottom-right': $scrpt .= 'position: {x:"right",y:"bottom"},';break;
|
124 |
+
}
|
125 |
+
$scrpt .= '};';
|
126 |
+
}
|
127 |
+
|
128 |
$scrpt .= '(function() {';
|
129 |
$scrpt .= 'var pt = document.createElement("script"); pt.type = "text/javascript"; pt.async = true;';
|
130 |
$scrpt .= 'pt.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
|
132 |
$scrpt .= '/js/pt.js";';
|
133 |
$scrpt .= 'var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(pt, s);';
|
134 |
|
135 |
+
//$scrpt .= 'var ptm = document.createElement("script"); ptm.type = "text/javascript"; ptm.async = true;';
|
136 |
+
//$scrpt .= 'ptm.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
|
137 |
+
//$scrpt .= $statichost;
|
138 |
+
//$scrpt .= '/js/pt_magento.js";';
|
139 |
+
//$scrpt .= 'var sm = document.getElementsByTagName("script")[0]; sm.parentNode.insertBefore(ptm, sm);';
|
140 |
+
|
141 |
+
//if( Mage::getStoreConfig('points/settings/badges') != 'none' )
|
142 |
+
//{
|
143 |
+
// $scrpt .= 'var pb = document.createElement("script"); pb.type = "text/javascript"; pb.async = true;';
|
144 |
+
// $scrpt .= 'pb.src = ("https:" == document.location.protocol ? "https://" : "http://") + "';
|
145 |
+
// $scrpt .= $statichost;
|
146 |
+
// $scrpt .= '/js/pb.js";';
|
147 |
+
// $scrpt .= 'var spb = document.getElementsByTagName("script")[0]; spb.parentNode.insertBefore(pb, spb);';
|
148 |
+
//}
|
149 |
|
150 |
$scrpt .= '})();';
|
151 |
|
152 |
+
//$scrpt .= 'window.ptAsyncInit = function() {';
|
153 |
+
$scrpt .= 'window.ptReady = window.ptReady || [];';
|
154 |
+
$scrpt .= 'window.ptReady.push(function() {';
|
155 |
+
$scrpt .= ' if(typeof pt_magento !== "undefined") {';
|
156 |
$scrpt .= ' pt_magento.relocate_div_by_id("punchtab_social_bar","before","short-description","class");';
|
157 |
$scrpt .= ' pt_magento.relocate_div_by_id("movable_points","before","short-description","class");';
|
158 |
+
$scrpt .= ' }';
|
159 |
+
$scrpt .= '});';
|
160 |
|
161 |
$scrpt .= '</script>';
|
162 |
|
370 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Exiting voidToken...");
|
371 |
if($response->{'status'} == 'disconnected')
|
372 |
{
|
373 |
+
//Mage::getModel('core/cookie')->delete('pt_token_value','/',$http_host,false,false);
|
374 |
return true;
|
375 |
}
|
376 |
else
|
app/code/community/PunchTab/Points/Model/Observer.php
CHANGED
@@ -55,8 +55,8 @@ class PunchTab_Points_Model_Observer
|
|
55 |
$visitor_data = $core_session->getVisitorData();
|
56 |
$http_host = $visitor_data['http_host'];
|
57 |
$token = Mage::helper('points')->getPunchTabToken();
|
58 |
-
if( !is_null($token) )
|
59 |
-
Mage::getModel('core/cookie')->set('pt_token_value',$token,14*24*60*60,'/',$http_host,false,false);
|
60 |
}
|
61 |
}
|
62 |
else
|
@@ -141,8 +141,8 @@ class PunchTab_Points_Model_Observer
|
|
141 |
{
|
142 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Invalid Token.. getting new one");
|
143 |
$token = Mage::helper('points')->getPunchTabToken();
|
144 |
-
if( !is_null($token) )
|
145 |
-
|
146 |
}
|
147 |
}
|
148 |
if(strlen($token) == 0)
|
@@ -216,7 +216,7 @@ class PunchTab_Points_Model_Observer
|
|
216 |
$core_session = Mage::getSingleton('core/session');
|
217 |
$visitor_data = $core_session->getVisitorData();
|
218 |
$http_host = $visitor_data['http_host'];
|
219 |
-
Mage::getModel('core/cookie')->set('pt_token_value',$token,14*24*60*60,'/',$http_host,false,false);
|
220 |
|
221 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Set pt_token_value to ".$token);
|
222 |
}
|
@@ -243,6 +243,12 @@ class PunchTab_Points_Model_Observer
|
|
243 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Voided token".$token);
|
244 |
else
|
245 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Failed to void token ".$token);
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
}
|
247 |
else
|
248 |
Mage::Log("WARN - PunchTab not enabled or Client ID/shared secret not set");
|
55 |
$visitor_data = $core_session->getVisitorData();
|
56 |
$http_host = $visitor_data['http_host'];
|
57 |
$token = Mage::helper('points')->getPunchTabToken();
|
58 |
+
//if( !is_null($token) )
|
59 |
+
//Mage::getModel('core/cookie')->set('pt_token_value',$token,14*24*60*60,'/',$http_host,false,false);
|
60 |
}
|
61 |
}
|
62 |
else
|
141 |
{
|
142 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Invalid Token.. getting new one");
|
143 |
$token = Mage::helper('points')->getPunchTabToken();
|
144 |
+
//if( !is_null($token) )
|
145 |
+
//$cookie->set('pt_token_value',$token,14*24*60*60,'/',$http_host,false,false);
|
146 |
}
|
147 |
}
|
148 |
if(strlen($token) == 0)
|
216 |
$core_session = Mage::getSingleton('core/session');
|
217 |
$visitor_data = $core_session->getVisitorData();
|
218 |
$http_host = $visitor_data['http_host'];
|
219 |
+
//Mage::getModel('core/cookie')->set('pt_token_value',$token,14*24*60*60,'/',$http_host,false,false);
|
220 |
|
221 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Set pt_token_value to ".$token);
|
222 |
}
|
243 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Voided token".$token);
|
244 |
else
|
245 |
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Failed to void token ".$token);
|
246 |
+
|
247 |
+
$token = Mage::getModel('core/cookie')->get('ptfbst');
|
248 |
+
if(Mage::helper('points')->voidToken($token))
|
249 |
+
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Voided token".$token);
|
250 |
+
else
|
251 |
+
if(Mage::getStoreConfig('points/developer/debug')) Mage::Log("Failed to void token ".$token);
|
252 |
}
|
253 |
else
|
254 |
Mage::Log("WARN - PunchTab not enabled or Client ID/shared secret not set");
|
app/code/community/PunchTab/Points/etc/config.xml
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<config>
|
4 |
<modules>
|
5 |
<PunchTab_Points>
|
6 |
-
<version>1.
|
7 |
</PunchTab_Points>
|
8 |
</modules>
|
9 |
|
3 |
<config>
|
4 |
<modules>
|
5 |
<PunchTab_Points>
|
6 |
+
<version>1.2.0</version>
|
7 |
</PunchTab_Points>
|
8 |
</modules>
|
9 |
|
app/code/community/PunchTab/Points/etc/system.xml
CHANGED
@@ -95,11 +95,28 @@
|
|
95 |
</comment>
|
96 |
</sidebar>
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
<myrewards translate="label">
|
99 |
<label>My Rewards Tab</label>
|
100 |
<frontend_type>select</frontend_type>
|
101 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
102 |
-
<sort_order>
|
103 |
<show_in_default>1</show_in_default>
|
104 |
<show_in_website>1</show_in_website>
|
105 |
<show_in_store>1</show_in_store>
|
@@ -115,7 +132,7 @@
|
|
115 |
<multiple translate="label">
|
116 |
<label>Points Multiple</label>
|
117 |
<frontend_type>text</frontend_type>
|
118 |
-
<sort_order>
|
119 |
<show_in_default>1</show_in_default>
|
120 |
<show_in_website>1</show_in_website>
|
121 |
<show_in_store>1</show_in_store>
|
@@ -131,7 +148,7 @@
|
|
131 |
<cid translate="label">
|
132 |
<label>PunchTab Client ID</label>
|
133 |
<frontend_type>text</frontend_type>
|
134 |
-
<sort_order>
|
135 |
<show_in_default>1</show_in_default>
|
136 |
<show_in_website>1</show_in_website>
|
137 |
<show_in_store>1</show_in_store>
|
@@ -147,7 +164,7 @@
|
|
147 |
<secret translate="label">
|
148 |
<label>Shared Secret</label>
|
149 |
<frontend_type>text</frontend_type>
|
150 |
-
<sort_order>
|
151 |
<show_in_default>1</show_in_default>
|
152 |
<show_in_website>1</show_in_website>
|
153 |
<show_in_store>1</show_in_store>
|
@@ -164,7 +181,7 @@
|
|
164 |
<label>Language</label>
|
165 |
<frontend_type>select</frontend_type>
|
166 |
<source_model>points/backend_language</source_model>
|
167 |
-
<sort_order>
|
168 |
<show_in_default>1</show_in_default>
|
169 |
<show_in_website>1</show_in_website>
|
170 |
<show_in_store>1</show_in_store>
|
@@ -226,22 +243,6 @@
|
|
226 |
</comment>
|
227 |
</buttons>
|
228 |
|
229 |
-
<badges translate="label">
|
230 |
-
<label>Badges</label>
|
231 |
-
<frontend_type>select</frontend_type>
|
232 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
233 |
-
<sort_order>3</sort_order>
|
234 |
-
<show_in_default>1</show_in_default>
|
235 |
-
<show_in_website>1</show_in_website>
|
236 |
-
<show_in_store>1</show_in_store>
|
237 |
-
<comment>
|
238 |
-
<![CDATA[
|
239 |
-
<div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
|
240 |
-
Select <b>Yes</b> to enable Badges display for social action achievements.
|
241 |
-
</div>
|
242 |
-
]]>
|
243 |
-
</comment>
|
244 |
-
</badges>
|
245 |
|
246 |
<!-- like translate="label">
|
247 |
<label>Like Button</label>
|
95 |
</comment>
|
96 |
</sidebar>
|
97 |
|
98 |
+
<badges translate="label">
|
99 |
+
<label>Badges</label>
|
100 |
+
<frontend_type>select</frontend_type>
|
101 |
+
<source_model>points/backend_source_position</source_model>
|
102 |
+
<sort_order>5</sort_order>
|
103 |
+
<show_in_default>1</show_in_default>
|
104 |
+
<show_in_website>1</show_in_website>
|
105 |
+
<show_in_store>1</show_in_store>
|
106 |
+
<comment>
|
107 |
+
<![CDATA[
|
108 |
+
<div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">
|
109 |
+
Position of <b>Badges</b> tab in pages. Choose <i>None</i> to disable badges
|
110 |
+
</div>
|
111 |
+
]]>
|
112 |
+
</comment>
|
113 |
+
</badges>
|
114 |
+
|
115 |
<myrewards translate="label">
|
116 |
<label>My Rewards Tab</label>
|
117 |
<frontend_type>select</frontend_type>
|
118 |
<source_model>adminhtml/system_config_source_yesno</source_model>
|
119 |
+
<sort_order>6</sort_order>
|
120 |
<show_in_default>1</show_in_default>
|
121 |
<show_in_website>1</show_in_website>
|
122 |
<show_in_store>1</show_in_store>
|
132 |
<multiple translate="label">
|
133 |
<label>Points Multiple</label>
|
134 |
<frontend_type>text</frontend_type>
|
135 |
+
<sort_order>7</sort_order>
|
136 |
<show_in_default>1</show_in_default>
|
137 |
<show_in_website>1</show_in_website>
|
138 |
<show_in_store>1</show_in_store>
|
148 |
<cid translate="label">
|
149 |
<label>PunchTab Client ID</label>
|
150 |
<frontend_type>text</frontend_type>
|
151 |
+
<sort_order>8</sort_order>
|
152 |
<show_in_default>1</show_in_default>
|
153 |
<show_in_website>1</show_in_website>
|
154 |
<show_in_store>1</show_in_store>
|
164 |
<secret translate="label">
|
165 |
<label>Shared Secret</label>
|
166 |
<frontend_type>text</frontend_type>
|
167 |
+
<sort_order>9</sort_order>
|
168 |
<show_in_default>1</show_in_default>
|
169 |
<show_in_website>1</show_in_website>
|
170 |
<show_in_store>1</show_in_store>
|
181 |
<label>Language</label>
|
182 |
<frontend_type>select</frontend_type>
|
183 |
<source_model>points/backend_language</source_model>
|
184 |
+
<sort_order>10</sort_order>
|
185 |
<show_in_default>1</show_in_default>
|
186 |
<show_in_website>1</show_in_website>
|
187 |
<show_in_store>1</show_in_store>
|
243 |
</comment>
|
244 |
</buttons>
|
245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
<!-- like translate="label">
|
248 |
<label>Like Button</label>
|
app/design/frontend/base/default/layout/points.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.0">
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
app/design/frontend/base/default/template/points/bar.phtml
CHANGED
@@ -1,14 +1,4 @@
|
|
1 |
<div id="punchtab_social_bar">
|
2 |
-
<div class="
|
3 |
-
<div class="float">
|
4 |
-
<div class="fb-like" data-layout="button_count" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>"></div>
|
5 |
-
</div>
|
6 |
-
<div class="float">
|
7 |
-
<a href="//twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>
|
8 |
-
</div>
|
9 |
-
<div class="float">
|
10 |
-
<div class="punchtab-plusone" data-size="medium" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>"></div>
|
11 |
-
</div>
|
12 |
-
</div>
|
13 |
</div>
|
14 |
|
1 |
<div id="punchtab_social_bar">
|
2 |
+
<div class="pt-social"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
</div>
|
4 |
|
app/design/frontend/default/default/layout/points.xml
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
-
<layout version="1.
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
1 |
<?xml version="1.0"?>
|
2 |
+
<layout version="1.2.0">
|
3 |
|
4 |
<default>
|
5 |
<reference name="head">
|
app/design/frontend/default/default/template/points/bar.phtml
CHANGED
@@ -1,14 +1,4 @@
|
|
1 |
<div id="punchtab_social_bar">
|
2 |
-
<div class="
|
3 |
-
<div class="float">
|
4 |
-
<div class="fb-like" data-layout="button_count" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>"></div>
|
5 |
-
</div>
|
6 |
-
<div class="float">
|
7 |
-
<a href="//twitter.com/share" class="twitter-share-button" data-count="horizontal">Tweet</a>
|
8 |
-
</div>
|
9 |
-
<div class="float">
|
10 |
-
<div class="punchtab-plusone" data-size="medium" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>"></div>
|
11 |
-
</div>
|
12 |
-
</div>
|
13 |
</div>
|
14 |
|
1 |
<div id="punchtab_social_bar">
|
2 |
+
<div class="pt-social"></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
</div>
|
4 |
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>punchtabpoints</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.gnu.org/licenses/lgpl-3.0.html">LGPL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -18,9 +18,9 @@
|
|
18 |
8) Enable Multi-language support
|
19 |
9) Coupon support</notes>
|
20 |
<authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
|
21 |
-
<date>2012-
|
22 |
-
<time>00:
|
23 |
-
<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="
|
24 |
<compatible/>
|
25 |
<dependencies/>
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>punchtabpoints</name>
|
4 |
+
<version>1.2.0</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>
|
18 |
8) Enable Multi-language support
|
19 |
9) Coupon support</notes>
|
20 |
<authors><author><name>punchtab</name><user>auto-converted</user><email>apps@punchtab.com</email></author></authors>
|
21 |
+
<date>2012-08-28</date>
|
22 |
+
<time>09:00:44</time>
|
23 |
+
<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="935a5b01547b581e1515d4dfad1c5804"/></dir><dir name="Model"><dir name="Backend"><dir name="Source"><file name="Position.php" hash="cc9f3f99374dcd63857f3dfcd138ca4c"/></dir><file name="Language.php" hash="6f912100b087ed78c1db3ef69ab8a2db"/></dir><file name="Api.php" hash="a423082a3cef35888ce47a43f34f439f"/><file name="Observer.php" hash="47f9d9741d0d1cf15c2c2a4a5f52eb12"/></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="aaf1f3c48a078798c18ccdbe4a633836"/><file name="system.xml" hash="1196b4d11f3f89849146fb477905be76"/></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="5cf2169337f684268a6c2427adb8553c"/></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="5cf2169337f684268a6c2427adb8553c"/></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>
|
24 |
<compatible/>
|
25 |
<dependencies/>
|
26 |
</package>
|