Product Feed PRO for WooCommerce - Version 8.8.2

Version Description

Fixed issues with sale price start and sale end date

Download this release

Release Info

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

Code changes from version 8.8.1 to 8.8.2

classes/class-get-products.php CHANGED
@@ -2307,18 +2307,6 @@ class WooSEA_Get_Products {
2307
  $product_data['sale_price_effective_date'] = "";
2308
  }
2309
 
2310
- // Check if the sale price is effective
2311
- if((isset($product_data['sale_price_start_date'])) AND (isset($product_data['sale_price_end_date']))){
2312
- $current_date = date('Y-m-d');
2313
- if(($current_date < $product_data['sale_price_start_date'])){
2314
- unset($product_data['sale_price']);
2315
- }
2316
-
2317
- if(($current_date > $product_data['sale_price_end_date'])){
2318
- unset($product_data['sale_price']);
2319
- }
2320
- }
2321
-
2322
  $product_data['image'] = wp_get_attachment_url($product->get_image_id());
2323
  $product_data['image_all'] = $product_data['image'];
2324
  $product_data['all_images'] = $product_data['image'];
@@ -3269,6 +3257,19 @@ class WooSEA_Get_Products {
3269
  }
3270
  }
3271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3272
  /**
3273
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
3274
  */
2307
  $product_data['sale_price_effective_date'] = "";
2308
  }
2309
 
 
 
 
 
 
 
 
 
 
 
 
 
2310
  $product_data['image'] = wp_get_attachment_url($product->get_image_id());
2311
  $product_data['image_all'] = $product_data['image'];
2312
  $product_data['all_images'] = $product_data['image'];
3257
  }
3258
  }
3259
 
3260
+ // Check if the sale price is effective
3261
+ if((isset($product_data['sale_price_start_date'])) AND (isset($product_data['sale_price_end_date']))){
3262
+ $current_date = date('Y-m-d');
3263
+
3264
+ if(($current_date < $product_data['sale_price_start_date'])){
3265
+ unset($product_data['sale_price']);
3266
+ }
3267
+
3268
+ if(($current_date > $product_data['sale_price_end_date'])){
3269
+ unset($product_data['sale_price']);
3270
+ }
3271
+ }
3272
+
3273
  /**
3274
  * When a product is a variable product we need to delete the original product from the feed, only the originals are allowed
3275
  */
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.8.1',
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.2',
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.8.1
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.8.1 (2020-09-29) =
323
  * Sale prices now respect the sale price start and end date when set
324
 
@@ -2807,6 +2810,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2807
 
2808
  == Upgrade Notice ==
2809
 
 
 
 
2810
  = 8.8.1 =
2811
  Sale prices now respect the sale price start and end date when set
2812
 
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.2
9
 
10
  == Description ==
11
 
319
 
320
  === Changelog ===
321
 
322
+ = 8.8.2 (2020-09-29) =
323
+ * Fixed issues with sale price start and sale end date
324
+
325
  = 8.8.1 (2020-09-29) =
326
  * Sale prices now respect the sale price start and end date when set
327
 
2810
 
2811
  == Upgrade Notice ==
2812
 
2813
+ = 8.8.2 =
2814
+ Fixed issues with sale price start and sale end date
2815
+
2816
  = 8.8.1 =
2817
  Sale prices now respect the sale price start and end date when set
2818
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.8.1
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.8.1' );
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.2
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.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54