Version Description
Skroutz variation products that are out of stock are no longer added as an attribute value to the parent product (such as size / colour)
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 9.2.3 |
Comparing to | |
See all releases |
Code changes from version 9.2.2 to 9.2.3
- classes/class-get-products.php +46 -9
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -2804,11 +2804,48 @@ class WooSEA_Get_Products {
|
|
2804 |
$product_data[$taxo] = "";
|
2805 |
|
2806 |
if(is_array($term_value)){
|
2807 |
-
|
2808 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2809 |
}
|
2810 |
-
$product_data[$taxo] = ltrim($product_data[$taxo],',');
|
2811 |
-
$product_data[$taxo] = rtrim($product_data[$taxo],',');
|
2812 |
}
|
2813 |
}
|
2814 |
|
@@ -2983,14 +3020,14 @@ class WooSEA_Get_Products {
|
|
2983 |
|
2984 |
$skroutz_apparal = get_option('skroutz_apparel');
|
2985 |
if($skroutz_apparal == "yes"){
|
2986 |
-
if(isset($
|
2987 |
-
$skroutz_color = get_post_meta( $product_data['id'],
|
2988 |
}
|
2989 |
|
2990 |
-
if(isset($
|
2991 |
-
$skroutz_size = get_post_meta( $product_data['id'],
|
2992 |
}
|
2993 |
-
|
2994 |
if((!empty($skroutz_color)) AND (!empty($skroutz_size))){
|
2995 |
|
2996 |
foreach($variations as $kvar => $vvar){
|
2804 |
$product_data[$taxo] = "";
|
2805 |
|
2806 |
if(is_array($term_value)){
|
2807 |
+
// Do not add variation values to the feed when they are out of stock
|
2808 |
+
if($project_config['fields'] == "skroutz"){
|
2809 |
+
if(($product->is_type('variable')) AND ($product_data['item_group_id'] == 0)){
|
2810 |
+
$product_skroutz = wc_get_product($product_data['id']);
|
2811 |
+
$variations = $product_skroutz->get_available_variations();
|
2812 |
+
$variations_id = wp_list_pluck( $variations, 'variation_id' );
|
2813 |
+
$skroutz_att_array = array();
|
2814 |
+
|
2815 |
+
foreach($variations_id as $var_id){
|
2816 |
+
$stock_value = get_post_meta( $var_id, "_stock_status", true );
|
2817 |
+
if($stock_value == "instock"){
|
2818 |
+
foreach($term_value as $term){
|
2819 |
+
$attr_value = get_post_meta( $var_id, "attribute_".$term->taxonomy, true );
|
2820 |
+
if(!in_array($attr_value, $skroutz_att_array)){
|
2821 |
+
array_push($skroutz_att_array, $attr_value);
|
2822 |
+
}
|
2823 |
+
}
|
2824 |
+
$product_data[$taxo] = ltrim($product_data[$taxo],',');
|
2825 |
+
$product_data[$taxo] = rtrim($product_data[$taxo],',');
|
2826 |
+
}
|
2827 |
+
}
|
2828 |
+
|
2829 |
+
foreach($skroutz_att_array as $skrtz_value){
|
2830 |
+
$product_data[$taxo] .= ",". $skrtz_value;
|
2831 |
+
}
|
2832 |
+
$product_data[$taxo] = ltrim($product_data[$taxo],',');
|
2833 |
+
$product_data[$taxo] = rtrim($product_data[$taxo],',');
|
2834 |
+
} else {
|
2835 |
+
// Simple Skroutz product
|
2836 |
+
foreach($term_value as $term){
|
2837 |
+
$product_data[$taxo] .= ",". $term->name;
|
2838 |
+
}
|
2839 |
+
$product_data[$taxo] = ltrim($product_data[$taxo],',');
|
2840 |
+
$product_data[$taxo] = rtrim($product_data[$taxo],',');
|
2841 |
+
}
|
2842 |
+
} else {
|
2843 |
+
foreach($term_value as $term){
|
2844 |
+
$product_data[$taxo] .= ",". $term->name;
|
2845 |
+
}
|
2846 |
+
$product_data[$taxo] = ltrim($product_data[$taxo],',');
|
2847 |
+
$product_data[$taxo] = rtrim($product_data[$taxo],',');
|
2848 |
}
|
|
|
|
|
2849 |
}
|
2850 |
}
|
2851 |
|
3020 |
|
3021 |
$skroutz_apparal = get_option('skroutz_apparel');
|
3022 |
if($skroutz_apparal == "yes"){
|
3023 |
+
if(isset($clr_attribute)){
|
3024 |
+
$skroutz_color = get_post_meta( $product_data['id'], "attribute_".$clr_attribute, true );
|
3025 |
}
|
3026 |
|
3027 |
+
if(isset($sz_attribute)){
|
3028 |
+
$skroutz_size = get_post_meta( $product_data['id'], "attribute_".$sz_attribute, true );
|
3029 |
}
|
3030 |
+
|
3031 |
if((!empty($skroutz_color)) AND (!empty($skroutz_size))){
|
3032 |
|
3033 |
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.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.2.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.2.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -321,6 +321,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
321 |
|
322 |
=== Changelog ===
|
323 |
|
|
|
|
|
|
|
324 |
= 9.2.2 (2020-12-02) =
|
325 |
* Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
|
326 |
* Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
|
@@ -2938,6 +2941,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2938 |
|
2939 |
== Upgrade Notice ==
|
2940 |
|
|
|
|
|
|
|
2941 |
= 9.2.2 =
|
2942 |
Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
|
2943 |
Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
|
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.2.3
|
9 |
|
10 |
== Description ==
|
11 |
|
321 |
|
322 |
=== Changelog ===
|
323 |
|
324 |
+
= 9.2.3 (2020-12-05) =
|
325 |
+
* Skroutz variation products that are out of stock are no longer added as an attribute value to the parent product (such as size / colour)
|
326 |
+
|
327 |
= 9.2.2 (2020-12-02) =
|
328 |
* Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
|
329 |
* Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
|
2941 |
|
2942 |
== Upgrade Notice ==
|
2943 |
|
2944 |
+
= 9.2.3 =
|
2945 |
+
Skroutz variation products that are out of stock are no longer added as an attribute value to the parent product (such as size / colour)
|
2946 |
+
|
2947 |
= 9.2.2 =
|
2948 |
Solved a PHP warning notification that showed on the manage feeds page when a user did not create any WooCommerce custom attributes
|
2949 |
Solved a Facebook pixel price localization issue for the AddToCart and Purchase event
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 9.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.2.
|
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: 9.2.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.2.3' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|