Version Notes
Release notes:
- Including support for OneStepCheckout
Download this release
Release Info
Developer | Remmote |
Extension | Remmote_Facebookpixel |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- app/code/community/Remmote/Facebookpixel/Block/Code.php +9 -0
- app/code/community/Remmote/Facebookpixel/Helper/Data.php +14 -0
- app/code/community/Remmote/Facebookpixel/etc/config.xml +1 -1
- app/code/community/Remmote/Facebookpixel/etc/system.xml +2 -2
- app/design/adminhtml/default/default/template/remmote/facebookpixel/system/config/fieldset/info.phtml +3 -2
- app/design/frontend/base/default/template/remmote/facebookpixel/code.phtml +2 -2
- package.xml +5 -5
- skin/adminhtml/default/default/remmote/facebookpixel/logo-remmote.png +0 -0
app/code/community/Remmote/Facebookpixel/Block/Code.php
CHANGED
@@ -179,6 +179,15 @@ class Remmote_Facebookpixel_Block_Code extends Mage_Core_Block_Template {
|
|
179 |
|
180 |
$pixelEvent = Mage::getModel('core/session')->getPixelPurchase();
|
181 |
if($pixelEvent){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
//Unset event
|
183 |
Mage::getModel('core/session')->unsPixelPurchase();
|
184 |
|
179 |
|
180 |
$pixelEvent = Mage::getModel('core/session')->getPixelPurchase();
|
181 |
if($pixelEvent){
|
182 |
+
// Mage::log('RemmotePixel - pageSection: '. $pageSection);
|
183 |
+
|
184 |
+
// Check if standard checkout...
|
185 |
+
if(Mage::helper('remmote_facebookpixel')->onestepcheckoutEnabled()){ //One Step Checkout
|
186 |
+
if($pageSection != 'checkout_onepage_success'){
|
187 |
+
return;
|
188 |
+
}
|
189 |
+
}
|
190 |
+
|
191 |
//Unset event
|
192 |
Mage::getModel('core/session')->unsPixelPurchase();
|
193 |
|
app/code/community/Remmote/Facebookpixel/Helper/Data.php
CHANGED
@@ -20,6 +20,9 @@ class Remmote_Facebookpixel_Helper_Data extends Mage_Core_Helper_Abstract
|
|
20 |
const PURCHASE = 'remmote_facebookpixel/events/purchase';
|
21 |
const LEAD = 'remmote_facebookpixel/events/lead';
|
22 |
const COMPLETE_REGISTRATION = 'remmote_facebookpixel/events/complete_registration';
|
|
|
|
|
|
|
23 |
|
24 |
/**
|
25 |
* Check if module is enabled and Pixel ID is set
|
@@ -120,6 +123,17 @@ class Remmote_Facebookpixel_Helper_Data extends Mage_Core_Helper_Abstract
|
|
120 |
return Mage::getStoreConfig(self::PURCHASE, $store);
|
121 |
}
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
/**
|
124 |
* check if Lead event is enabled
|
125 |
* @param [type] $store
|
20 |
const PURCHASE = 'remmote_facebookpixel/events/purchase';
|
21 |
const LEAD = 'remmote_facebookpixel/events/lead';
|
22 |
const COMPLETE_REGISTRATION = 'remmote_facebookpixel/events/complete_registration';
|
23 |
+
|
24 |
+
//Third party checkout extensions
|
25 |
+
const ONESTEPCHECKOUT_ENABLED = 'onestepcheckout/general/rewrite_checkout_links';
|
26 |
|
27 |
/**
|
28 |
* Check if module is enabled and Pixel ID is set
|
123 |
return Mage::getStoreConfig(self::PURCHASE, $store);
|
124 |
}
|
125 |
|
126 |
+
/**
|
127 |
+
* Check if OneStepCheckout is enabled in the store
|
128 |
+
* @param [type] $store
|
129 |
+
* @return [type]
|
130 |
+
* @author edudeleon
|
131 |
+
* @date 2017-05-10
|
132 |
+
*/
|
133 |
+
public function onestepcheckoutEnabled($store = null) {
|
134 |
+
return Mage::getStoreConfig(self::ONESTEPCHECKOUT_ENABLED, $store);
|
135 |
+
}
|
136 |
+
|
137 |
/**
|
138 |
* check if Lead event is enabled
|
139 |
* @param [type] $store
|
app/code/community/Remmote/Facebookpixel/etc/config.xml
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Remmote_Facebookpixel>
|
13 |
-
<version>1.0.
|
14 |
</Remmote_Facebookpixel>
|
15 |
</modules>
|
16 |
|
10 |
<config>
|
11 |
<modules>
|
12 |
<Remmote_Facebookpixel>
|
13 |
+
<version>1.0.4</version>
|
14 |
</Remmote_Facebookpixel>
|
15 |
</modules>
|
16 |
|
app/code/community/Remmote/Facebookpixel/etc/system.xml
CHANGED
@@ -70,9 +70,9 @@
|
|
70 |
<show_in_website>1</show_in_website>
|
71 |
<show_in_store>1</show_in_store>
|
72 |
<comment><![CDATA[
|
73 |
-
<div style="background-color:
|
74 |
<span style="font-size: 13px;">
|
75 |
-
Are you planning to run Facebook Dynamic Ads or want to export your product catalog to Facebook? Check out our extension <a style="color:#ea7601; font-weight:bold;" href="https://www.magentocommerce.com/magento-connect/facebook-pixel-for-remarketing.html" target="_blank">Facebook Pixel for Remarketing </a> and get <strong>
|
76 |
</span>
|
77 |
</div>
|
78 |
]]>
|
70 |
<show_in_website>1</show_in_website>
|
71 |
<show_in_store>1</show_in_store>
|
72 |
<comment><![CDATA[
|
73 |
+
<div style="background-color: #FDFAB1; padding: 10px 0px;">
|
74 |
<span style="font-size: 13px;">
|
75 |
+
Are you planning to run Facebook Dynamic Ads or want to export your product catalog to Facebook? Check out our extension <a style="color:#ea7601; font-weight:bold;" href="https://www.magentocommerce.com/magento-connect/facebook-pixel-for-remarketing.html" target="_blank">Facebook Pixel for Remarketing </a> and get <strong>50%</strong> discount using the coupon <strong>FACEBOOKPIXEL</strong>. Make sure to uninstall this extension if you get the our PRO version.
|
76 |
</span>
|
77 |
</div>
|
78 |
]]>
|
app/design/adminhtml/default/default/template/remmote/facebookpixel/system/config/fieldset/info.phtml
CHANGED
@@ -5,11 +5,12 @@
|
|
5 |
?>
|
6 |
<table>
|
7 |
<tr>
|
8 |
-
|
|
|
9 |
<td width="10"></td>
|
10 |
<td>
|
11 |
<h4>Hey <?php echo $admin->getFirstname()?>, thanks for using our extension! </h4>
|
12 |
-
At remmote.com we are committed to deliver high quality development services for Magento. If you have any question about our
|
13 |
</td>
|
14 |
</tr>
|
15 |
</table>
|
5 |
?>
|
6 |
<table>
|
7 |
<tr>
|
8 |
+
<?php $logo_src = Mage::getDesign()->getSkinBaseUrl(array('_area'=>'adminhtml', '_theme'=>'default')). 'remmote/facebookpixel/logo-remmote.png' ?>
|
9 |
+
<td style="vertical-align: middle;"><img src="<?php echo $logo_src; ?>" alt="Remmote.com" style="width: 125px;"/></td>
|
10 |
<td width="10"></td>
|
11 |
<td>
|
12 |
<h4>Hey <?php echo $admin->getFirstname()?>, thanks for using our extension! </h4>
|
13 |
+
At remmote.com we are committed to deliver high quality development services for Magento. If you have any question about our extension or need any help with your online store, feel free to <strong><a href="http://www.remmote.com/contact-us/" target="_blank">get in touch with us</a></strong>. We will be happy to hear from you and we will reply you as soon as possible.
|
14 |
</td>
|
15 |
</tr>
|
16 |
</table>
|
app/design/frontend/base/default/template/remmote/facebookpixel/code.phtml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
*/
|
8 |
?>
|
9 |
|
10 |
-
<!-- Facebook Pixel Code -->
|
11 |
<script>
|
12 |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
13 |
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
@@ -39,4 +39,4 @@
|
|
39 |
<noscript><img height="1" width="1" style="display:none"
|
40 |
src="https://www.facebook.com/tr?id=<?php echo $pixel_id?>&ev=PageView&noscript=1"
|
41 |
/></noscript>
|
42 |
-
<!-- End Facebook Pixel Code -->
|
7 |
*/
|
8 |
?>
|
9 |
|
10 |
+
<!-- Facebook Pixel Code - Remmote © -->
|
11 |
<script>
|
12 |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
13 |
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
|
39 |
<noscript><img height="1" width="1" style="display:none"
|
40 |
src="https://www.facebook.com/tr?id=<?php echo $pixel_id?>&ev=PageView&noscript=1"
|
41 |
/></noscript>
|
42 |
+
<!-- End Facebook Pixel Code - Remmote © -->
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Remmote_Facebookpixel</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
@@ -9,12 +9,12 @@
|
|
9 |
<summary>Install Facebook Pixel Standard Events for Magento. Extension tracks standard events accurately using Magento Observers.</summary>
|
10 |
<description>This extension install Facebook Pixel in Magento stores. All the events are tracked using Magento observers which makes the tracking more accurate than the rest of extensions.</description>
|
11 |
<notes>Release notes:
|
12 |
-
-
|
13 |
</notes>
|
14 |
<authors><author><name>Remmote</name><user>remmote</user><email>info@remmote.com</email></author></authors>
|
15 |
-
<date>2017-05-
|
16 |
-
<time>
|
17 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Remmote_Facebookpixel.xml" hash="43d40e05033b4ead5b8f65ae873bbcb1"/></dir></target><target name="magecommunity"><dir name="Remmote"><dir name="Facebookpixel"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Info.php" hash="37df708d08f3a09132e0569d97e4d517"/></dir></dir></dir></dir><file name="Code.php" hash="
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
|
20 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Remmote_Facebookpixel</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GPL</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Install Facebook Pixel Standard Events for Magento. Extension tracks standard events accurately using Magento Observers.</summary>
|
10 |
<description>This extension install Facebook Pixel in Magento stores. All the events are tracked using Magento observers which makes the tracking more accurate than the rest of extensions.</description>
|
11 |
<notes>Release notes:
|
12 |
+
- Including support for OneStepCheckout
|
13 |
</notes>
|
14 |
<authors><author><name>Remmote</name><user>remmote</user><email>info@remmote.com</email></author></authors>
|
15 |
+
<date>2017-05-11</date>
|
16 |
+
<time>02:26:16</time>
|
17 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Remmote_Facebookpixel.xml" hash="43d40e05033b4ead5b8f65ae873bbcb1"/></dir></target><target name="magecommunity"><dir name="Remmote"><dir name="Facebookpixel"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Info.php" hash="37df708d08f3a09132e0569d97e4d517"/></dir></dir></dir></dir><file name="Code.php" hash="ce6a2e4fe5d0fe100397c36a4da0aba5"/></dir><dir name="Helper"><file name="Data.php" hash="85833786113519a5a092caeab984ccf6"/></dir><dir name="Model"><file name="Observer.php" hash="07e1686bf545a717bdd8bb6100011ce9"/></dir><dir name="etc"><file name="config.xml" hash="b3eaf1bb5c6b63d04aea86fa150b78f8"/><file name="system.xml" hash="8182eae3a1dca6be82c829f369573fe8"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="remmote_facebookpixel.xml" hash="d87afaed251f9545c9dc5213ac6533d9"/></dir><dir name="template"><dir name="remmote"><dir name="facebookpixel"><file name="code.phtml" hash="c16db6bf81bbaff7c9dc7f1879c77fe4"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="remmote"><dir name="facebookpixel"><dir name="system"><dir name="config"><dir name="fieldset"><file name="info.phtml" hash="06fdec7d58d7e33a18214d524794174a"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="remmote"><dir name="facebookpixel"><file name="logo-remmote.png" hash="d63b1e27519990f4de0628902353a186"/></dir></dir></dir></dir></dir></target></contents>
|
18 |
<compatible/>
|
19 |
<dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php></required></dependencies>
|
20 |
</package>
|
skin/adminhtml/default/default/remmote/facebookpixel/logo-remmote.png
ADDED
Binary file
|