Product Feed PRO for WooCommerce - Version 8.8.0

Version Description

Added feature to only add the cheapest priced variation(s) to product feeds instead of all variations or the default variation.

Download this release

Release Info

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

Code changes from version 8.7.9 to 8.8.0

TODO.txt CHANGED
@@ -8,7 +8,6 @@ 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
- - 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
  - Google local product feed inventory in XML format (not just TXT like it is now)
14
  - Add support for Multisites
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 possibility to copy feed configuration from one WooCommerce instance to the other instance
12
  - Google local product feed inventory in XML format (not just TXT like it is now)
13
  - Add support for Multisites
classes/class-get-products.php CHANGED
@@ -2865,11 +2865,28 @@ class WooSEA_Get_Products {
2865
  if( ($product_data['item_group_id'] > 0) AND (is_object(wc_get_product( $product_data['item_group_id']))) AND ($product_data['product_type'] == "variation")){
2866
  $product_variations = new WC_Product_Variation( $product_data['id'] );
2867
  $variations = $product_variations->get_variation_attributes();
2868
-
2869
  // Determine the default variation product
2870
  $mother_product = wc_get_product($product_data['item_group_id']);
2871
  $def_attributes = $mother_product->get_default_attributes();
2872
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2873
  // Get review rating and count for parent product
2874
  $product_data['rating_total'] = $mother_product->get_rating_count();
2875
  $product_data['rating_average'] = $mother_product->get_average_rating();
2865
  if( ($product_data['item_group_id'] > 0) AND (is_object(wc_get_product( $product_data['item_group_id']))) AND ($product_data['product_type'] == "variation")){
2866
  $product_variations = new WC_Product_Variation( $product_data['id'] );
2867
  $variations = $product_variations->get_variation_attributes();
2868
+
2869
  // Determine the default variation product
2870
  $mother_product = wc_get_product($product_data['item_group_id']);
2871
  $def_attributes = $mother_product->get_default_attributes();
2872
 
2873
+ // Get all variations
2874
+ $all_variations = $mother_product->get_available_variations();
2875
+ $variations_id = wp_list_pluck( $all_variations, 'variation_id' );
2876
+
2877
+ // Determine lowest priced variation
2878
+ $variation_min_price = $mother_product->get_variation_price('min');
2879
+ $variation_min_price = wc_format_decimal($variation_min_price,2);
2880
+ $variation_min_price = wc_format_localized_price($variation_min_price);
2881
+
2882
+ if(isset($project_config['lowest_price_variations'])){
2883
+ if($product_data['system_net_price'] == $variation_min_price){
2884
+ $variation_pass = "true";
2885
+ } else {
2886
+ $variation_pass = "false";
2887
+ }
2888
+ }
2889
+
2890
  // Get review rating and count for parent product
2891
  $product_data['rating_total'] = $mother_product->get_rating_count();
2892
  $product_data['rating_average'] = $mother_product->get_average_rating();
classes/class-update-channel.php CHANGED
@@ -212,6 +212,15 @@ class WooSEA_Update_Project {
212
  }
213
  }
214
 
 
 
 
 
 
 
 
 
 
215
  /**
216
  * Did all the filters got removed
217
  */
212
  }
213
  }
214
 
215
+ /**
216
+ * Did the lowest price product variations got disabled?
217
+ */
218
+ if(array_key_exists('fileformat', $project_data)){
219
+ if(!array_key_exists('lowest_price_variations', $project_data)) {
220
+ unset($project_config['lowest_price_variations']);
221
+ }
222
+ }
223
+
224
  /**
225
  * Did all the filters got removed
226
  */
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.9',
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.8.0',
31
  jsonp: 'callback',
32
  dataType: 'jsonp',
33
  type: 'GET',
pages/admin/woosea-generate-feed-step-0.php CHANGED
@@ -395,7 +395,7 @@ if (array_key_exists('project_hash', $_GET)){
395
  </td>
396
  </tr>
397
  <tr id="product_variations">
398
- <td><span><?php _e('Include product variations','woo-product-feed-pro' );?>:</span></td>
399
  <td>
400
  <label class="woo-product-feed-pro-switch">
401
  <?php
@@ -424,6 +424,21 @@ if (array_key_exists('project_hash', $_GET)){
424
  </label>
425
  </td>
426
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  <tr id="file">
428
  <td><span><?php _e( 'File format','woo-product-feed-pro' );?>:</span></td>
429
  <td>
395
  </td>
396
  </tr>
397
  <tr id="product_variations">
398
+ <td><span><?php _e('Include all product variations','woo-product-feed-pro' );?>:</span></td>
399
  <td>
400
  <label class="woo-product-feed-pro-switch">
401
  <?php
424
  </label>
425
  </td>
426
  </tr>
427
+ <tr id="lowest_price_variation">
428
+ <td><span><?php _e( 'Only include lowest priced product variation(s)','woo-product-feed-pro' );?>:</span></td>
429
+ <td>
430
+ <label class="woo-product-feed-pro-switch">
431
+ <?php
432
+ if(isset($project['lowest_price_variations'])){
433
+ print "<input type=\"checkbox\" id=\"lowest_price_variations\" name=\"lowest_price_variations\" class=\"checkbox-field\" checked>";
434
+ } else {
435
+ print "<input type=\"checkbox\" id=\"lowest_price_variations\" name=\"lowest_price_variations\" class=\"checkbox-field\">";
436
+ }
437
+ ?>
438
+ <div class="woo-product-feed-pro-slider round"></div>
439
+ </label>
440
+ </td>
441
+ </tr>
442
  <tr id="file">
443
  <td><span><?php _e( 'File format','woo-product-feed-pro' );?>:</span></td>
444
  <td>
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.9
9
 
10
  == Description ==
11
 
@@ -319,6 +319,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
319
 
320
  === Changelog ===
321
 
 
 
 
322
  = 8.7.9 (2020-09-27) =
323
  * Added 5 default fields to the Facebook template
324
 
@@ -2801,6 +2804,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2801
 
2802
  == Upgrade Notice ==
2803
 
 
 
 
2804
  = 8.7.9 =
2805
  Added 5 default fields to the Facebook template
2806
 
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.8.0
9
 
10
  == Description ==
11
 
319
 
320
  === Changelog ===
321
 
322
+ = 8.8.0 (2020-09-28) =
323
+ * Added feature to only add the cheapest priced variation(s) to product feeds instead of all variations or the default variation.
324
+
325
  = 8.7.9 (2020-09-27) =
326
  * Added 5 default fields to the Facebook template
327
 
2804
 
2805
  == Upgrade Notice ==
2806
 
2807
+ = 8.8.0 =
2808
+ Added feature to only add the cheapest priced variation(s) to product feeds instead of all variations or the default variation.
2809
+
2810
  = 8.7.9 =
2811
  Added 5 default fields to the Facebook template
2812
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.7.9
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.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 8.8.0
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.8.0' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54