Version Description
Added quantity support for Skroutz feeds
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 11.1.1 |
Comparing to | |
See all releases |
Code changes from version 11.1.0 to 11.1.1
- classes/channels/class-skroutz.php +7 -1
- classes/class-get-products.php +7 -0
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +3 -3
classes/channels/class-skroutz.php
CHANGED
@@ -72,7 +72,13 @@ class WooSEA_skroutz {
|
|
72 |
"name" => "ean",
|
73 |
"feed_name" => "ean",
|
74 |
"format" => "optional",
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
"instock" => array(
|
77 |
"name" => "instock",
|
78 |
"feed_name" => "instock",
|
72 |
"name" => "ean",
|
73 |
"feed_name" => "ean",
|
74 |
"format" => "optional",
|
75 |
+
),
|
76 |
+
"Quantity" => array(
|
77 |
+
"name" => "quantity",
|
78 |
+
"feed_name" => "quantity",
|
79 |
+
"format" => "required",
|
80 |
+
"woo_suggest" => "quantity",
|
81 |
+
),
|
82 |
"instock" => array(
|
83 |
"name" => "instock",
|
84 |
"feed_name" => "instock",
|
classes/class-get-products.php
CHANGED
@@ -4202,9 +4202,16 @@ class WooSEA_Get_Products {
|
|
4202 |
$product_skroutz = wc_get_product($product_data['item_group_id']);
|
4203 |
$variations = $product_skroutz->get_available_variations();
|
4204 |
$variations_id = wp_list_pluck( $variations, 'variation_id' );
|
|
|
4205 |
|
4206 |
foreach($variations_id as $var_id){
|
4207 |
$clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
|
|
|
|
|
|
|
|
|
|
|
|
|
4208 |
if (isset($sz_attribute)) {
|
4209 |
$size_variation = get_post_meta( $var_id, "attribute_".$sz_attribute, true );
|
4210 |
}
|
4202 |
$product_skroutz = wc_get_product($product_data['item_group_id']);
|
4203 |
$variations = $product_skroutz->get_available_variations();
|
4204 |
$variations_id = wp_list_pluck( $variations, 'variation_id' );
|
4205 |
+
$total_quantity = 0;
|
4206 |
|
4207 |
foreach($variations_id as $var_id){
|
4208 |
$clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
|
4209 |
+
|
4210 |
+
// Sum quantity of variations
|
4211 |
+
$quantity_variation = $this->get_attribute_value( $var_id, "_stock" );
|
4212 |
+
$total_quantity += $quantity_variation;
|
4213 |
+
$product_data['quantity'] = $total_quantity;
|
4214 |
+
|
4215 |
if (isset($sz_attribute)) {
|
4216 |
$size_variation = get_post_meta( $var_id, "attribute_".$sz_attribute, true );
|
4217 |
}
|
js/woosea_key.js
CHANGED
@@ -26,7 +26,7 @@ jQuery(document).ready(function($) {
|
|
26 |
var license_key = $('#license-key').val();
|
27 |
|
28 |
jQuery.ajax({
|
29 |
-
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.1.
|
30 |
jsonp: 'callback',
|
31 |
dataType: 'jsonp',
|
32 |
type: 'GET',
|
26 |
var license_key = $('#license-key').val();
|
27 |
|
28 |
jQuery.ajax({
|
29 |
+
url: 'https://www.adtribes.io/check/license.php?key=' + license_key + '&email=' + license_email + '&domain=' + root_domain + '&version=11.1.1',
|
30 |
jsonp: 'callback',
|
31 |
dataType: 'jsonp',
|
32 |
type: 'GET',
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
5 |
Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.8
|
8 |
-
Stable tag: 11.1.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -337,6 +337,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
|
|
|
|
|
|
340 |
= 11.1.0 (2022-01-03) =
|
341 |
* Update of post meta extra fields only when they are set and filled
|
342 |
|
@@ -3546,6 +3549,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3546 |
|
3547 |
== Upgrade Notice ==
|
3548 |
|
|
|
|
|
|
|
3549 |
= 11.1.0 =
|
3550 |
Update of post meta extra fields only when they are set and filled
|
3551 |
|
5 |
Tags: Google Shopping Feed, WooCommerce Product Feed, Facebook Product Feed, Bing Shopping Feed, Bing Product Feed, Google Merchant Feed, Skroutz, Google Product Feed, Pinterest, Idealo, Facebook Pixel, Facebook Conversion API
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.8
|
8 |
+
Stable tag: 11.1.1
|
9 |
|
10 |
== Description ==
|
11 |
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
340 |
+
= 11.1.1 (2022-01-03) =
|
341 |
+
* Added quantity support for Skroutz feeds
|
342 |
+
|
343 |
= 11.1.0 (2022-01-03) =
|
344 |
* Update of post meta extra fields only when they are set and filled
|
345 |
|
3549 |
|
3550 |
== Upgrade Notice ==
|
3551 |
|
3552 |
+
= 11.1.1 =
|
3553 |
+
Added quantity support for Skroutz feeds
|
3554 |
+
|
3555 |
= 11.1.0 =
|
3556 |
Update of post meta extra fields only when they are set and filled
|
3557 |
|
woocommerce-sea.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 11.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
|
8 |
* Plugin URI: https://wwww.adtribes.io/pro-vs-elite/
|
9 |
* Author URI: https://www.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', '11.1.
|
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: 11.1.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, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
8 |
* Plugin URI: https://wwww.adtribes.io/pro-vs-elite/
|
9 |
* Author URI: https://www.adtribes.io
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.1.1' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|