Product Feed PRO for WooCommerce - Version 8.8.1

Version Description

Sale prices now respect the sale price start and end date when set

Download this release

Release Info

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

Code changes from version 8.8.0 to 8.8.1

classes/class-get-products.php CHANGED
@@ -2306,6 +2306,19 @@ class WooSEA_Get_Products {
2306
  if($product_data['sale_price_effective_date'] == "/"){
2307
  $product_data['sale_price_effective_date'] = "";
2308
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
2309
  $product_data['image'] = wp_get_attachment_url($product->get_image_id());
2310
  $product_data['image_all'] = $product_data['image'];
2311
  $product_data['all_images'] = $product_data['image'];
2306
  if($product_data['sale_price_effective_date'] == "/"){
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'];
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.0',
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.1',
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.0
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.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
 
@@ -2804,6 +2807,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
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
 
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
 
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
+
325
  = 8.8.0 (2020-09-28) =
326
  * Added feature to only add the cheapest priced variation(s) to product feeds instead of all variations or the default variation.
327
 
2807
 
2808
  == Upgrade Notice ==
2809
 
2810
+ = 8.8.1 =
2811
+ Sale prices now respect the sale price start and end date when set
2812
+
2813
  = 8.8.0 =
2814
  Added feature to only add the cheapest priced variation(s) to product feeds instead of all variations or the default variation.
2815
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
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,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.0' );
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.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
  * 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