Version Description
Fixed an issue that caused performance of the plugin to slow down
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 8.8.6 |
Comparing to | |
See all releases |
Code changes from version 8.8.5 to 8.8.6
- classes/class-get-products.php +32 -28
- js/woosea_key.js +1 -1
- pages/admin/woosea-manage-feed.php +0 -17
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -2870,42 +2870,46 @@ class WooSEA_Get_Products {
|
|
2870 |
$variation_pass = "true";
|
2871 |
|
2872 |
if( ($product_data['item_group_id'] > 0) AND (is_object(wc_get_product( $product_data['item_group_id']))) AND ($product_data['product_type'] == "variation")){
|
2873 |
-
$product_variations = new WC_Product_Variation( $product_data['id'] );
|
2874 |
-
$variations = $product_variations->get_variation_attributes();
|
2875 |
|
2876 |
-
// Determine the default variation product
|
2877 |
-
$mother_product = wc_get_product($product_data['item_group_id']);
|
2878 |
-
$def_attributes = $mother_product->get_default_attributes();
|
2879 |
|
2880 |
-
|
2881 |
-
$all_variations = $mother_product->get_available_variations();
|
2882 |
-
$variations_id = wp_list_pluck( $all_variations, 'variation_id' );
|
2883 |
|
2884 |
-
|
2885 |
-
|
2886 |
-
|
2887 |
-
$variation_min_price = wc_format_localized_price($variation_min_price);
|
2888 |
|
2889 |
-
|
2890 |
-
|
2891 |
-
|
2892 |
-
|
2893 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2894 |
}
|
2895 |
-
}
|
2896 |
|
2897 |
-
|
2898 |
-
|
2899 |
-
|
2900 |
|
2901 |
-
|
|
|
|
|
2902 |
|
2903 |
-
|
2904 |
-
|
2905 |
-
|
2906 |
-
|
2907 |
-
|
2908 |
-
|
|
|
|
|
|
|
|
|
2909 |
}
|
2910 |
}
|
2911 |
|
2870 |
$variation_pass = "true";
|
2871 |
|
2872 |
if( ($product_data['item_group_id'] > 0) AND (is_object(wc_get_product( $product_data['item_group_id']))) AND ($product_data['product_type'] == "variation")){
|
|
|
|
|
2873 |
|
|
|
|
|
|
|
2874 |
|
2875 |
+
if((isset($project_config['lowest_price_variations'])) OR (isset($project_config['default_variations']))){
|
|
|
|
|
2876 |
|
2877 |
+
// Determine the default variation product
|
2878 |
+
$mother_product = wc_get_product($product_data['item_group_id']);
|
2879 |
+
$def_attributes = $mother_product->get_default_attributes();
|
|
|
2880 |
|
2881 |
+
if(isset($project_config['lowest_price_variations'])){
|
2882 |
+
|
2883 |
+
// Determine lowest priced variation
|
2884 |
+
$variation_min_price = $mother_product->get_variation_price('min');
|
2885 |
+
$variation_min_price = wc_format_decimal($variation_min_price,2);
|
2886 |
+
$variation_min_price = wc_format_localized_price($variation_min_price);
|
2887 |
+
|
2888 |
+
if($product_data['system_net_price'] == $variation_min_price){
|
2889 |
+
$variation_pass = "true";
|
2890 |
+
} else {
|
2891 |
+
$variation_pass = "false";
|
2892 |
+
}
|
2893 |
}
|
|
|
2894 |
|
2895 |
+
// Get review rating and count for parent product
|
2896 |
+
$product_data['rating_total'] = $mother_product->get_rating_count();
|
2897 |
+
$product_data['rating_average'] = $mother_product->get_average_rating();
|
2898 |
|
2899 |
+
if(isset($project_config['default_variations'])){
|
2900 |
+
$product_variations = new WC_Product_Variation( $product_data['id'] );
|
2901 |
+
$variations = $product_variations->get_variation_attributes();
|
2902 |
|
2903 |
+
$diff_result = array_diff($variations, $def_attributes);
|
2904 |
+
|
2905 |
+
if(!empty($diff_result)){
|
2906 |
+
// Only when a variant has no attributes selected we will let it pass
|
2907 |
+
if(count(array_filter($variations)) == 0){
|
2908 |
+
$variation_pass = "true";
|
2909 |
+
} else {
|
2910 |
+
$variation_pass = "false";
|
2911 |
+
}
|
2912 |
+
}
|
2913 |
}
|
2914 |
}
|
2915 |
|
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.
|
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.6',
|
31 |
jsonp: 'callback',
|
32 |
dataType: 'jsonp',
|
33 |
type: 'GET',
|
pages/admin/woosea-manage-feed.php
CHANGED
@@ -340,23 +340,6 @@ if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
|
|
340 |
</tr>
|
341 |
</table><br/>
|
342 |
|
343 |
-
<table class="woo-product-feed-pro-table">
|
344 |
-
<tr>
|
345 |
-
<td><strong><?php _e( 'WooCommerce product numbers','woo-product-feed-pro' );?></strong></td>
|
346 |
-
</tr>
|
347 |
-
<tr>
|
348 |
-
<td>
|
349 |
-
<?php
|
350 |
-
printf(
|
351 |
-
__( 'You currently have %1$s published products on your website out of which %2$s are simple products and %3$s variations.','woo-product-feed-pro' ),
|
352 |
-
$published_products,
|
353 |
-
$published_single,
|
354 |
-
$published_variation
|
355 |
-
);
|
356 |
-
?>
|
357 |
-
</td>
|
358 |
-
</tr>
|
359 |
-
</table>
|
360 |
</div>
|
361 |
</div>
|
362 |
</tbody>
|
340 |
</tr>
|
341 |
</table><br/>
|
342 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
343 |
</div>
|
344 |
</div>
|
345 |
</tbody>
|
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.
|
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.5 (2020-10-01) =
|
323 |
* Fixed a shipping cost bug that happened when multiple flat rates where configured for a country
|
324 |
|
@@ -2819,6 +2822,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2819 |
|
2820 |
== Upgrade Notice ==
|
2821 |
|
|
|
|
|
|
|
2822 |
= 8.8.5 =
|
2823 |
Fixed a shipping cost bug that happened when multiple flat rates where configured for a country
|
2824 |
|
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.6
|
9 |
|
10 |
== Description ==
|
11 |
|
319 |
|
320 |
=== Changelog ===
|
321 |
|
322 |
+
= 8.8.6 (2020-10-03) =
|
323 |
+
* Fixed an issue that caused performance of the plugin to slow down
|
324 |
+
|
325 |
= 8.8.5 (2020-10-01) =
|
326 |
* Fixed a shipping cost bug that happened when multiple flat rates where configured for a country
|
327 |
|
2822 |
|
2823 |
== Upgrade Notice ==
|
2824 |
|
2825 |
+
= 8.8.6 =
|
2826 |
+
Fixed an issue that caused performance of the plugin to slow down
|
2827 |
+
|
2828 |
= 8.8.5 =
|
2829 |
Fixed a shipping cost bug that happened when multiple flat rates where configured for a country
|
2830 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 8.8.
|
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.
|
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.6
|
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.6' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|