Version Notes
Option to disable Apply to Cart on empty carts.
Download this release
Release Info
Developer | Tarwin Stroh-Spijer |
Extension | Fanplayr |
Version | 1.0.78 |
Comparing to | |
See all releases |
Code changes from version 1.0.77 to 1.0.78
- app/code/community/Fanplayr/Socialcoupons/Block/Adminhtml/System/Config/Form/Field/Installhelper.php +4 -0
- app/code/community/Fanplayr/Socialcoupons/Model/EmbedObserver.php +8 -1
- app/code/community/Fanplayr/Socialcoupons/Model/OrderObserver.php +40 -0
- app/code/community/Fanplayr/Socialcoupons/controllers/AjaxController.php +7 -2
- app/code/community/Fanplayr/Socialcoupons/controllers/CompyController.php +2 -0
- package.xml +5 -5
- skin/frontend/socialcoupons/fanplayr_socialcoupons.js +2 -1
app/code/community/Fanplayr/Socialcoupons/Block/Adminhtml/System/Config/Form/Field/Installhelper.php
CHANGED
@@ -102,6 +102,8 @@ class Fanplayr_Socialcoupons_Block_Adminhtml_System_Config_Form_Field_Installhel
|
|
102 |
$disableUserIdentifyTracking = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking'));
|
103 |
$couponApplyUtm = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/coupon_apply_utm'));
|
104 |
|
|
|
|
|
105 |
// have to use this variable for backwards compatability ...
|
106 |
$currentEmbedType = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
107 |
if (!$currentEmbedType) $currentEmbedType = '0';
|
@@ -241,6 +243,8 @@ class Fanplayr_Socialcoupons_Block_Adminhtml_System_Config_Form_Field_Installhel
|
|
241 |
|
242 |
<tr><td><label title="If set, the string will be added to the cart URL after a '?'. ie 'utm_source=Shop&utm_medium=banner&utm_campaign=FanPlayr'">Apply to Cart UTM</label></td><td><input type="text" id="fanplayrsocialcoupons-couponapplyutm" name="fanplayrsocialcoupons-couponapplyutm" value="{$couponApplyUtm}" /></td></tr>
|
243 |
|
|
|
|
|
244 |
<tr><td colspan="2"><a href="#" id="fanplayrsocialcoupons-console-hide" onclick="Fanplayr.console.hide(); return false;">Hide</a></td></tr>
|
245 |
|
246 |
</table>
|
102 |
$disableUserIdentifyTracking = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking'));
|
103 |
$couponApplyUtm = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/coupon_apply_utm'));
|
104 |
|
105 |
+
$disableAtcEmpty = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_atc_empty'));
|
106 |
+
|
107 |
// have to use this variable for backwards compatability ...
|
108 |
$currentEmbedType = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
109 |
if (!$currentEmbedType) $currentEmbedType = '0';
|
243 |
|
244 |
<tr><td><label title="If set, the string will be added to the cart URL after a '?'. ie 'utm_source=Shop&utm_medium=banner&utm_campaign=FanPlayr'">Apply to Cart UTM</label></td><td><input type="text" id="fanplayrsocialcoupons-couponapplyutm" name="fanplayrsocialcoupons-couponapplyutm" value="{$couponApplyUtm}" /></td></tr>
|
245 |
|
246 |
+
<tr><td><label title="If set to '1' it will disable 'Apply to Cart' URL if the cart is empty.">Disable Apply to Cart URL on empty cart</label></td><td><input type="text" id="fanplayrsocialcoupons-disableatcempty" name="fanplayrsocialcoupons-disableatcempty" value="{$disableAtcEmpty}" /></td></tr>
|
247 |
+
|
248 |
<tr><td colspan="2"><a href="#" id="fanplayrsocialcoupons-console-hide" onclick="Fanplayr.console.hide(); return false;">Hide</a></td></tr>
|
249 |
|
250 |
</table>
|
app/code/community/Fanplayr/Socialcoupons/Model/EmbedObserver.php
CHANGED
@@ -163,7 +163,6 @@
|
|
163 |
$block->assign('widgetKeysGenius', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys_genius'));
|
164 |
$block->assign('accountKey', Mage::getStoreConfig('fanplayrsocialcoupons/config/acc_key'));
|
165 |
|
166 |
-
$block->assign('applyToCartUrl', $shopUrl . 'fanplayr/coupon/add/code/%c/');
|
167 |
$block->assign('deputizeUrl', $shopUrl . 'fanplayr/coupon/deputize/a/%a/d/%d/');
|
168 |
$block->assign('sessionCouponUrl', $shopUrl . 'fanplayr/coupon/session/code/%c/');
|
169 |
|
@@ -182,6 +181,14 @@
|
|
182 |
$currentProductUrl
|
183 |
);
|
184 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
185 |
$block->assign('data', $data);
|
186 |
}
|
187 |
|
163 |
$block->assign('widgetKeysGenius', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys_genius'));
|
164 |
$block->assign('accountKey', Mage::getStoreConfig('fanplayrsocialcoupons/config/acc_key'));
|
165 |
|
|
|
166 |
$block->assign('deputizeUrl', $shopUrl . 'fanplayr/coupon/deputize/a/%a/d/%d/');
|
167 |
$block->assign('sessionCouponUrl', $shopUrl . 'fanplayr/coupon/session/code/%c/');
|
168 |
|
181 |
$currentProductUrl
|
182 |
);
|
183 |
|
184 |
+
$disableAtcEmpty = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_atc_empty'));
|
185 |
+
|
186 |
+
if ( $data['lineItemCount'] === 0 && $disableAtcEmpty === '1' ) {
|
187 |
+
$block->assign('applyToCartUrl', '');
|
188 |
+
}else{
|
189 |
+
$block->assign('applyToCartUrl', $shopUrl . 'fanplayr/coupon/add/code/%c/');
|
190 |
+
}
|
191 |
+
|
192 |
$block->assign('data', $data);
|
193 |
}
|
194 |
|
app/code/community/Fanplayr/Socialcoupons/Model/OrderObserver.php
CHANGED
@@ -205,6 +205,11 @@
|
|
205 |
}
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
208 |
// ------------------------------------------------------------------------------------------------------
|
209 |
// utils / helpers
|
210 |
|
@@ -226,11 +231,17 @@
|
|
226 |
|
227 |
$products = array();
|
228 |
|
|
|
|
|
229 |
// have to get the last order in a stupid way for some reason for 1.4 ...
|
230 |
if ($useOldVersion) {
|
231 |
|
|
|
|
|
232 |
$lastOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
233 |
|
|
|
|
|
234 |
// seriosuly, why would THIS be the way to do it? fail!
|
235 |
$orderCollection = Mage::getModel('sales/order')->getCollection()
|
236 |
->addFilter('increment_id', $lastOrderId)
|
@@ -246,6 +257,8 @@
|
|
246 |
|
247 |
$data = $order->getData();
|
248 |
|
|
|
|
|
249 |
// have to be careful here because some versions miss some variables ...
|
250 |
$orderEmail = array_key_exists('customer_email', $data) ? $data['customer_email'] : '';
|
251 |
$orderDate = array_key_exists('created_at', $data) ? $data['created_at'] : '';
|
@@ -267,6 +280,9 @@
|
|
267 |
$products = $this->getProductsFromOrder($order);
|
268 |
|
269 |
} else {
|
|
|
|
|
|
|
270 |
$order = Mage::getModel('sales/order')->load($lastOrderId);
|
271 |
|
272 |
$orderId = $order->getId();
|
@@ -325,6 +341,8 @@
|
|
325 |
}
|
326 |
|
327 |
$products = $this->getProductsFromOrder($order);
|
|
|
|
|
328 |
}
|
329 |
|
330 |
$storeCode = Mage::app()->getStore()->getCode();
|
@@ -339,6 +357,28 @@
|
|
339 |
$lastName = '';
|
340 |
}
|
341 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
return array(
|
343 |
'orderId' => $orderId,
|
344 |
'orderNumber' => $orderNumber,
|
205 |
}
|
206 |
}
|
207 |
|
208 |
+
private function debug($str) {
|
209 |
+
// turn on to debug orders
|
210 |
+
// Mage::log($str, null, 'fanplayr.log');
|
211 |
+
}
|
212 |
+
|
213 |
// ------------------------------------------------------------------------------------------------------
|
214 |
// utils / helpers
|
215 |
|
231 |
|
232 |
$products = array();
|
233 |
|
234 |
+
$this->debug('$useOldVersion: ' . print_r($useOldVersion, true));
|
235 |
+
|
236 |
// have to get the last order in a stupid way for some reason for 1.4 ...
|
237 |
if ($useOldVersion) {
|
238 |
|
239 |
+
$this->debug('Using old version ...');
|
240 |
+
|
241 |
$lastOrderId = Mage::getSingleton('checkout/session')->getLastRealOrderId();
|
242 |
|
243 |
+
$this->debug('$lastOrderId: ' . $lastOrderId);
|
244 |
+
|
245 |
// seriosuly, why would THIS be the way to do it? fail!
|
246 |
$orderCollection = Mage::getModel('sales/order')->getCollection()
|
247 |
->addFilter('increment_id', $lastOrderId)
|
257 |
|
258 |
$data = $order->getData();
|
259 |
|
260 |
+
$this->debug('$data: ' . print_r($data, true));
|
261 |
+
|
262 |
// have to be careful here because some versions miss some variables ...
|
263 |
$orderEmail = array_key_exists('customer_email', $data) ? $data['customer_email'] : '';
|
264 |
$orderDate = array_key_exists('created_at', $data) ? $data['created_at'] : '';
|
280 |
$products = $this->getProductsFromOrder($order);
|
281 |
|
282 |
} else {
|
283 |
+
|
284 |
+
$this->debug('Using new method...');
|
285 |
+
|
286 |
$order = Mage::getModel('sales/order')->load($lastOrderId);
|
287 |
|
288 |
$orderId = $order->getId();
|
341 |
}
|
342 |
|
343 |
$products = $this->getProductsFromOrder($order);
|
344 |
+
|
345 |
+
$this->debug('End of new method...');
|
346 |
}
|
347 |
|
348 |
$storeCode = Mage::app()->getStore()->getCode();
|
357 |
$lastName = '';
|
358 |
}
|
359 |
|
360 |
+
$this->debug('$orderId: ' . print_r($orderId, true));
|
361 |
+
$this->debug('$orderNumber: ' . print_r($orderNumber, true));
|
362 |
+
$this->debug('$orderDate: ' . print_r($orderDate, true));
|
363 |
+
$this->debug('$orderTotal: ' . print_r($orderTotal, true));
|
364 |
+
$this->debug('$orderSubTotal: ' . print_r($orderSubTotal, true));
|
365 |
+
$this->debug('$discountAmount: ' . print_r($discountAmount, true));
|
366 |
+
$this->debug('$discountCode: ' . print_r($discountCode, true));
|
367 |
+
$this->debug('$currency: ' . print_r($currency, true));
|
368 |
+
$this->debug('$orderEmail: ' . print_r($orderEmail, true));
|
369 |
+
$this->debug('$firstName: ' . print_r($firstName, true));
|
370 |
+
$this->debug('$lastName: ' . print_r($lastName, true));
|
371 |
+
$this->debug('$customerEmail: ' . print_r($customerEmail, true));
|
372 |
+
$this->debug('$customerId: ' . print_r($customerId, true));
|
373 |
+
$this->debug('$shipping: ' . print_r($shipping, true));
|
374 |
+
$this->debug('$tax: ' . print_r($tax, true));
|
375 |
+
$this->debug('$products: ' . print_r($products, true));
|
376 |
+
$this->debug('$storeCode: ' . print_r($storeCode, true));
|
377 |
+
$this->debug('$gtmContainerId: ' . print_r($gtmContainerId, true));
|
378 |
+
$this->debug('$quoteId: ' . print_r($quoteId, true));
|
379 |
+
|
380 |
+
$this->debug('----------------------------------------');
|
381 |
+
|
382 |
return array(
|
383 |
'orderId' => $orderId,
|
384 |
'orderNumber' => $orderNumber,
|
app/code/community/Fanplayr/Socialcoupons/controllers/AjaxController.php
CHANGED
@@ -39,8 +39,6 @@
|
|
39 |
$block->assign('widgetKeys', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys'));
|
40 |
$block->assign('widgetKeysGenius', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys_genius'));
|
41 |
$block->assign('accountKey', Mage::getStoreConfig('fanplayrsocialcoupons/config/acc_key'));
|
42 |
-
|
43 |
-
$block->assign('applyToCartUrl', $shopUrl . 'fanplayr/coupon/add/code/%c/');
|
44 |
$block->assign('deputizeUrl', $shopUrl . 'fanplayr/coupon/deputize/a/%a/d/%d/');
|
45 |
$block->assign('sessionCouponUrl', $shopUrl . 'fanplayr/coupon/session/code/%c/');
|
46 |
|
@@ -61,6 +59,13 @@
|
|
61 |
array_key_exists('tpu', $p) ? $shopUrl . '/' . $p['tpu'] : ''
|
62 |
);
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
$block->assign('data', $data);
|
65 |
|
66 |
$embedType = intval(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
39 |
$block->assign('widgetKeys', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys'));
|
40 |
$block->assign('widgetKeysGenius', Mage::getStoreConfig('fanplayrsocialcoupons/config/widget_keys_genius'));
|
41 |
$block->assign('accountKey', Mage::getStoreConfig('fanplayrsocialcoupons/config/acc_key'));
|
|
|
|
|
42 |
$block->assign('deputizeUrl', $shopUrl . 'fanplayr/coupon/deputize/a/%a/d/%d/');
|
43 |
$block->assign('sessionCouponUrl', $shopUrl . 'fanplayr/coupon/session/code/%c/');
|
44 |
|
59 |
array_key_exists('tpu', $p) ? $shopUrl . '/' . $p['tpu'] : ''
|
60 |
);
|
61 |
|
62 |
+
$disableAtcEmpty = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_atc_empty'));
|
63 |
+
if ( $data['lineItemCount'] === 0 && $disableAtcEmpty === '1' ) {
|
64 |
+
$block->assign('applyToCartUrl', '');
|
65 |
+
} else {
|
66 |
+
$block->assign('applyToCartUrl', $shopUrl . 'fanplayr/coupon/add/code/%c/');
|
67 |
+
}
|
68 |
+
|
69 |
$block->assign('data', $data);
|
70 |
|
71 |
$embedType = intval(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
app/code/community/Fanplayr/Socialcoupons/controllers/CompyController.php
CHANGED
@@ -61,6 +61,7 @@
|
|
61 |
|
62 |
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', '', false);
|
63 |
$this->updateConfig('fanplayrsocialcoupons/config/coupon_apply_utm', '', false);
|
|
|
64 |
|
65 |
//$this->addNotice('Fanplayr details removed.');
|
66 |
echo $this->jsonMessage(false, 'Fanplayr unlink successful".');
|
@@ -145,6 +146,7 @@
|
|
145 |
|
146 |
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', array_key_exists('disableuseridentitytracking', $p) ? $p['disableuseridentitytracking'] : '', true);
|
147 |
$this->updateConfig('fanplayrsocialcoupons/config/coupon_apply_utm', array_key_exists('couponapplyutm', $p) ? $p['couponapplyutm'] : '', true);
|
|
|
148 |
|
149 |
//$this->addNotice('Fanplayr details updated.');
|
150 |
echo $this->jsonMessage(false, 'Fanplayr details updated".');
|
61 |
|
62 |
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', '', false);
|
63 |
$this->updateConfig('fanplayrsocialcoupons/config/coupon_apply_utm', '', false);
|
64 |
+
$this->updateConfig('fanplayrsocialcoupons/config/disable_atc_empty', '', false);
|
65 |
|
66 |
//$this->addNotice('Fanplayr details removed.');
|
67 |
echo $this->jsonMessage(false, 'Fanplayr unlink successful".');
|
146 |
|
147 |
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', array_key_exists('disableuseridentitytracking', $p) ? $p['disableuseridentitytracking'] : '', true);
|
148 |
$this->updateConfig('fanplayrsocialcoupons/config/coupon_apply_utm', array_key_exists('couponapplyutm', $p) ? $p['couponapplyutm'] : '', true);
|
149 |
+
$this->updateConfig('fanplayrsocialcoupons/config/disable_atc_empty', array_key_exists('disableatcempty', $p) ? $p['disableatcempty'] : '', true);
|
150 |
|
151 |
//$this->addNotice('Fanplayr details updated.');
|
152 |
echo $this->jsonMessage(false, 'Fanplayr details updated".');
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fanplayr</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.fanplayr.com/Fanplayr_terms_and_conditions.pdf">Fanplayr License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Fanplayr Conversions enables Magento merchants to harness an automated solution to track, analyze and intelligently target your visitors & convert them to loyal customers.</summary>
|
10 |
<description>Fanplayr Conversion enables Magento merchants to harness an automated solution to track, analyze and intelligently target your visitors & convert them to loyal customers.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Tarwin Stroh-Spijer</name><user>fanplayr</user><email>tarwin@fanplayr.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>20:
|
15 |
-
<contents><target name="mageskin"><dir name="frontend"><dir name="socialcoupons"><file name="fanplayr_join.html" hash="72f2ba80caf3b3f790a3eed928c79626"/><file name="fanplayr_socialcoupons.css" hash="35999bbf31ea537f170da6324dd64450"/><file name="fanplayr_socialcoupons.js" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fanplayr</name>
|
4 |
+
<version>1.0.78</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.fanplayr.com/Fanplayr_terms_and_conditions.pdf">Fanplayr License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Fanplayr Conversions enables Magento merchants to harness an automated solution to track, analyze and intelligently target your visitors & convert them to loyal customers.</summary>
|
10 |
<description>Fanplayr Conversion enables Magento merchants to harness an automated solution to track, analyze and intelligently target your visitors & convert them to loyal customers.</description>
|
11 |
+
<notes>Option to disable Apply to Cart on empty carts.</notes>
|
12 |
<authors><author><name>Tarwin Stroh-Spijer</name><user>fanplayr</user><email>tarwin@fanplayr.com</email></author></authors>
|
13 |
+
<date>2016-12-08</date>
|
14 |
+
<time>01:20:12</time>
|
15 |
+
<contents><target name="mageskin"><dir name="frontend"><dir name="socialcoupons"><file name="fanplayr_join.html" hash="72f2ba80caf3b3f790a3eed928c79626"/><file name="fanplayr_socialcoupons.css" hash="35999bbf31ea537f170da6324dd64450"/><file name="fanplayr_socialcoupons.js" hash="9ee4af250077074bf0500caa3ab03279"/><file name="fanplayr_socialcoupons.min.css" hash="c6d326ff4161a090b77a0b00e2f7d81d"/><dir><dir name="images"><file name="accept.png" hash="8bfed48756f192ed7afe6eaa4799aae4"/><file name="activity.gif" hash="fc4ac1c258ac6d13be5afe5ecc5f10e6"/><file name="disable.png" hash="bb2fc85482c3e9c9a9ab4bc3e8e4ebe6"/><file name="fanplayr_logo.png" hash="3d8827fedc2ff79d3041a64265a2f7e0"/><file name="genius_16.png" hash="895bf92ff7689c8116bf1a6f7583c3ab"/><file name="pencil.png" hash="a34e71ab08a6d1162b948d26321dea50"/><file name="progress-loader.gif" hash="5243dea18965998ada5477a2117e2ead"/><file name="sales_16.png" hash="e7b77f97a81b4339c9c6b94e1077a675"/><file name="star_gold.png" hash="73541d75f70cbda977a8b04bf87ddc39"/><file name="warning.png" hash="c847e1076da70df83ef5284622b82a74"/><file name=".picasa.ini" hash="98908647c7af9a7c540c9d711b911d0c"/></dir></dir><file name="jquery-1.7.2.min.js" hash="8d1a6f9c08b59506c56b18e2b2695fc8"/></dir></dir></target><target name="magecommunity"><dir name="Fanplayr"><dir><dir name="Socialcoupons"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Installhelper.php" hash="73df3598a1d8df120165f6ef824669bd"/></dir></dir></dir></dir></dir></dir><dir name="Model"><file name="CartObserver.php" hash="2806ffebb289748fdbf7938180fd79ee"/><file name="EmbedObserver.php" hash="1a13f59bcb686a2ec75ddae7bb93c0f6"/><file name="OrderObserver.php" hash="672a24b43aed14717b3841083453e960"/></dir><dir name="controllers"><file name="AjaxController.php" hash="1838e7510fb9482eec5aeeb5500c0ba3"/><file name="CompyController.php" hash="e859760c75b84649505738e1eeefb7ef"/><file name="CouponController.php" hash="809024ea1c6e289d2e2d2b356ca3cffd"/><file name="IndexController.php" hash="8b18f83d9592433bfd4f196cf574fec3"/></dir><dir name="etc"><file name="config.xml" hash="df1c1ebc423b6e0dc0c71b6ba87e80b4"/><file name="system.xml" hash="a32e53b5dd521ca60be8b61bc49c886b"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Fanplayr_Socialcoupons.xml" hash="3cabea19fef735a3e95ed9424ed5362f"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="fanplayr"><file name="embed.phtml" hash="ea84d10dcf6e173bf05d9cd989d787f3"/><file name="success.phtml" hash="1f7f7fadf2d2c051adc60bee21027d9a"/><file name="embed_ajax.phtml" hash="1248d9f1e3b294d4e43faf85b896a9ad"/></dir></dir></dir></dir><dir name="default"><dir name="default"><dir name="template"><dir name="fanplayr"><file name="embed.phtml" hash="ea84d10dcf6e173bf05d9cd989d787f3"/><file name="success.phtml" hash="1f7f7fadf2d2c051adc60bee21027d9a"/><file name="embed_ajax.phtml" hash="1248d9f1e3b294d4e43faf85b896a9ad"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
skin/frontend/socialcoupons/fanplayr_socialcoupons.js
CHANGED
@@ -318,7 +318,8 @@ if (typeof Array.prototype.map !== "function") {
|
|
318 |
gtmcontainerid: $('#fanplayrsocialcoupons-console-gtmcontainerid').val(),
|
319 |
usetbuy: $('#fanplayrsocialcoupons-console-usetbuy').val(),
|
320 |
disableuseridentitytracking: $('#fanplayrsocialcoupons-disableuseridentitytracking').val(),
|
321 |
-
couponapplyutm: $('#fanplayrsocialcoupons-couponapplyutm').val()
|
|
|
322 |
})
|
323 |
.success(function(result) {
|
324 |
Fanplayr.isWorking = false;
|
318 |
gtmcontainerid: $('#fanplayrsocialcoupons-console-gtmcontainerid').val(),
|
319 |
usetbuy: $('#fanplayrsocialcoupons-console-usetbuy').val(),
|
320 |
disableuseridentitytracking: $('#fanplayrsocialcoupons-disableuseridentitytracking').val(),
|
321 |
+
couponapplyutm: $('#fanplayrsocialcoupons-couponapplyutm').val(),
|
322 |
+
disableatcempty: $('#fanplayrsocialcoupons-disableatcempty').val()
|
323 |
})
|
324 |
.success(function(result) {
|
325 |
Fanplayr.isWorking = false;
|