Product Feed PRO for WooCommerce - Version 8.0.6

Version Description

Facebook pixel change for Purchase, SearchResult and ViewCategory events

Download this release

Release Info

Developer jorisverwater
Plugin Icon 128x128 Product Feed PRO for WooCommerce
Version 8.0.6
Comparing to
See all releases

Code changes from version 8.0.5 to 8.0.6

Files changed (2) hide show
  1. readme.txt +7 -1
  2. woocommerce-sea.php +14 -6
readme.txt CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.4
8
- Stable tag: 8.0.5
9
 
10
  == Description ==
11
 
@@ -313,6 +313,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
313
 
314
  === Changelog ===
315
 
 
 
 
316
  = 8.0.5 (2020-04-24) =
317
  * Facebook pixel change for AddToCart event
318
 
@@ -2565,6 +2568,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2565
 
2566
  == Upgrade Notice ==
2567
 
 
 
 
2568
  = 8.0.5 =
2569
  Facebook pixel change for AddToCart event
2570
 
5
  Tags: Product Feed, Google Shopping, Google Shopping Feed, WooCommerce Product Feed, WooCommerce Product Feed PRO, Bing Shopping, Bing product feed, Bing remarking, Google Merchant Feed, Google DRM Feed, Google Dynamic Remarketing Feed, Facebook feed, Google feed, Bing feed, Facebook Product Feed, Facebook Dynamic remarketing, Data Feed, WooCommerce Feed, XML product feed, CSV product feed, TSV, TXT product feed, comparison shopping engines, comparison shopping websites, vergelijk.nl, vergelijk.be, vertaa.fi, beslist.nl, kieskeurig.nl, bol.com, raketten, pricerunner, pricegrabber, Buy, leGuide, Kelkoo, Twenga, Yandex, Etsy, Dealtime, Shopzilla, Billiger, Google Product Review feed
6
  Requires at least: 4.5
7
  Tested up to: 5.4
8
+ Stable tag: 8.0.6
9
 
10
  == Description ==
11
 
313
 
314
  === Changelog ===
315
 
316
+ = 8.0.6 (2020-04-25) =
317
+ * Facebook pixel change for Purchase, SearchResult and ViewCategory events
318
+
319
  = 8.0.5 (2020-04-24) =
320
  * Facebook pixel change for AddToCart event
321
 
2568
 
2569
  == Upgrade Notice ==
2570
 
2571
+ = 8.0.6 =
2572
+ Facebook pixel change for Purchase, SearchResult and ViewCategory events
2573
+
2574
  = 8.0.5 =
2575
  Facebook pixel change for AddToCart event
2576
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.0.5
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
@@ -48,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.0.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -453,6 +453,11 @@ function woosea_add_facebook_pixel( $product = null ){
453
  if ( !is_wp_error( $order_items )) {
454
  foreach( $order_items as $item_id => $order_item) {
455
  $prod_id = $order_item->get_product_id();
 
 
 
 
 
456
  $prod_quantity = $order_item->get_quantity();
457
  $order_total = $order_item->get_total();
458
  $order_subtotal = $order_item->get_subtotal();
@@ -515,12 +520,14 @@ function woosea_add_facebook_pixel( $product = null ){
515
 
516
  if($_product->is_type('simple')){
517
  // Add the simple product ID
518
- $fb_prodid .= $id.',';
519
  } else {
520
  // This is a variable product, add variation product ID's
521
  $children_ids = $_product->get_children();
522
  foreach ($children_ids as $id){
523
- $fb_prodid .= $id.',';
 
 
524
  }
525
  }
526
  }
@@ -545,12 +552,13 @@ function woosea_add_facebook_pixel( $product = null ){
545
  $ptype = $_product->get_type();
546
  if($ptype == "simple"){
547
  // Add the simple product ID
548
- $fb_prodid .= $id.',';
549
  } else {
550
  // This is a variable product, add variation product ID's
551
  $children_ids = $_product->get_children();
552
  foreach ($children_ids as $id){
553
- $fb_prodid .= $id.',';
 
554
  }
555
  }
556
  }
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 8.0.6
5
  * Plugin URI: https://www.adtribes.io/support/?utm_source=wpadmin&utm_medium=plugin&utm_campaign=woosea_product_feed_pro
6
  * Description: Configure and maintain your WooCommerce product feeds for Google Shopping, Facebook, Remarketing, Bing, Yandex, Comparison shopping websites and over a 100 channels more.
7
  * Author: AdTribes.io
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.0.6' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
453
  if ( !is_wp_error( $order_items )) {
454
  foreach( $order_items as $item_id => $order_item) {
455
  $prod_id = $order_item->get_product_id();
456
+ $variation_id = $order_item->get_variation_id();
457
+ if($variation_id > 0){
458
+ $prod_id = $variation_id;
459
+ }
460
+
461
  $prod_quantity = $order_item->get_quantity();
462
  $order_total = $order_item->get_total();
463
  $order_subtotal = $order_item->get_subtotal();
520
 
521
  if($_product->is_type('simple')){
522
  // Add the simple product ID
523
+ $fb_prodid .= '\''.$id.'\',';
524
  } else {
525
  // This is a variable product, add variation product ID's
526
  $children_ids = $_product->get_children();
527
  foreach ($children_ids as $id){
528
+
529
+ $fb_prodid .= '\''.$id.'\',';
530
+ $fb_prodid .= '\''.$id.'\',';
531
  }
532
  }
533
  }
552
  $ptype = $_product->get_type();
553
  if($ptype == "simple"){
554
  // Add the simple product ID
555
+ $fb_prodid .= '\''.$id.'\',';
556
  } else {
557
  // This is a variable product, add variation product ID's
558
  $children_ids = $_product->get_children();
559
  foreach ($children_ids as $id){
560
+ $fb_prodid .= '\''.$id.'\',';
561
+ //$fb_prodid .= $id.',';
562
  }
563
  }
564
  }