Product Feed PRO for WooCommerce - Version 8.9.9

Version Description

Added support for the Discount Rules for WooCommerce by FlyCart plugin

Download this release

Release Info

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

Code changes from version 8.9.7 to 8.9.9

classes/class-get-products.php CHANGED
@@ -796,7 +796,7 @@ class WooSEA_Get_Products {
796
  if((isset($v->instance_settings[$class_cost_id])) AND ($class_cost_id != "no_class_cost")){
797
  if (is_numeric($v->instance_settings[$class_cost_id])){
798
  $shipping_cost = $v->instance_settings[$class_cost_id];
799
-
800
  // Do we need to convert the shipping costswith the Aelia Currency Switcher
801
  if((isset($project_config['AELIA'])) AND (!empty($GLOBALS['woocommerce-aelia-currencyswitcher'])) AND (get_option ('add_aelia_support') == "yes")){
802
  if(!array_key_exists('base_currency', $project_config)){
@@ -1651,6 +1651,24 @@ class WooSEA_Get_Products {
1651
  $productp = $product->addChild('PARAM');
1652
  $productp->addChild("PARAM_NAME", $pieces[1]);
1653
  $productp->addChild("VAL", $v);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1654
  } elseif(($feed_config['name'] == "Yandex") AND (preg_match("/$zbozi_nodes/i",$k))){
1655
  $pieces = explode ("_", $k);
1656
  $p = "param";
@@ -2501,7 +2519,15 @@ class WooSEA_Get_Products {
2501
  if($product_data['sale_price'] > 0){
2502
  $price = $product_data['sale_price'];
2503
  }
2504
-
 
 
 
 
 
 
 
 
2505
  // Do we need to convert all of the above prices with the Aelia Currency Switcher
2506
  if((isset($project_config['AELIA'])) AND (!empty($GLOBALS['woocommerce-aelia-currencyswitcher'])) AND (get_option ('add_aelia_support') == "yes")){
2507
  if(!array_key_exists('base_currency', $project_config)){
796
  if((isset($v->instance_settings[$class_cost_id])) AND ($class_cost_id != "no_class_cost")){
797
  if (is_numeric($v->instance_settings[$class_cost_id])){
798
  $shipping_cost = $v->instance_settings[$class_cost_id];
799
+
800
  // Do we need to convert the shipping costswith the Aelia Currency Switcher
801
  if((isset($project_config['AELIA'])) AND (!empty($GLOBALS['woocommerce-aelia-currencyswitcher'])) AND (get_option ('add_aelia_support') == "yes")){
802
  if(!array_key_exists('base_currency', $project_config)){
1651
  $productp = $product->addChild('PARAM');
1652
  $productp->addChild("PARAM_NAME", $pieces[1]);
1653
  $productp->addChild("VAL", $v);
1654
+ } elseif(($feed_config['name'] == "Zbozi.cz") AND ($k == "DELIVERY")){
1655
+ $delivery = $product->addChild('DELIVERY');
1656
+ $delivery_split = explode("##", $v);
1657
+ $nr_split = count($delivery_split);
1658
+
1659
+ if($nr_split == 7){
1660
+ $delivery_id_split = explode(" ", $delivery_split[2]);
1661
+ $delivery_price_split = explode("||", $delivery_split[3]);
1662
+
1663
+ $delivery_id = $delivery->addChild('DELIVERY_ID', htmlspecialchars($delivery_id_split[0]));
1664
+ $delivery_price = $delivery->addChild('DELIVERY_PRICE', trim(htmlspecialchars($delivery_price_split[0])));
1665
+ $delivery_price_cod = $delivery->addChild('DELIVERY_PRICE_COD', trim(htmlspecialchars($delivery_split[6])));
1666
+ } else {
1667
+ if($nr_split > 1){
1668
+ $delivery_id = $delivery->addChild('DELIVERY_ID', htmlspecialchars($delivery_split[2]));
1669
+ $delivery_id = $delivery->addChild('DELIVERY_PRICE', trim(htmlspecialchars($delivery_split[3])));
1670
+ }
1671
+ }
1672
  } elseif(($feed_config['name'] == "Yandex") AND (preg_match("/$zbozi_nodes/i",$k))){
1673
  $pieces = explode ("_", $k);
1674
  $p = "param";
2519
  if($product_data['sale_price'] > 0){
2520
  $price = $product_data['sale_price'];
2521
  }
2522
+
2523
+ // Is the Discount Rules for WooCommerce by FlyCart plugin active, check for sale prices
2524
+ if ($this->woosea_is_plugin_active('woo-discount-rules/woo-discount-rules.php')){
2525
+ $discount = apply_filters('advanced_woo_discount_rules_get_product_discount_price_from_custom_price', 10, $product, 1, $product_data['sale_price'], 'discounted_price', true, true);
2526
+ if($discount !== false){
2527
+ $product_data['sale_price'] = $discount;
2528
+ }
2529
+ }
2530
+
2531
  // Do we need to convert all of the above prices with the Aelia Currency Switcher
2532
  if((isset($project_config['AELIA'])) AND (!empty($GLOBALS['woocommerce-aelia-currencyswitcher'])) AND (get_option ('add_aelia_support') == "yes")){
2533
  if(!array_key_exists('base_currency', $project_config)){
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.9.7',
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.9.9',
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.9.7
9
 
10
  == Description ==
11
 
@@ -131,6 +131,7 @@ Our plugin supports Polylang
131
  * Supports the official "WooCommerce Composite Products" plugin
132
  * Supports the official "WooCommerce Mix & Match Products" plugin
133
  * Supports WooCommerce Dynamic Pricing & Discounts from RightPress
 
134
  * Supports WC Fields Factory
135
  * Supports Table Rate Shipping for WooCommerce from Bolder Elements
136
  * Supports usage of the All In One SEO pack title and description attributes
@@ -320,6 +321,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
320
 
321
  === Changelog ===
322
 
 
 
 
 
 
 
323
  = 8.9.7 (2020-10-23) =
324
  * Switched rules and data manipulation feature
325
 
@@ -2859,6 +2866,12 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
2859
 
2860
  == Upgrade Notice ==
2861
 
 
 
 
 
 
 
2862
  = 8.9.7 =
2863
  Switched rules and data manipulation feature
2864
 
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.9.9
9
 
10
  == Description ==
11
 
131
  * Supports the official "WooCommerce Composite Products" plugin
132
  * Supports the official "WooCommerce Mix & Match Products" plugin
133
  * Supports WooCommerce Dynamic Pricing & Discounts from RightPress
134
+ * Supports the Discount Rules for WooCommerce plugin from FlyCart
135
  * Supports WC Fields Factory
136
  * Supports Table Rate Shipping for WooCommerce from Bolder Elements
137
  * Supports usage of the All In One SEO pack title and description attributes
321
 
322
  === Changelog ===
323
 
324
+ = 8.9.9 (2020-10-27) =
325
+ * Added support for the Discount Rules for WooCommerce by FlyCart plugin
326
+
327
+ = 8.9.8 (2020-10-27) =
328
+ * Added support for the Zbozi.cz delivery requirements
329
+
330
  = 8.9.7 (2020-10-23) =
331
  * Switched rules and data manipulation feature
332
 
2866
 
2867
  == Upgrade Notice ==
2868
 
2869
+ = 8.9.9 =
2870
+ Added support for the Discount Rules for WooCommerce by FlyCart plugin
2871
+
2872
+ = 8.9.8 =
2873
+ Added support for the Zbozi.cz delivery requirements
2874
+
2875
  = 8.9.7 =
2876
  Switched rules and data manipulation feature
2877
 
woocommerce-sea.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
- * Version: 8.9.7
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.9.7' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
@@ -590,7 +590,7 @@ function woosea_add_facebook_pixel( $product = null ){
590
  the content of the content_ids parameter in the Facebook Pixel Code
591
  ------------------------------------------------------------------------------->
592
  <script type="text/javascript">
593
- console.log("Facebook Pixel by AdTribes.io - 3");
594
  !function(f,b,e,v,n,t,s)
595
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
596
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
1
  <?php
2
  /**
3
  * Plugin Name: Product Feed PRO for WooCommerce
4
+ * Version: 8.9.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
  * Plugin versionnumber, please do not override.
49
  * Define some constants
50
  */
51
+ define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.9.9' );
52
  define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
53
  define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
54
 
590
  the content of the content_ids parameter in the Facebook Pixel Code
591
  ------------------------------------------------------------------------------->
592
  <script type="text/javascript">
593
+ console.log("Facebook Pixel by AdTribes.io");
594
  !function(f,b,e,v,n,t,s)
595
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
596
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};