Version Description
Added support for usage of multiple product highlights
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 9.0.5 |
Comparing to | |
See all releases |
Code changes from version 9.0.4 to 9.0.5
- TODO.txt +1 -0
- classes/class-get-products.php +13 -9
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
TODO.txt
CHANGED
@@ -5,6 +5,7 @@ Tutorial / Blog posts:
|
|
5 |
- Explain all the different fields/attributes that can be selected from the drop-downs
|
6 |
|
7 |
Priority issues:
|
|
|
8 |
- Add a preview option so only 5-10 products are being generated
|
9 |
- Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
|
10 |
- Google local product feed inventory in XML format (not just TXT like it is now)
|
5 |
- Explain all the different fields/attributes that can be selected from the drop-downs
|
6 |
|
7 |
Priority issues:
|
8 |
+
- Add Elite support for GTranslate
|
9 |
- Add a preview option so only 5-10 products are being generated
|
10 |
- Own hosted plugin updating: https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
|
11 |
- Google local product feed inventory in XML format (not just TXT like it is now)
|
classes/class-get-products.php
CHANGED
@@ -1128,8 +1128,8 @@ class WooSEA_Get_Products {
|
|
1128 |
$section_name_start = ucfirst($section_name[0]);
|
1129 |
$name = ucfirst(trim($section_name[1]));
|
1130 |
|
1131 |
-
$section_name = $product_detail->addChild('g:section_name',
|
1132 |
-
$product_detail_name = $product_detail->addChild('g:attribute_name', $
|
1133 |
$product_detail_value = $product_detail->addChild('g:attribute_value', $product_detail_split[1], $namespace['g']);
|
1134 |
}
|
1135 |
} elseif ($k == "g:installment"){
|
@@ -3593,10 +3593,14 @@ class WooSEA_Get_Products {
|
|
3593 |
/**
|
3594 |
* Build an array needed for the adding Childs in the XML productfeed
|
3595 |
*/
|
|
|
|
|
|
|
3596 |
foreach( array_keys($project_config['attributes']) as $attribute_key ){
|
3597 |
-
|
3598 |
if(!is_numeric($attribute_key)){
|
3599 |
if(!isset($old_attributes_config)){
|
|
|
3600 |
if(!$xml_product){
|
3601 |
$xml_product = array (
|
3602 |
$attribute_key => $product_data[$attribute_key]
|
@@ -3608,9 +3612,6 @@ class WooSEA_Get_Products {
|
|
3608 |
}
|
3609 |
} else {
|
3610 |
foreach($old_attributes_config as $attr_key => $attr_value){
|
3611 |
-
|
3612 |
-
$ca = 0;
|
3613 |
-
$ga = 0;
|
3614 |
// Static attribute value was set by user
|
3615 |
if(array_key_exists('static_value', $attr_value)){
|
3616 |
if(!isset($xml_product)){
|
@@ -3735,9 +3736,11 @@ class WooSEA_Get_Products {
|
|
3735 |
}
|
3736 |
}
|
3737 |
} else {
|
|
|
|
|
3738 |
if(array_key_exists($attr_value['attribute'], $xml_product)){
|
3739 |
$ca = explode("_", $attr_value['mapfrom']);
|
3740 |
-
|
3741 |
// Google Shopping Actions, allow multiple product highlights in feed
|
3742 |
if($attr_value['attribute'] == "g:product_highlight"){
|
3743 |
$xml_product[$attr_value['attribute']."_$ga"] = "$attr_value[prefix] ". $product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
@@ -3748,7 +3751,6 @@ class WooSEA_Get_Products {
|
|
3748 |
}
|
3749 |
} else {
|
3750 |
if(strlen($product_data[$attr_value['mapfrom']])){
|
3751 |
-
|
3752 |
if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "g:link_template")){
|
3753 |
if(($product_data['product_type'] == "variation") AND (preg_match("/aelia_cs_currency/", $attr_value['suffix']))){
|
3754 |
$attr_value['suffix'] = str_replace("?","&",$attr_value['suffix']);
|
@@ -3762,6 +3764,8 @@ class WooSEA_Get_Products {
|
|
3762 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix]". $product_data[$attr_value['mapfrom']] ."$attr_value[suffix]";
|
3763 |
} elseif($attr_value['attribute'] == "g:product_detail"){
|
3764 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix] ". $attr_value['mapfrom']."#".$product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
|
|
|
|
3765 |
} else {
|
3766 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix] ". $product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
3767 |
}
|
@@ -3771,7 +3775,7 @@ class WooSEA_Get_Products {
|
|
3771 |
}
|
3772 |
}
|
3773 |
}
|
3774 |
-
}
|
3775 |
}
|
3776 |
}
|
3777 |
}
|
1128 |
$section_name_start = ucfirst($section_name[0]);
|
1129 |
$name = ucfirst(trim($section_name[1]));
|
1130 |
|
1131 |
+
$section_name = $product_detail->addChild('g:section_name', "General", $namespace['g']);
|
1132 |
+
$product_detail_name = $product_detail->addChild('g:attribute_name', $section_name_start, $namespace['g']);
|
1133 |
$product_detail_value = $product_detail->addChild('g:attribute_value', $product_detail_split[1], $namespace['g']);
|
1134 |
}
|
1135 |
} elseif ($k == "g:installment"){
|
3593 |
/**
|
3594 |
* Build an array needed for the adding Childs in the XML productfeed
|
3595 |
*/
|
3596 |
+
$ga = 0;
|
3597 |
+
$ca = 0;
|
3598 |
+
|
3599 |
foreach( array_keys($project_config['attributes']) as $attribute_key ){
|
3600 |
+
|
3601 |
if(!is_numeric($attribute_key)){
|
3602 |
if(!isset($old_attributes_config)){
|
3603 |
+
|
3604 |
if(!$xml_product){
|
3605 |
$xml_product = array (
|
3606 |
$attribute_key => $product_data[$attribute_key]
|
3612 |
}
|
3613 |
} else {
|
3614 |
foreach($old_attributes_config as $attr_key => $attr_value){
|
|
|
|
|
|
|
3615 |
// Static attribute value was set by user
|
3616 |
if(array_key_exists('static_value', $attr_value)){
|
3617 |
if(!isset($xml_product)){
|
3736 |
}
|
3737 |
}
|
3738 |
} else {
|
3739 |
+
$ga++;
|
3740 |
+
|
3741 |
if(array_key_exists($attr_value['attribute'], $xml_product)){
|
3742 |
$ca = explode("_", $attr_value['mapfrom']);
|
3743 |
+
|
3744 |
// Google Shopping Actions, allow multiple product highlights in feed
|
3745 |
if($attr_value['attribute'] == "g:product_highlight"){
|
3746 |
$xml_product[$attr_value['attribute']."_$ga"] = "$attr_value[prefix] ". $product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
3751 |
}
|
3752 |
} else {
|
3753 |
if(strlen($product_data[$attr_value['mapfrom']])){
|
|
|
3754 |
if(($attr_value['attribute'] == "g:link") OR ($attr_value['attribute'] == "link") OR ($attr_value['attribute'] == "g:link_template")){
|
3755 |
if(($product_data['product_type'] == "variation") AND (preg_match("/aelia_cs_currency/", $attr_value['suffix']))){
|
3756 |
$attr_value['suffix'] = str_replace("?","&",$attr_value['suffix']);
|
3764 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix]". $product_data[$attr_value['mapfrom']] ."$attr_value[suffix]";
|
3765 |
} elseif($attr_value['attribute'] == "g:product_detail"){
|
3766 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix] ". $attr_value['mapfrom']."#".$product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
3767 |
+
} elseif($attr_value['attribute'] == "g:product_highlight"){
|
3768 |
+
$xml_product[$attr_value['attribute']."_$ga"] = "$attr_value[prefix] ". $product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
3769 |
} else {
|
3770 |
$xml_product[$attr_value['attribute']] = "$attr_value[prefix] ". $product_data[$attr_value['mapfrom']] ." $attr_value[suffix]";
|
3771 |
}
|
3775 |
}
|
3776 |
}
|
3777 |
}
|
3778 |
+
}
|
3779 |
}
|
3780 |
}
|
3781 |
}
|
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.0.
|
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.0.5',
|
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.0.
|
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.0.4 (2020-11-08) =
|
325 |
* Removed some absolete queued JS scripts
|
326 |
|
@@ -2882,6 +2885,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2882 |
|
2883 |
== Upgrade Notice ==
|
2884 |
|
|
|
|
|
|
|
2885 |
= 9.0.4 =
|
2886 |
Removed some absolete queued JS scripts
|
2887 |
|
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.0.5
|
9 |
|
10 |
== Description ==
|
11 |
|
321 |
|
322 |
=== Changelog ===
|
323 |
|
324 |
+
= 9.0.5 (2020-11-10) =
|
325 |
+
* Added support for usage of multiple product highlights
|
326 |
+
|
327 |
= 9.0.4 (2020-11-08) =
|
328 |
* Removed some absolete queued JS scripts
|
329 |
|
2885 |
|
2886 |
== Upgrade Notice ==
|
2887 |
|
2888 |
+
= 9.0.5 =
|
2889 |
+
Added support for usage of multiple product highlights
|
2890 |
+
|
2891 |
= 9.0.4 =
|
2892 |
Removed some absolete queued JS scripts
|
2893 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 9.0.
|
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.0.
|
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.0.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, 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.0.5' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|