Version Notes
Disable of user identity tracking for Europe
Download this release
Release Info
Developer | Tarwin Stroh-Spijer |
Extension | Fanplayr |
Version | 1.0.76 |
Comparing to | |
See all releases |
Code changes from version 1.0.75 to 1.0.76
- app/code/community/Fanplayr/Socialcoupons/Block/Adminhtml/System/Config/Form/Field/Installhelper.php +5 -1
- app/code/community/Fanplayr/Socialcoupons/Model/EmbedObserver.php +6 -0
- app/code/community/Fanplayr/Socialcoupons/Model/OrderObserver.php +19 -0
- app/code/community/Fanplayr/Socialcoupons/controllers/CompyController.php +4 -0
- app/etc/modules/Fanplayr_Socialcoupons.xml +1 -1
- package.xml +5 -6
- skin/frontend/socialcoupons/fanplayr_socialcoupons.js +2 -1
app/code/community/Fanplayr/Socialcoupons/Block/Adminhtml/System/Config/Form/Field/Installhelper.php
CHANGED
@@ -99,6 +99,8 @@ class Fanplayr_Socialcoupons_Block_Adminhtml_System_Config_Form_Field_Installhel
|
|
99 |
|
100 |
$useTbuy = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/use_tbuy'));
|
101 |
|
|
|
|
|
102 |
// have to use this variable for backwards compatability ...
|
103 |
$currentEmbedType = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
104 |
if (!$currentEmbedType) $currentEmbedType = '0';
|
@@ -234,6 +236,8 @@ class Fanplayr_Socialcoupons_Block_Adminhtml_System_Config_Form_Field_Installhel
|
|
234 |
|
235 |
<tr><td><label title="Set to '1' to disable">Disable TBuy Discounts</label></td><td><input type="text" id="fanplayrsocialcoupons-console-usetbuy" name="fanplayrsocialcoupons-console-usetbuy" value="{$useTbuy}" /></td></tr>
|
236 |
|
|
|
|
|
237 |
<tr><td colspan="2"><a href="#" id="fanplayrsocialcoupons-console-hide" onclick="Fanplayr.console.hide(); return false;">Hide</a></td></tr>
|
238 |
|
239 |
</table>
|
@@ -409,7 +413,7 @@ EOT;
|
|
409 |
}
|
410 |
}
|
411 |
|
412 |
-
$showConsoleHtml = '<div id="fanplayr-show-console"><a href="javascript:Fanplayr.console.show();" style="
|
413 |
|
414 |
//
|
415 |
// Return
|
99 |
|
100 |
$useTbuy = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/use_tbuy'));
|
101 |
|
102 |
+
$disableUserIdentifyTracking = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking'));
|
103 |
+
|
104 |
// have to use this variable for backwards compatability ...
|
105 |
$currentEmbedType = htmlspecialchars(Mage::getStoreConfig('fanplayrsocialcoupons/config/wait_for_onload'));
|
106 |
if (!$currentEmbedType) $currentEmbedType = '0';
|
236 |
|
237 |
<tr><td><label title="Set to '1' to disable">Disable TBuy Discounts</label></td><td><input type="text" id="fanplayrsocialcoupons-console-usetbuy" name="fanplayrsocialcoupons-console-usetbuy" value="{$useTbuy}" /></td></tr>
|
238 |
|
239 |
+
<tr><td><label title="Set to '1' to disable">Disable User Identity Tracking</label></td><td><input type="text" id="fanplayrsocialcoupons-disableuseridentitytracking" name="fanplayrsocialcoupons-disableuseridentitytracking" value="{$disableUserIdentifyTracking}" /></td></tr>
|
240 |
+
|
241 |
<tr><td colspan="2"><a href="#" id="fanplayrsocialcoupons-console-hide" onclick="Fanplayr.console.hide(); return false;">Hide</a></td></tr>
|
242 |
|
243 |
</table>
|
413 |
}
|
414 |
}
|
415 |
|
416 |
+
$showConsoleHtml = '<div id="fanplayr-show-console"><a href="javascript:Fanplayr.console.show();" style="margin-bottom: 15px; display: block;">Show Fanplayr Console</a></div>';
|
417 |
|
418 |
//
|
419 |
// Return
|
app/code/community/Fanplayr/Socialcoupons/Model/EmbedObserver.php
CHANGED
@@ -318,6 +318,12 @@
|
|
318 |
$storeCode = Mage::app()->getStore()->getCode();
|
319 |
$gtmContainerId = Mage::getStoreConfig('fanplayrsocialcoupons/config/gtm_container_id');
|
320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
$data = array(
|
322 |
'atCart' => $atCart,
|
323 |
'lineItemCount' => (int)$itemCount,
|
318 |
$storeCode = Mage::app()->getStore()->getCode();
|
319 |
$gtmContainerId = Mage::getStoreConfig('fanplayrsocialcoupons/config/gtm_container_id');
|
320 |
|
321 |
+
// disable user identity tracking
|
322 |
+
$disableUserIdentityTracking = !!Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking');
|
323 |
+
if ( $disableUserIdentityTracking ) {
|
324 |
+
$custEmail = '';
|
325 |
+
}
|
326 |
+
|
327 |
$data = array(
|
328 |
'atCart' => $atCart,
|
329 |
'lineItemCount' => (int)$itemCount,
|
app/code/community/Fanplayr/Socialcoupons/Model/OrderObserver.php
CHANGED
@@ -167,6 +167,16 @@
|
|
167 |
$params['userkey'] = '';
|
168 |
}
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
// now if we set a URL call it!
|
171 |
if ($url) {
|
172 |
|
@@ -320,6 +330,15 @@
|
|
320 |
$storeCode = Mage::app()->getStore()->getCode();
|
321 |
$gtmContainerId = Mage::getStoreConfig('fanplayrsocialcoupons/config/gtm_container_id');
|
322 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
return array(
|
324 |
'orderId' => $orderId,
|
325 |
'orderNumber' => $orderNumber,
|
167 |
$params['userkey'] = '';
|
168 |
}
|
169 |
|
170 |
+
// disable user identity tracking
|
171 |
+
$disableUserIdentityTracking = !!Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking');
|
172 |
+
if ( $disableUserIdentityTracking ) {
|
173 |
+
$customerEmail = '';
|
174 |
+
$params['email'] = '';
|
175 |
+
$params['customeremail'] = '';
|
176 |
+
$params['firstname'] = '';
|
177 |
+
$params['lastname'] = '';
|
178 |
+
}
|
179 |
+
|
180 |
// now if we set a URL call it!
|
181 |
if ($url) {
|
182 |
|
330 |
$storeCode = Mage::app()->getStore()->getCode();
|
331 |
$gtmContainerId = Mage::getStoreConfig('fanplayrsocialcoupons/config/gtm_container_id');
|
332 |
|
333 |
+
// disable user identity tracking
|
334 |
+
$disableUserIdentityTracking = !!Mage::getStoreConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking');
|
335 |
+
if ( $disableUserIdentityTracking ) {
|
336 |
+
$customerEmail = '';
|
337 |
+
$orderEmail = '';
|
338 |
+
$firstName = '';
|
339 |
+
$lastName = '';
|
340 |
+
}
|
341 |
+
|
342 |
return array(
|
343 |
'orderId' => $orderId,
|
344 |
'orderNumber' => $orderNumber,
|
app/code/community/Fanplayr/Socialcoupons/controllers/CompyController.php
CHANGED
@@ -59,6 +59,8 @@
|
|
59 |
|
60 |
$this->updateConfig('fanplayrsocialcoupons/config/use_tbuy', '', false);
|
61 |
|
|
|
|
|
62 |
//$this->addNotice('Fanplayr details removed.');
|
63 |
echo $this->jsonMessage(false, 'Fanplayr unlink successful".');
|
64 |
}
|
@@ -140,6 +142,8 @@
|
|
140 |
|
141 |
$this->updateConfig('fanplayrsocialcoupons/config/use_tbuy', array_key_exists('usetbuy', $p) ? $p['usetbuy'] : '', true);
|
142 |
|
|
|
|
|
143 |
//$this->addNotice('Fanplayr details updated.');
|
144 |
echo $this->jsonMessage(false, 'Fanplayr details updated".');
|
145 |
}
|
59 |
|
60 |
$this->updateConfig('fanplayrsocialcoupons/config/use_tbuy', '', false);
|
61 |
|
62 |
+
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', '', false);
|
63 |
+
|
64 |
//$this->addNotice('Fanplayr details removed.');
|
65 |
echo $this->jsonMessage(false, 'Fanplayr unlink successful".');
|
66 |
}
|
142 |
|
143 |
$this->updateConfig('fanplayrsocialcoupons/config/use_tbuy', array_key_exists('usetbuy', $p) ? $p['usetbuy'] : '', true);
|
144 |
|
145 |
+
$this->updateConfig('fanplayrsocialcoupons/config/disable_user_identity_tracking', array_key_exists('disableuseridentitytracking', $p) ? $p['disableuseridentitytracking'] : '', true);
|
146 |
+
|
147 |
//$this->addNotice('Fanplayr details updated.');
|
148 |
echo $this->jsonMessage(false, 'Fanplayr details updated".');
|
149 |
}
|
app/etc/modules/Fanplayr_Socialcoupons.xml
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<Fanplayr_Socialcoupons>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
-
<version>1.0.
|
8 |
</Fanplayr_Socialcoupons>
|
9 |
</modules>
|
10 |
</config>
|
4 |
<Fanplayr_Socialcoupons>
|
5 |
<active>true</active>
|
6 |
<codePool>community</codePool>
|
7 |
+
<version>1.0.76</version>
|
8 |
</Fanplayr_Socialcoupons>
|
9 |
</modules>
|
10 |
</config>
|
package.xml
CHANGED
@@ -1,19 +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 |
-
- fixes for 3rd party verbose security checkers</notes>
|
13 |
<authors><author><name>Tarwin Stroh-Spijer</name><user>fanplayr</user><email>tarwin@fanplayr.com</email></author></authors>
|
14 |
-
<date>2016-09-
|
15 |
-
<time>22:
|
16 |
-
<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="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Fanplayr</name>
|
4 |
+
<version>1.0.76</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>Disable of user identity tracking for Europe</notes>
|
|
|
12 |
<authors><author><name>Tarwin Stroh-Spijer</name><user>fanplayr</user><email>tarwin@fanplayr.com</email></author></authors>
|
13 |
+
<date>2016-09-30</date>
|
14 |
+
<time>22:53:47</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="5778a902e858046aa254439b176ef415"/><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="78a42853fa0d97ab8ff32b29517867dd"/></dir></dir></dir></dir></dir></dir><dir name="Model"><file name="CartObserver.php" hash="2806ffebb289748fdbf7938180fd79ee"/><file name="EmbedObserver.php" hash="c547c8b168c6ae303637633b90bf8cfb"/><file name="OrderObserver.php" hash="cec8edcd9849fedda551cc160422a015"/></dir><dir name="controllers"><file name="AjaxController.php" hash="268fdad89fe546c27164ea15bc8d4bd2"/><file name="CompyController.php" hash="bf780c8293b6024927241c36ea7bf174"/><file name="CouponController.php" hash="63e9e74e25f929207bb57a2c05058df3"/><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="c6346df2935e4ae2ff33a2841b128ab9"/></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
@@ -316,7 +316,8 @@ if (typeof Array.prototype.map !== "function") {
|
|
316 |
customembedurl: $('#fanplayrsocialcoupons-console-customembedurl').val(),
|
317 |
customembedurlpost: $('#fanplayrsocialcoupons-console-customembedurlpost').val(),
|
318 |
gtmcontainerid: $('#fanplayrsocialcoupons-console-gtmcontainerid').val(),
|
319 |
-
usetbuy: $('#fanplayrsocialcoupons-console-usetbuy').val()
|
|
|
320 |
})
|
321 |
.success(function(result) {
|
322 |
Fanplayr.isWorking = false;
|
316 |
customembedurl: $('#fanplayrsocialcoupons-console-customembedurl').val(),
|
317 |
customembedurlpost: $('#fanplayrsocialcoupons-console-customembedurlpost').val(),
|
318 |
gtmcontainerid: $('#fanplayrsocialcoupons-console-gtmcontainerid').val(),
|
319 |
+
usetbuy: $('#fanplayrsocialcoupons-console-usetbuy').val(),
|
320 |
+
disableuseridentitytracking: $('#fanplayrsocialcoupons-disableuseridentitytracking').val(),
|
321 |
})
|
322 |
.success(function(result) {
|
323 |
Fanplayr.isWorking = false;
|