Product Feed PRO for WooCommerce - Version 8.7.6

Version Description

Facebook pixel basket issue solved Using official composite function to retrieve composite product prices

Download this release

Release Info

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

Code changes from version 8.7.5 to 8.7.6

TODO.txt CHANGED
@@ -8,7 +8,7 @@ Priority issues:
8
  - Facebook pixel: add other attributes to the tracking apart from the curreny product ID (such as the SKU);
9
  - Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
10
  - My adtribes environment with download link in it
11
- - Filters or rules that have slashes in them (on links) do no work - make this work!
12
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
13
  - Add support for Multisites
14
  - Add a filter on review score (and amount of reviews)
8
  - Facebook pixel: add other attributes to the tracking apart from the curreny product ID (such as the SKU);
9
  - Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
10
  - My adtribes environment with download link in it
11
+ - Add feature to only add cheapest variant to the feed
12
  - Add possibility to copy feed configuration from one WooCommerce instance to the other instance
13
  - Add support for Multisites
14
  - Add a filter on review score (and amount of reviews)
classes/class-get-products.php CHANGED
@@ -2437,14 +2437,29 @@ class WooSEA_Get_Products {
2437
  // Override price when bundled product
2438
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2439
  $meta = get_post_meta($product_data['id']);
2440
- $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2441
- $product_data['net_price'] = get_post_meta($product_data['id'], '_price', true);
2442
- $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2443
- $product_data['net_regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2444
- if($product_data['price'] != $product_data['regular_price']){
2445
- $product_data['sale_price'] = round(get_post_meta($product_data['id'], '_sale_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2446
- $product_data['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2447
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2448
  }
2449
 
2450
  // Determine the gross prices of products
@@ -2833,7 +2848,9 @@ class WooSEA_Get_Products {
2833
  $add_mother_image = get_option ('add_mother_image');
2834
  if(($add_mother_image == "yes") AND ($product_data['item_group_id'] > 0)){
2835
  $mother_image = wp_get_attachment_image_src( get_post_thumbnail_id( $product_data['item_group_id'] ), 'full' );
2836
- $product_data['image'] = $mother_image[0];
 
 
2837
  }
2838
 
2839
  // Get product reviews for Google Product Review Feeds
2437
  // Override price when bundled product
2438
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2439
  $meta = get_post_meta($product_data['id']);
2440
+ if($product->get_type() == "bundle"){
2441
+ $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2442
+ $product_data['net_price'] = get_post_meta($product_data['id'], '_price', true);
2443
+ $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2444
+ $product_data['net_regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2445
+ if($product_data['price'] != $product_data['regular_price']){
2446
+ $product_data['sale_price'] = round(get_post_meta($product_data['id'], '_sale_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2447
+ $product_data['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2448
+ }
2449
+ } else {
2450
+ // Composite product
2451
+ if(!empty($product->get_composite_price())){
2452
+ $product_data['price'] = $product->get_composite_price_including_tax();
2453
+ $product_data['price_forced'] = $product->get_composite_price_including_tax();
2454
+ $product_data['regular_price'] = $product->get_composite_regular_price();
2455
+ $product_data['regular_price_forced'] = $product->get_composite_regular_price_including_tax();
2456
+
2457
+ if($product_data['price'] != $product_data['regular_price']){
2458
+ $product_data['sale_price'] = $product->get_composite_price();
2459
+ $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
2460
+ }
2461
+ }
2462
+ }
2463
  }
2464
 
2465
  // Determine the gross prices of products
2848
  $add_mother_image = get_option ('add_mother_image');
2849
  if(($add_mother_image == "yes") AND ($product_data['item_group_id'] > 0)){
2850
  $mother_image = wp_get_attachment_image_src( get_post_thumbnail_id( $product_data['item_group_id'] ), 'full' );
2851
+ if(isset($mother_image[0])){
2852
+ $product_data['image'] = $mother_image[0];
2853
+ }
2854
  }
2855
 
2856
  // Get product reviews for Google Product Review Feeds
js/woosea_key.js CHANGED
@@ -27,7 +27,7 @@ jQuery(document).ready(function($) {
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
- url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=8.7.5',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
27
  var license_key = $('#license-key').val();
28
 
29
  jQuery.ajax({
30
+ url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=8.7.6',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
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.5
8
- Stable tag: 8.7.5
9
 
10
  == Description ==
11
 
@@ -319,6 +319,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
319
 
320
  === Changelog ===
321
 
 
 
 
 
322
  = 8.7.5 (2020-09-23) =
323
  * Price field for bundled and composite products now always contain VAT
324
 
@@ -2788,6 +2792,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2788
 
2789
  == Upgrade Notice ==
2790
 
 
 
 
 
2791
  = 8.7.5 =
2792
  Price field for bundled and composite products now always contain VAT
2793
 
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.5
8
+ Stable tag: 8.7.6
9
 
10
  == Description ==
11
 
319
 
320
  === Changelog ===
321
 
322
+ = 8.7.6 (2020-09-24) =
323
+ * Facebook pixel basket issue solved
324
+ * Using official composite function to retrieve composite product prices
325
+
326
  = 8.7.5 (2020-09-23) =
327
  * Price field for bundled and composite products now always contain VAT
328
 
2792
 
2793
  == Upgrade Notice ==
2794
 
2795
+ = 8.7.6 =
2796
+ Facebook pixel basket issue solved
2797
+ Using official composite function to retrieve composite product prices
2798
+
2799
  = 8.7.5 =
2800
  Price field for bundled and composite products now always contain VAT
2801
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.7.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.7.5' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -502,9 +502,10 @@ function woosea_add_facebook_pixel( $product = null ){
502
  }
503
  $contents .= '\''.$prod_id.'\',';
504
  //$contents .= "$prod_id,";
505
- $line_total = $cart_item['line_total'];
506
- $line_tax = $cart_item['line_tax'];
507
- $cart_real = number_format(($line_total+$line_tax),2)+$cart_real;
 
508
 
509
  }
510
  $contents = rtrim($contents, ",");
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 8.7.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.7.6' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
502
  }
503
  $contents .= '\''.$prod_id.'\',';
504
  //$contents .= "$prod_id,";
505
+ $line_total = number_format(($cart_item['line_total']),2, '.','');
506
+ $line_tax = number_format(($cart_item['line_tax']),2, '.','');
507
+ $cart_real = number_format($cart_real,2, '.','');
508
+ $cart_real = number_format(($line_total+$line_tax+$cart_real),2,',','');
509
 
510
  }
511
  $contents = rtrim($contents, ",");