Version Description
Added support for the Mall.sk media (image) URL field
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 11.1.5 |
Comparing to | |
See all releases |
Code changes from version 11.1.3 to 11.1.5
- classes/class-get-products.php +38 -3
- js/woosea_key.js +1 -1
- readme.txt +15 -1
- woocommerce-sea.php +4 -5
classes/class-get-products.php
CHANGED
@@ -1764,6 +1764,33 @@ class WooSEA_Get_Products {
|
|
1764 |
$product->addAttribute('group_id', trim($v));
|
1765 |
}
|
1766 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1767 |
if(($k == "available") AND ($feed_config['name'] == "Yandex")){
|
1768 |
if($v == "in stock"){
|
1769 |
$v = "true";
|
@@ -1871,11 +1898,16 @@ class WooSEA_Get_Products {
|
|
1871 |
$pieces = explode ("_", $k);
|
1872 |
$productp = $product->addChild('PARAM');
|
1873 |
if($feed_config['name'] == "Mall.sk"){
|
1874 |
-
$productp->addChild("
|
|
|
1875 |
} else {
|
1876 |
$productp->addChild("PARAM_NAME", $pieces[1]);
|
|
|
1877 |
}
|
1878 |
-
|
|
|
|
|
|
|
1879 |
} elseif((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Heureka.cz")) AND ($k == "DELIVERY")){
|
1880 |
$delivery = $product->addChild('DELIVERY');
|
1881 |
$delivery_split = explode("##", $v);
|
@@ -4209,13 +4241,16 @@ class WooSEA_Get_Products {
|
|
4209 |
$variations = $product_skroutz->get_available_variations();
|
4210 |
$variations_id = wp_list_pluck( $variations, 'variation_id' );
|
4211 |
$total_quantity = 0;
|
|
|
4212 |
|
4213 |
foreach($variations_id as $var_id){
|
4214 |
$clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
|
4215 |
|
4216 |
// Sum quantity of variations
|
4217 |
$quantity_variation = $this->get_attribute_value( $var_id, "_stock" );
|
4218 |
-
$
|
|
|
|
|
4219 |
$product_data['quantity'] = $total_quantity;
|
4220 |
|
4221 |
if (isset($sz_attribute)) {
|
1764 |
$product->addAttribute('group_id', trim($v));
|
1765 |
}
|
1766 |
|
1767 |
+
if(($k == "color") AND ($feed_config['name'] == "Skroutz")){
|
1768 |
+
if(preg_match('/,/', $v)){
|
1769 |
+
$cls = explode(",",$v);
|
1770 |
+
|
1771 |
+
if (is_array ( $cls ) ) {
|
1772 |
+
foreach ($cls as $kk => $vv){
|
1773 |
+
if(!empty($vv)){
|
1774 |
+
$additional_color = $product->addChild('color',trim($vv));
|
1775 |
+
}
|
1776 |
+
}
|
1777 |
+
}
|
1778 |
+
break;
|
1779 |
+
} elseif (preg_match("/\\s/", $v)){
|
1780 |
+
$clp = explode(" ",$v);
|
1781 |
+
|
1782 |
+
if (is_array ( $clp ) ) {
|
1783 |
+
foreach ($clp as $kk => $vv){
|
1784 |
+
if(!empty($vv)){
|
1785 |
+
$additional_color = $product->addChild('color',trim($vv));
|
1786 |
+
}
|
1787 |
+
}
|
1788 |
+
}
|
1789 |
+
break;
|
1790 |
+
}
|
1791 |
+
|
1792 |
+
}
|
1793 |
+
|
1794 |
if(($k == "available") AND ($feed_config['name'] == "Yandex")){
|
1795 |
if($v == "in stock"){
|
1796 |
$v = "true";
|
1898 |
$pieces = explode ("_", $k);
|
1899 |
$productp = $product->addChild('PARAM');
|
1900 |
if($feed_config['name'] == "Mall.sk"){
|
1901 |
+
$productp->addChild("NAME", $pieces[1]);
|
1902 |
+
$productp->addChild("VALUE", $v);
|
1903 |
} else {
|
1904 |
$productp->addChild("PARAM_NAME", $pieces[1]);
|
1905 |
+
$productp->addChild("VAL", $v);
|
1906 |
}
|
1907 |
+
} elseif(($feed_config['name'] == "Mall.sk") AND ($k == "MEDIA")){
|
1908 |
+
$productp = $product->addChild('MEDIA');
|
1909 |
+
$productp->addChild("URL", $v);
|
1910 |
+
$productp->addChild("MAIN", "true");
|
1911 |
} elseif((($feed_config['name'] == "Zbozi.cz") OR ($feed_config['name'] == "Heureka.cz")) AND ($k == "DELIVERY")){
|
1912 |
$delivery = $product->addChild('DELIVERY');
|
1913 |
$delivery_split = explode("##", $v);
|
4241 |
$variations = $product_skroutz->get_available_variations();
|
4242 |
$variations_id = wp_list_pluck( $variations, 'variation_id' );
|
4243 |
$total_quantity = 0;
|
4244 |
+
$quantity_variation = 0;
|
4245 |
|
4246 |
foreach($variations_id as $var_id){
|
4247 |
$clr_variation = get_post_meta( $var_id, "attribute_".$clr_attribute, true );
|
4248 |
|
4249 |
// Sum quantity of variations
|
4250 |
$quantity_variation = $this->get_attribute_value( $var_id, "_stock" );
|
4251 |
+
if(!empty($quantity_variation)){
|
4252 |
+
$total_quantity += $quantity_variation;
|
4253 |
+
}
|
4254 |
$product_data['quantity'] = $total_quantity;
|
4255 |
|
4256 |
if (isset($sz_attribute)) {
|
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.5',
|
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,13 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
= 11.1.3 (2022-01-09) =
|
341 |
* Removed htaccess feature as it seems to be conflicting for some users
|
342 |
|
@@ -3556,6 +3563,13 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
3556 |
|
3557 |
== Upgrade Notice ==
|
3558 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3559 |
= 11.1.3 =
|
3560 |
Removed htaccess feature as it seems to be conflicting for some users
|
3561 |
|
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.5
|
9 |
|
10 |
== Description ==
|
11 |
|
337 |
|
338 |
=== Changelog ===
|
339 |
|
340 |
+
= 11.1.5 (2022-01-20) =
|
341 |
+
* Added support for the Mall.sk media (image) URL field
|
342 |
+
|
343 |
+
= 11.1.4 (2022-01-14) =
|
344 |
+
* Tested for compatibility with WC 6.1
|
345 |
+
* Changed Skroutz template so it meets the new Skroutz color requirements
|
346 |
+
|
347 |
= 11.1.3 (2022-01-09) =
|
348 |
* Removed htaccess feature as it seems to be conflicting for some users
|
349 |
|
3563 |
|
3564 |
== Upgrade Notice ==
|
3565 |
|
3566 |
+
= 11.1.5 =
|
3567 |
+
Added support for the Mall.sk media (image) URL field
|
3568 |
+
|
3569 |
+
= 11.1.4 =
|
3570 |
+
Tested for compatibility with WC 6.1
|
3571 |
+
Changed Skroutz template so it meets the new Skroutz color requirements
|
3572 |
+
|
3573 |
= 11.1.3 =
|
3574 |
Removed htaccess feature as it seems to be conflicting for some users
|
3575 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
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, Skroutz, Yandex, Comparison shopping websites and over a 100 channels more.
|
7 |
* Author: AdTribes.io
|
@@ -17,7 +17,7 @@
|
|
17 |
* Domain Path: /languages
|
18 |
*
|
19 |
* WC requires at least: 4.4
|
20 |
-
* WC tested up to: 6.
|
21 |
*
|
22 |
* Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
|
23 |
* it under the terms of the GNU General Public License as published by
|
@@ -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 |
|
@@ -258,8 +258,7 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
258 |
$fb_capi_data["event_source_url"] = home_url($_SERVER['REQUEST_URI']);
|
259 |
|
260 |
if ($fb_pagetype == "product"){
|
261 |
-
|
262 |
-
|
263 |
$fb_prodid = get_the_id();
|
264 |
$product_name = $product->get_name();
|
265 |
$product_name = str_replace("\"","",$product_name);
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 11.1.5
|
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
|
17 |
* Domain Path: /languages
|
18 |
*
|
19 |
* WC requires at least: 4.4
|
20 |
+
* WC tested up to: 6.1
|
21 |
*
|
22 |
* Product Feed PRO for WooCommerce is free software: you can redistribute it and/or modify
|
23 |
* it under the terms of the GNU General Public License as published by
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '11.1.5' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
258 |
$fb_capi_data["event_source_url"] = home_url($_SERVER['REQUEST_URI']);
|
259 |
|
260 |
if ($fb_pagetype == "product"){
|
261 |
+
if (!empty($product->get_price())) {
|
|
|
262 |
$fb_prodid = get_the_id();
|
263 |
$product_name = $product->get_name();
|
264 |
$product_name = str_replace("\"","",$product_name);
|