Version Description
Changed the XML node order for Google Product Review feeds as it was not (always) validating by Google
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 8.3.8 |
Comparing to | |
See all releases |
Code changes from version 8.3.7 to 8.3.8
- classes/class-get-products.php +80 -33
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -1381,44 +1381,91 @@ class WooSEA_Get_Products {
|
|
1381 |
$identifiers = array("brand","gtin","mpn","sku");
|
1382 |
|
1383 |
foreach($value as $k => $v) {
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1399 |
}
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1414 |
}
|
1415 |
}
|
1416 |
-
} else {
|
1417 |
-
if(($k != "reviews") AND ($k != "review_url")){
|
1418 |
-
$poa = $po->addChild($k,htmlspecialchars($v));
|
1419 |
-
}
|
1420 |
}
|
1421 |
}
|
|
|
|
|
1422 |
}
|
1423 |
}
|
1424 |
}
|
1381 |
$identifiers = array("brand","gtin","mpn","sku");
|
1382 |
|
1383 |
foreach($value as $k => $v) {
|
1384 |
+
if(($k != "product_name") AND ($k != "product_url")){
|
1385 |
+
if(!in_array($k, $identifiers)){
|
1386 |
+
if(($k != "reviews") AND ($k != "review_url")){
|
1387 |
+
$poa = $po->addChild($k,htmlspecialchars($v));
|
1388 |
+
}
|
1389 |
+
} else {
|
1390 |
+
|
1391 |
+
if(isset($po->product_ids)){
|
1392 |
+
if($k == "brand"){
|
1393 |
+
$poib = $poi->addChild('brands');
|
1394 |
+
$poib->$k = $v;
|
1395 |
+
} elseif ($k == "gtin"){
|
1396 |
+
$poig = $poi->addChild('gtins');
|
1397 |
+
$poig->$k = $v;
|
1398 |
+
} elseif ($k == "mpn"){
|
1399 |
+
$poim = $poi->addChild('mpns');
|
1400 |
+
$poim->$k = $v;
|
1401 |
+
} else {
|
1402 |
+
$pois = $poi->addChild('skus');
|
1403 |
+
$pois->$k = $v;
|
1404 |
+
}
|
1405 |
+
} else {
|
1406 |
+
$poi = $po->addChild('product_ids');
|
1407 |
+
if($k == "brand"){
|
1408 |
+
$poib = $poi->addChild('brands');
|
1409 |
+
$poib->$k = $v;
|
1410 |
+
} elseif ($k == "gtin"){
|
1411 |
+
$poig = $poi->addChild('gtins');
|
1412 |
+
$poig->$k = $v;
|
1413 |
+
} elseif ($k == "mpn"){
|
1414 |
+
$poim = $poi->addChild('mpns');
|
1415 |
+
$poim->$k = $v;
|
1416 |
+
} else {
|
1417 |
+
$pois = $poi->addChild('skus');
|
1418 |
+
$pois->$k = $v;
|
1419 |
+
}
|
1420 |
}
|
1421 |
+
}
|
1422 |
+
}
|
1423 |
+
}
|
1424 |
+
|
1425 |
+
// foreach for product name and product url as order seems to mather to Google
|
1426 |
+
foreach($value as $k => $v) {
|
1427 |
+
if(($k == "product_name") OR ($k == "product_url")){
|
1428 |
+
if(!in_array($k, $identifiers)){
|
1429 |
+
if(($k != "reviews") AND ($k != "review_url")){
|
1430 |
+
$poa = $po->addChild($k,htmlspecialchars($v));
|
1431 |
+
}
|
1432 |
+
} else {
|
1433 |
+
|
1434 |
+
if(isset($po->product_ids)){
|
1435 |
+
if($k == "brand"){
|
1436 |
+
$poib = $poi->addChild('brands');
|
1437 |
+
$poib->$k = $v;
|
1438 |
+
} elseif ($k == "gtin"){
|
1439 |
+
$poig = $poi->addChild('gtins');
|
1440 |
+
$poig->$k = $v;
|
1441 |
+
} elseif ($k == "mpn"){
|
1442 |
+
$poim = $poi->addChild('mpns');
|
1443 |
+
$poim->$k = $v;
|
1444 |
+
} else {
|
1445 |
+
$pois = $poi->addChild('skus');
|
1446 |
+
$pois->$k = $v;
|
1447 |
+
}
|
1448 |
+
} else {
|
1449 |
+
$poi = $po->addChild('product_ids');
|
1450 |
+
if($k == "brand"){
|
1451 |
+
$poib = $poi->addChild('brands');
|
1452 |
+
$poib->$k = $v;
|
1453 |
+
} elseif ($k == "gtin"){
|
1454 |
+
$poig = $poi->addChild('gtins');
|
1455 |
+
$poig->$k = $v;
|
1456 |
+
} elseif ($k == "mpn"){
|
1457 |
+
$poim = $poi->addChild('mpns');
|
1458 |
+
$poim->$k = $v;
|
1459 |
+
} else {
|
1460 |
+
$pois = $poi->addChild('skus');
|
1461 |
+
$pois->$k = $v;
|
1462 |
+
}
|
1463 |
}
|
1464 |
}
|
|
|
|
|
|
|
|
|
1465 |
}
|
1466 |
}
|
1467 |
+
|
1468 |
+
|
1469 |
}
|
1470 |
}
|
1471 |
}
|
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=
|
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.3.8',
|
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.4
|
8 |
-
Stable tag: 8.3.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -313,6 +313,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
|
|
|
|
|
|
316 |
= 8.3.7 (2020-06-21) =
|
317 |
* Added a product title hyphen attribute showing a hyphen between the parent variable product name and the attribute values
|
318 |
|
@@ -2663,6 +2666,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2663 |
|
2664 |
== Upgrade Notice ==
|
2665 |
|
|
|
|
|
|
|
2666 |
= 8.3.7 =
|
2667 |
Added a product title hyphen attribute showing a hyphen between the parent variable product name and the attribute values
|
2668 |
|
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.4
|
8 |
+
Stable tag: 8.3.8
|
9 |
|
10 |
== Description ==
|
11 |
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
316 |
+
= 8.3.8 (2020-06-25) =
|
317 |
+
* Changed the XML node order for Google Product Review feeds as it was not (always) validating by Google
|
318 |
+
|
319 |
= 8.3.7 (2020-06-21) =
|
320 |
* Added a product title hyphen attribute showing a hyphen between the parent variable product name and the attribute values
|
321 |
|
2666 |
|
2667 |
== Upgrade Notice ==
|
2668 |
|
2669 |
+
= 8.3.8 =
|
2670 |
+
Changed the XML node order for Google Product Review feeds as it was not (always) validating by Google
|
2671 |
+
|
2672 |
= 8.3.7 =
|
2673 |
Added a product title hyphen attribute showing a hyphen between the parent variable product name and the attribute values
|
2674 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 8.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,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.3.
|
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.3.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 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.3.8' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|