Version Description
Download this release
Release Info
Developer | PixelYourSite |
Plugin | PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) |
Version | 8.0.6 |
Comparing to | |
See all releases |
Code changes from version 8.0.5 to 8.0.6
- facebook-pixel-master.php +1 -1
- modules/facebook/function-helpers.php +3 -3
- modules/google_analytics/ga.php +4 -2
- pixelyoursite.php +1 -1
- readme.txt +6 -1
facebook-pixel-master.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
* Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff.
|
7 |
-
* Version: 8.0.
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
4 |
* Plugin Name: PixelYourSite
|
5 |
* Plugin URI: http://www.pixelyoursite.com/
|
6 |
* Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff.
|
7 |
+
* Version: 8.0.6
|
8 |
* Author: PixelYourSite
|
9 |
* Author URI: http://www.pixelyoursite.com
|
10 |
* License: GPLv3
|
modules/facebook/function-helpers.php
CHANGED
@@ -282,8 +282,8 @@ function getWooSingleAddToCartParams( $_product_id, $qty = 1 ) {
|
|
282 |
$product = wc_get_product($_product_id);
|
283 |
if(!$product) return array();
|
284 |
$product_ids = array();
|
285 |
-
|
286 |
-
if($
|
287 |
$product_ids = $product->get_children();
|
288 |
} else {
|
289 |
$product_ids[] = $_product_id;
|
@@ -312,7 +312,7 @@ function getWooSingleAddToCartParams( $_product_id, $qty = 1 ) {
|
|
312 |
|
313 |
foreach ($product_ids as $product_id) {
|
314 |
$product = wc_get_product($product_id);
|
315 |
-
if($product->get_type() == "variable") {
|
316 |
continue;
|
317 |
}
|
318 |
$content_id = getFacebookWooProductContentId( $product_id );
|
282 |
$product = wc_get_product($_product_id);
|
283 |
if(!$product) return array();
|
284 |
$product_ids = array();
|
285 |
+
$isGrouped = $product->get_type() == "grouped";
|
286 |
+
if($isGrouped) {
|
287 |
$product_ids = $product->get_children();
|
288 |
} else {
|
289 |
$product_ids[] = $_product_id;
|
312 |
|
313 |
foreach ($product_ids as $product_id) {
|
314 |
$product = wc_get_product($product_id);
|
315 |
+
if($product->get_type() == "variable" && $isGrouped) {
|
316 |
continue;
|
317 |
}
|
318 |
$content_id = getFacebookWooProductContentId( $product_id );
|
modules/google_analytics/ga.php
CHANGED
@@ -567,7 +567,9 @@ class GA extends Settings implements Pixel {
|
|
567 |
|
568 |
$product_ids = array();
|
569 |
$items = array();
|
570 |
-
|
|
|
|
|
571 |
$product_ids = $product->get_children();
|
572 |
} else {
|
573 |
$product_ids[] = $product_id;
|
@@ -575,7 +577,7 @@ class GA extends Settings implements Pixel {
|
|
575 |
|
576 |
foreach ($product_ids as $child_id) {
|
577 |
$childProduct = wc_get_product($child_id);
|
578 |
-
if($childProduct->get_type() == "variable") {
|
579 |
continue;
|
580 |
}
|
581 |
$content_id = GA\Helpers\getWooProductContentId($child_id);
|
567 |
|
568 |
$product_ids = array();
|
569 |
$items = array();
|
570 |
+
|
571 |
+
$isGrouped = $product->get_type() == "grouped";
|
572 |
+
if($isGrouped) {
|
573 |
$product_ids = $product->get_children();
|
574 |
} else {
|
575 |
$product_ids[] = $product_id;
|
577 |
|
578 |
foreach ($product_ids as $child_id) {
|
579 |
$childProduct = wc_get_product($child_id);
|
580 |
+
if($childProduct->get_type() == "variable" && $isGrouped) {
|
581 |
continue;
|
582 |
}
|
583 |
$content_id = GA\Helpers\getWooProductContentId($child_id);
|
pixelyoursite.php
CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
-
define( 'PYS_FREE_VERSION', '8.0.
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
4 |
exit; // Exit if accessed directly.
|
5 |
}
|
6 |
|
7 |
+
define( 'PYS_FREE_VERSION', '8.0.6' );
|
8 |
define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
|
9 |
define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
|
10 |
define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pi
|
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.6
|
7 |
-
Stable tag: 8.0.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -396,6 +396,11 @@ NO, absolutely not! We don't track any type of data about your website. We simpl
|
|
396 |
== Changelog ==
|
397 |
|
398 |
|
|
|
|
|
|
|
|
|
|
|
399 |
= PixelYourSite 8.0.5 =
|
400 |
|
401 |
* Fix for a potential JS error.
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.4
|
6 |
Tested up to: 5.6
|
7 |
+
Stable tag: 8.0.6
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
396 |
== Changelog ==
|
397 |
|
398 |
|
399 |
+
= PixelYourSite 8.0.6 =
|
400 |
+
|
401 |
+
* Fix: missing AddToCart IDs when "treat variable products like simple products" is enabled.
|
402 |
+
|
403 |
+
|
404 |
= PixelYourSite 8.0.5 =
|
405 |
|
406 |
* Fix for a potential JS error.
|