Product Feed PRO for WooCommerce - Version 7.0.2

Version Description

Solved a bug: when all product feed had a stopped status the manual refresh of product feeds did not start. This has been fixed. Latest update of WPML / WCML caused manually entered currencies not to show in feeds anymore. Made our plugin compatible again.

Download this release

Release Info

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

Code changes from version 7.0.1 to 7.0.2

classes/class-get-products.php CHANGED
@@ -2130,6 +2130,22 @@ class WooSEA_Get_Products {
2130
  $product_data['price'] = apply_filters('wcml_raw_price_amount', $product_data['price'], $project_config['WCML']);
2131
  $product_data['regular_price'] = apply_filters('wcml_raw_price_amount', $product_data['regular_price'], $project_config['WCML']);
2132
  $product_data['sale_price'] = apply_filters('wcml_raw_price_amount', $product_data['sale_price'], $project_config['WCML']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2133
  }
2134
 
2135
  if($product_data['regular_price'] == $product_data['sale_price']){
@@ -3043,7 +3059,7 @@ class WooSEA_Get_Products {
3043
  }
3044
  } else {
3045
  if((strlen($attr_value['mapfrom'])) AND (array_key_exists($attr_value['mapfrom'], $product_data))){
3046
- if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "Final URL") OR ($attr_value['attribute'] == "SKU")){
3047
  $attr_line = "'".$attr_value['prefix']."".$product_data[$attr_value['mapfrom']]."".$attr_value['suffix']."'";
3048
  } else {
3049
  $attr_line = "'".$attr_value['prefix']. "".$product_data[$attr_value['mapfrom']]."" .$attr_value['suffix']."'";
@@ -3115,7 +3131,7 @@ class WooSEA_Get_Products {
3115
  }
3116
  } else {
3117
  if(strlen($product_data[$attr_value['mapfrom']])){
3118
- if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "Final URL") OR ($attr_value['attribute'] == "SKU")){
3119
  $attr_line .= ",'".$attr_value['prefix']."".$product_data[$attr_value['mapfrom']]."".$attr_value['suffix']."'";
3120
  } else {
3121
  $attr_line .= ",'".$attr_value['prefix']. " ".$product_data[$attr_value['mapfrom']]." " .$attr_value['suffix']."'";
@@ -3320,7 +3336,7 @@ class WooSEA_Get_Products {
3320
  } else {
3321
  if(strlen($product_data[$attr_value['mapfrom']])){
3322
 
3323
- if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "link")){
3324
  $xml_product[$attr_value['attribute']] = "$attr_value[prefix]". $product_data[$attr_value['mapfrom']] ."$attr_value[suffix]";
3325
  } elseif(($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "image_link")){
3326
  $xml_product[$attr_value['attribute']] = "$attr_value[prefix]".$product_data[$attr_value['mapfrom']]."$attr_value[suffix]";
2130
  $product_data['price'] = apply_filters('wcml_raw_price_amount', $product_data['price'], $project_config['WCML']);
2131
  $product_data['regular_price'] = apply_filters('wcml_raw_price_amount', $product_data['regular_price'], $project_config['WCML']);
2132
  $product_data['sale_price'] = apply_filters('wcml_raw_price_amount', $product_data['sale_price'], $project_config['WCML']);
2133
+
2134
+ // When WCML manual prices have been entered
2135
+ global $woocommerce_wpml;
2136
+ $custom_prices = $woocommerce_wpml->get_multi_currency()->custom_prices->get_product_custom_prices( $product_data['id'], $project_config['WCML'] );
2137
+
2138
+ if($custom_prices['_price'] > 0){
2139
+ $product_data['price'] = $custom_prices['_price'];
2140
+ }
2141
+
2142
+ if($custom_prices['_regular_price'] > 0){
2143
+ $product_data['regular_price'] = $custom_prices['_regular_price'];
2144
+ }
2145
+
2146
+ if($custom_prices['_sale_price'] > 0){
2147
+ $product_data['sale_price'] = $custom_prices['_sale_price'];
2148
+ }
2149
  }
2150
 
2151
  if($product_data['regular_price'] == $product_data['sale_price']){
3059
  }
3060
  } else {
3061
  if((strlen($attr_value['mapfrom'])) AND (array_key_exists($attr_value['mapfrom'], $product_data))){
3062
+ if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "g:link_template") OR ($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "Final URL") OR ($attr_value['attribute'] == "SKU")){
3063
  $attr_line = "'".$attr_value['prefix']."".$product_data[$attr_value['mapfrom']]."".$attr_value['suffix']."'";
3064
  } else {
3065
  $attr_line = "'".$attr_value['prefix']. "".$product_data[$attr_value['mapfrom']]."" .$attr_value['suffix']."'";
3131
  }
3132
  } else {
3133
  if(strlen($product_data[$attr_value['mapfrom']])){
3134
+ if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "g:link_template") OR ($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "Final URL") OR ($attr_value['attribute'] == "SKU")){
3135
  $attr_line .= ",'".$attr_value['prefix']."".$product_data[$attr_value['mapfrom']]."".$attr_value['suffix']."'";
3136
  } else {
3137
  $attr_line .= ",'".$attr_value['prefix']. " ".$product_data[$attr_value['mapfrom']]." " .$attr_value['suffix']."'";
3336
  } else {
3337
  if(strlen($product_data[$attr_value['mapfrom']])){
3338
 
3339
+ if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "g:link_template")){
3340
  $xml_product[$attr_value['attribute']] = "$attr_value[prefix]". $product_data[$attr_value['mapfrom']] ."$attr_value[suffix]";
3341
  } elseif(($attr_value['attribute'] == "g:image_link") OR ($attr_value['attribute'] == "image_link")){
3342
  $xml_product[$attr_value['attribute']] = "$attr_value[prefix]".$product_data[$attr_value['mapfrom']]."$attr_value[suffix]";
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=7.0.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=7.0.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.3
8
- Stable tag: 7.0.1
9
 
10
  == Description ==
11
 
@@ -301,6 +301,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
301
 
302
  === Changelog ===
303
 
 
 
 
 
304
  = 7.0.1 (2019-12-04) =
305
  * Removed space between prefix and link attribute so users can add trackingcode before the landingpage URL
306
 
@@ -2211,6 +2215,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2211
 
2212
  == Upgrade Notice ==
2213
 
 
 
 
 
2214
  = 7.0.1 =
2215
  Removed space between prefix and link attribute so users can add trackingcode before the landingpage URL
2216
 
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.3
8
+ Stable tag: 7.0.2
9
 
10
  == Description ==
11
 
301
 
302
  === Changelog ===
303
 
304
+ = 7.0.2 (2019-12-05) =
305
+ * Solved a bug: when all product feed had a stopped status the manual refresh of product feeds did not start. This has been fixed.
306
+ * Latest update of WPML / WCML caused manually entered currencies not to show in feeds anymore. Made our plugin compatible again.
307
+
308
  = 7.0.1 (2019-12-04) =
309
  * Removed space between prefix and link attribute so users can add trackingcode before the landingpage URL
310
 
2215
 
2216
  == Upgrade Notice ==
2217
 
2218
+ = 7.0.2 =
2219
+ Solved a bug: when all product feed had a stopped status the manual refresh of product feeds did not start. This has been fixed.
2220
+ Latest update of WPML / WCML caused manually entered currencies not to show in feeds anymore. Made our plugin compatible again.
2221
+
2222
  = 7.0.1 =
2223
  Removed space between prefix and link attribute so users can add trackingcode before the landingpage URL
2224
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 7.0.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', '7.0.1' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -1331,7 +1331,8 @@ function woosea_check_processing(){
1331
 
1332
  foreach ( $feed_config as $key => $val ) {
1333
  if(array_key_exists('running', $val)){
1334
- if($val['running'] == "true"){
 
1335
  $processing = "true";
1336
  }
1337
  }
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 7.0.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', '7.0.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
1331
 
1332
  foreach ( $feed_config as $key => $val ) {
1333
  if(array_key_exists('running', $val)){
1334
+
1335
+ if(($val['running'] == "true") OR ($val['running'] == "stopped")){
1336
  $processing = "true";
1337
  }
1338
  }