Version Description
(2020-04-15) = * Solved a PHP warning that showed in the structured data fix when products did not have any categories attacted to it
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.9.2 |
Comparing to | |
See all releases |
Code changes from version 7.9.1 to 7.9.2
- classes/class-get-products.php +18 -16
- js/woosea_key.js +1 -1
- readme.txt +4 -1
- woocommerce-sea.php +10 -5
classes/class-get-products.php
CHANGED
@@ -2051,25 +2051,27 @@ class WooSEA_Get_Products {
|
|
2051 |
$product_cat = get_term($value, 'product_cat');
|
2052 |
|
2053 |
// Check if there are mother categories
|
2054 |
-
|
2055 |
-
|
|
|
2056 |
|
2057 |
-
|
2058 |
-
|
2059 |
-
|
2060 |
-
|
2061 |
-
|
2062 |
-
|
2063 |
|
2064 |
-
|
2065 |
-
|
2066 |
-
|
2067 |
-
|
2068 |
-
|
2069 |
|
2070 |
-
|
2071 |
-
|
2072 |
-
|
|
|
2073 |
}
|
2074 |
}
|
2075 |
|
2051 |
$product_cat = get_term($value, 'product_cat');
|
2052 |
|
2053 |
// Check if there are mother categories
|
2054 |
+
if(!empty($product_cat)){
|
2055 |
+
$category_path = $this->woosea_get_term_parents( $product_cat->term_id, 'product_cat', $link = false, $project_taxonomy = $project_config['taxonomy'], $nicename = false, $visited = array() );
|
2056 |
+
$category_path_skroutz = str_replace(">",">",$category_path);
|
2057 |
|
2058 |
+
if(!is_object($category_path)){
|
2059 |
+
$product_data['category_path'] = $category_path;
|
2060 |
+
$product_data['category_path_skroutz'] = $category_path_skroutz;
|
2061 |
+
$product_data['category_path_skroutz'] = str_replace("Home >","",$product_data['category_path_skroutz']);
|
2062 |
+
$product_data['category_path_skroutz'] = str_replace("&","&",$product_data['category_path_skroutz']);
|
2063 |
+
}
|
2064 |
|
2065 |
+
$parent_categories = get_ancestors($product_cat->term_id, 'product_cat');
|
2066 |
+
foreach ($parent_categories as $category_id){
|
2067 |
+
$parent = get_term_by('id', $category_id, 'product_cat');
|
2068 |
+
$parent_name = $parent->name;
|
2069 |
+
}
|
2070 |
|
2071 |
+
if(isset($product_cat->name)) {
|
2072 |
+
$catname .= "||".$product_cat->name;
|
2073 |
+
$catlink .= "||".get_term_link($value,'product_cat');
|
2074 |
+
}
|
2075 |
}
|
2076 |
}
|
2077 |
|
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=7.9.
|
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=7.9.2',
|
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: 7.9.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -312,6 +312,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
|
|
|
|
|
|
315 |
= 7.9.1 (2020-04-14) =
|
316 |
* Added the canonical_link attribute
|
317 |
* Solved a PHP warning that happened for products that did not have any category attached to it
|
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: 7.9.2
|
9 |
|
10 |
== Description ==
|
11 |
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
315 |
+
= 7.9.2 (2020-04-15) =
|
316 |
+
* Solved a PHP warning that showed in the structured data fix when products did not have any categories attacted to it
|
317 |
+
|
318 |
= 7.9.1 (2020-04-14) =
|
319 |
* Added the canonical_link attribute
|
320 |
* Solved a PHP warning that happened for products that did not have any category attached to it
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 7.9.
|
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', '7.9.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -360,8 +360,10 @@ function woosea_add_facebook_pixel( $product = null ){
|
|
360 |
$product_name = $product->get_name();
|
361 |
$cats = "";
|
362 |
$all_cats = get_the_terms( $fb_prodid, 'product_cat' );
|
363 |
-
|
364 |
-
|
|
|
|
|
365 |
}
|
366 |
// strip last comma
|
367 |
$cats = rtrim($cats, ",");
|
@@ -1593,6 +1595,9 @@ function woosea_product_fix_structured_data( $product = null ) {
|
|
1593 |
$mother_id = wc_get_product()->get_id();
|
1594 |
$children_ids = $product->get_children();
|
1595 |
|
|
|
|
|
|
|
1596 |
foreach ($children_ids as &$child_val) {
|
1597 |
$product_variations = new WC_Product_Variation( $child_val );
|
1598 |
$variations = array_filter($product_variations->get_variation_attributes());
|
@@ -4242,7 +4247,7 @@ function woosea_license_valid(){
|
|
4242 |
|
4243 |
if(!empty($license_information['license_key'])){
|
4244 |
$curl = curl_init();
|
4245 |
-
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.
|
4246 |
|
4247 |
curl_setopt_array($curl, array(
|
4248 |
CURLOPT_RETURNTRANSFER => 1,
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 7.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 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.9.2' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
360 |
$product_name = $product->get_name();
|
361 |
$cats = "";
|
362 |
$all_cats = get_the_terms( $fb_prodid, 'product_cat' );
|
363 |
+
if(!empty($all_cats)){
|
364 |
+
foreach ($all_cats as $key => $category) {
|
365 |
+
$cats .= $category->name.",";
|
366 |
+
}
|
367 |
}
|
368 |
// strip last comma
|
369 |
$cats = rtrim($cats, ",");
|
1595 |
$mother_id = wc_get_product()->get_id();
|
1596 |
$children_ids = $product->get_children();
|
1597 |
|
1598 |
+
$prod_type = $product->get_type();
|
1599 |
+
error_log("Product type:" . $prod_type);
|
1600 |
+
|
1601 |
foreach ($children_ids as &$child_val) {
|
1602 |
$product_variations = new WC_Product_Variation( $child_val );
|
1603 |
$variations = array_filter($product_variations->get_variation_attributes());
|
4247 |
|
4248 |
if(!empty($license_information['license_key'])){
|
4249 |
$curl = curl_init();
|
4250 |
+
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.9.2";
|
4251 |
|
4252 |
curl_setopt_array($curl, array(
|
4253 |
CURLOPT_RETURNTRANSFER => 1,
|