Product Feed PRO for WooCommerce - Version 9.1.3

Version Description

Solved some minor PHP warnings that showed in the UI The category path skroutz attribute was throwing a fatal error on a str_replace. This is fixed.

Download this release

Release Info

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

Code changes from version 9.1.2 to 9.1.3

TODO.txt CHANGED
@@ -5,7 +5,6 @@ Tutorial / Blog posts:
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
8
- - Add Elite support for GTranslate
9
  - Add a preview option so only 5-10 products are being generated
10
  - Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
11
  - Google local product feed inventory in XML format (not just TXT like it is now)
5
  - Explain all the different fields/attributes that can be selected from the drop-downs
6
 
7
  Priority issues:
 
8
  - Add a preview option so only 5-10 products are being generated
9
  - Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
10
  - Google local product feed inventory in XML format (not just TXT like it is now)
classes/class-get-products.php CHANGED
@@ -2203,8 +2203,8 @@ class WooSEA_Get_Products {
2203
  // Check if there are mother categories
2204
  if(!empty($product_cat)){
2205
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2206
- $category_path_skroutz = str_replace(">",">",$category_path);
2207
-
2208
  if(!is_object($category_path)){
2209
  $product_data['category_path'] = $category_path;
2210
  $product_data['category_path_skroutz'] = $category_path_skroutz;
@@ -2435,28 +2435,33 @@ class WooSEA_Get_Products {
2435
  // Override price when bundled or composite product
2436
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2437
  $meta = get_post_meta($product_data['id']);
 
2438
  if($product->get_type() == "bundle"){
2439
- $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true));
2440
- $product_data['price_forced'] = 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['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
 
 
2446
  }
2447
  } else {
2448
  // Composite product
2449
- if(!empty($product->get_composite_price())){
2450
- $product_data['price'] = $product->get_composite_price_including_tax();
2451
- $product_data['price_forced'] = $product->get_composite_price_including_tax();
2452
- $product_data['regular_price'] = $product->get_composite_regular_price();
2453
- $product_data['regular_price_forced'] = $product->get_composite_regular_price_including_tax();
 
2454
 
2455
- if($product_data['price'] != $product_data['regular_price']){
2456
- $product_data['sale_price'] = $product->get_composite_price();
2457
- $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
2458
- }
2459
- }
 
2460
  }
2461
  }
2462
 
@@ -2954,10 +2959,14 @@ class WooSEA_Get_Products {
2954
 
2955
  $skroutz_apparal = get_option('skroutz_apparel');
2956
  if($skroutz_apparal == "yes"){
 
 
 
 
 
 
 
2957
 
2958
- $skroutz_color = get_post_meta( $product_data['id'], $var_key, true );
2959
- $skroutz_size = get_post_meta( $product_data['id'], $var_key_sz, true );
2960
-
2961
  if((!empty($skroutz_color)) AND (!empty($skroutz_size))){
2962
 
2963
  foreach($variations as $kvar => $vvar){
2203
  // Check if there are mother categories
2204
  if(!empty($product_cat)){
2205
  $category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
2206
+ $category_path_skroutz = str_replace('>','>',$category_path);
2207
+
2208
  if(!is_object($category_path)){
2209
  $product_data['category_path'] = $category_path;
2210
  $product_data['category_path_skroutz'] = $category_path_skroutz;
2435
  // Override price when bundled or composite product
2436
  if(($product->get_type() == "bundle") OR ($product->get_type() == "composite")){
2437
  $meta = get_post_meta($product_data['id']);
2438
+
2439
  if($product->get_type() == "bundle"){
2440
+ if ($this->woosea_is_plugin_active('woocommerce-product-bundles/woocommerce-product-bundles.php')){
2441
+ $product_data['price'] = round(get_post_meta($product_data['id'], '_price', true));
2442
+ $product_data['price_forced'] = round(get_post_meta($product_data['id'], '_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2443
+ $product_data['net_price'] = get_post_meta($product_data['id'], '_price', true);
2444
+ $product_data['regular_price'] = round(get_post_meta($product_data['id'], '_regular_price', true) * (100+$tax_rates[1]['rate'])/100,2);
2445
+ $product_data['net_regular_price'] = get_post_meta($product_data['id'], '_regular_price', true);
2446
+ if($product_data['price'] != $product_data['regular_price']){
2447
+ $product_data['net_sale_price'] = get_post_meta($product_data['id'], '_sale_price', true);
2448
+ }
2449
  }
2450
  } else {
2451
  // Composite product
2452
+ if ($this->woosea_is_plugin_active('woocommerce-composite-products/woocommerce-composite-products.php')){
2453
+ if(!empty($product->get_composite_price())){
2454
+ $product_data['price'] = $product->get_composite_price_including_tax();
2455
+ $product_data['price_forced'] = $product->get_composite_price_including_tax();
2456
+ $product_data['regular_price'] = $product->get_composite_regular_price();
2457
+ $product_data['regular_price_forced'] = $product->get_composite_regular_price_including_tax();
2458
 
2459
+ if($product_data['price'] != $product_data['regular_price']){
2460
+ $product_data['sale_price'] = $product->get_composite_price();
2461
+ $product_data['sale_price_forced'] = $product->get_composite_price_including_tax();
2462
+ }
2463
+ }
2464
+ }
2465
  }
2466
  }
2467
 
2959
 
2960
  $skroutz_apparal = get_option('skroutz_apparel');
2961
  if($skroutz_apparal == "yes"){
2962
+ if(isset($var_key)){
2963
+ $skroutz_color = get_post_meta( $product_data['id'], $var_key, true );
2964
+ }
2965
+
2966
+ if(isset($var_key_sz)){
2967
+ $skroutz_size = get_post_meta( $product_data['id'], $var_key_sz, true );
2968
+ }
2969
 
 
 
 
2970
  if((!empty($skroutz_color)) AND (!empty($skroutz_size))){
2971
 
2972
  foreach($variations as $kvar => $vvar){
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=9.1.2',
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=9.1.3',
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: 9.1.2
9
 
10
  == Description ==
11
 
@@ -321,6 +321,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
321
 
322
  === Changelog ===
323
 
 
 
 
 
324
  = 9.1.2 (2020-11-15) =
325
  * When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
326
 
@@ -2906,6 +2910,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2906
 
2907
  == Upgrade Notice ==
2908
 
 
 
 
 
2909
  = 9.1.2 =
2910
  When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
2911
 
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: 9.1.3
9
 
10
  == Description ==
11
 
321
 
322
  === Changelog ===
323
 
324
+ = 9.1.3 (2020-11-17) =
325
+ * Solved some minor PHP warnings that showed in the UI
326
+ * The category path skroutz attribute was throwing a fatal error on a str_replace. This is fixed.
327
+
328
  = 9.1.2 (2020-11-15) =
329
  * When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
330
 
2910
 
2911
  == Upgrade Notice ==
2912
 
2913
+ = 9.1.3 =
2914
+ Solved some minor PHP warnings that showed in the UI
2915
+ The category path skroutz attribute was throwing a fatal error on a str_replace. This is fixed.
2916
+
2917
  = 9.1.2 =
2918
  When simple products are switched to variable products WooCommerce leaves some "simple" traces in the database causing issues for our plugin. This has been solved now.
2919
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 9.1.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,7 +48,7 @@ if (!defined('ABSPATH')) {
48
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
- define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '9.1.2' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -4249,8 +4249,10 @@ function woosea_create_all_feeds(){
4249
 
4250
  // Determine if changes where made to products or new orders where placed
4251
  // Only update the feed(s) when such a change occured
 
 
4252
  $products_changes = get_option('woosea_allow_update');
4253
-
4254
  if(!empty($feed_config)){
4255
  foreach ( $feed_config as $key => $val ) {
4256
 
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 9.1.3
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', '9.1.3' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
4249
 
4250
  // Determine if changes where made to products or new orders where placed
4251
  // Only update the feed(s) when such a change occured
4252
+
4253
+ $products_changes = "no"; // default value
4254
  $products_changes = get_option('woosea_allow_update');
4255
+
4256
  if(!empty($feed_config)){
4257
  foreach ( $feed_config as $key => $val ) {
4258