Version Description
Download this release
Release Info
Developer | PixelYourSite |
Plugin | PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) |
Version | 5.2.1 |
Comparing to | |
See all releases |
Code changes from version 5.2.0 to 5.2.1
- facebook-pixel-master.php +2 -2
- inc/core.php +1 -1
- js/public.js +2 -1
- readme.txt +8 -2
facebook-pixel-master.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
|
6 |
Author: PixelYourSite
|
7 |
Author URI: http://www.pixelyoursite.com
|
8 |
-
Version: 5.2.
|
9 |
License: GPLv3
|
10 |
WC requires at least: 2.6.0
|
11 |
WC tested up to: 3.3.0
|
@@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
-
define( 'PYS_FREE_VERSION', '5.2.
|
19 |
|
20 |
if ( ! function_exists( 'pys_is_pixelyoursite_pro_active' ) ) {
|
21 |
|
5 |
Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
|
6 |
Author: PixelYourSite
|
7 |
Author URI: http://www.pixelyoursite.com
|
8 |
+
Version: 5.2.1
|
9 |
License: GPLv3
|
10 |
WC requires at least: 2.6.0
|
11 |
WC tested up to: 3.3.0
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
+
define( 'PYS_FREE_VERSION', '5.2.1' );
|
19 |
|
20 |
if ( ! function_exists( 'pys_is_pixelyoursite_pro_active' ) ) {
|
21 |
|
inc/core.php
CHANGED
@@ -328,7 +328,7 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
|
|
328 |
}
|
329 |
|
330 |
// Purchase Event
|
331 |
-
if ( pys_get_option( 'woo', 'on_thank_you_page' ) &&
|
332 |
|
333 |
$order_id = wc_get_order_id_by_order_key( $_REQUEST['key'] );
|
334 |
$order = new WC_Order( $order_id );
|
328 |
}
|
329 |
|
330 |
// Purchase Event
|
331 |
+
if ( pys_get_option( 'woo', 'on_thank_you_page' ) && is_order_received_page() && isset( $_REQUEST['key'] ) ) {
|
332 |
|
333 |
$order_id = wc_get_order_id_by_order_key( $_REQUEST['key'] );
|
334 |
$order = new WC_Order( $order_id );
|
js/public.js
CHANGED
@@ -28,10 +28,11 @@ jQuery(document).ready(function( $ ) {
|
|
28 |
$single_form = $button.closest('form.cart');
|
29 |
|
30 |
if ($variations_form.length === 1) {
|
|
|
31 |
data.variation_id = parseInt($variations_form.find('input[name="variation_id"]').val());
|
32 |
data.quantity = parseInt($variations_form.find('input[name="quantity"]').val());
|
33 |
} else if ($single_form.length === 1) {
|
34 |
-
data.product_id = parseInt($single_form.find('
|
35 |
data.quantity = parseInt($single_form.find('input[name="quantity"]').val());
|
36 |
}
|
37 |
|
28 |
$single_form = $button.closest('form.cart');
|
29 |
|
30 |
if ($variations_form.length === 1) {
|
31 |
+
data.product_id = parseInt($single_form.find('*[name="add-to-cart"]').val());
|
32 |
data.variation_id = parseInt($variations_form.find('input[name="variation_id"]').val());
|
33 |
data.quantity = parseInt($variations_form.find('input[name="quantity"]').val());
|
34 |
} else if ($single_form.length === 1) {
|
35 |
+
data.product_id = parseInt($single_form.find('*[name="add-to-cart"]').val());
|
36 |
data.quantity = parseInt($single_form.find('input[name="quantity"]').val());
|
37 |
}
|
38 |
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
-
===Facebook Pixel
|
2 |
Contributors: PixelYourSite, c0d3fev3r, themister
|
3 |
Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 5.2.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -300,6 +300,12 @@ We have an article about how to create Custom Reports:
|
|
300 |
|
301 |
== Changelog ==
|
302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
303 |
= PixelYourSite 5.2.0 =
|
304 |
|
305 |
* Fixing a possible error with the add to cart button when WooCommerce and WPML are installed on some hostings (we were able to replicate it on SiteGround servers only)
|
1 |
+
===PixelYourSite - Facebook Pixel (Events, WooCommerce & Easy Digital Downloads)===
|
2 |
Contributors: PixelYourSite, c0d3fev3r, themister
|
3 |
Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.2.1
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
300 |
|
301 |
== Changelog ==
|
302 |
|
303 |
+
= PixelYourSite 5.2.1 =
|
304 |
+
|
305 |
+
* AddToCart small improvements to ensure compatibility with some themes using AJAX cart
|
306 |
+
|
307 |
+
* Plugin name update
|
308 |
+
|
309 |
= PixelYourSite 5.2.0 =
|
310 |
|
311 |
* Fixing a possible error with the add to cart button when WooCommerce and WPML are installed on some hostings (we were able to replicate it on SiteGround servers only)
|