Version Description
Fixed a category path skroutz hierarchy bug
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.5.4 |
Comparing to | |
See all releases |
Code changes from version 7.5.3 to 7.5.4
- classes/class-get-products.php +5 -1
- js/woosea_key.js +1 -1
- readme.txt +7 -1
- woocommerce-sea.php +3 -3
classes/class-get-products.php
CHANGED
@@ -1963,18 +1963,22 @@ class WooSEA_Get_Products {
|
|
1963 |
$cat_order = array();
|
1964 |
foreach ($categories as $key => $value){
|
1965 |
$product_cat = get_term($value, 'product_cat');
|
|
|
1966 |
// Not in array so we can add it
|
1967 |
if(!in_array($value, $cat_order)){
|
|
|
1968 |
$parent_cat = $product_cat->parent;
|
1969 |
// Check if parent is in array
|
1970 |
if(in_array($parent_cat, $cat_order)){
|
|
|
1971 |
// Parent is in array, now determine position
|
1972 |
$position = array_search($parent_cat, $cat_order);
|
1973 |
|
1974 |
// Use array splice to add it in the right position in array
|
1975 |
$new_position = $position+1;
|
1976 |
-
$cat_order[$new_position] = $value;
|
1977 |
|
|
|
|
|
1978 |
} else {
|
1979 |
// Parent is not in array
|
1980 |
if($parent_cat > 0){
|
1963 |
$cat_order = array();
|
1964 |
foreach ($categories as $key => $value){
|
1965 |
$product_cat = get_term($value, 'product_cat');
|
1966 |
+
|
1967 |
// Not in array so we can add it
|
1968 |
if(!in_array($value, $cat_order)){
|
1969 |
+
|
1970 |
$parent_cat = $product_cat->parent;
|
1971 |
// Check if parent is in array
|
1972 |
if(in_array($parent_cat, $cat_order)){
|
1973 |
+
|
1974 |
// Parent is in array, now determine position
|
1975 |
$position = array_search($parent_cat, $cat_order);
|
1976 |
|
1977 |
// Use array splice to add it in the right position in array
|
1978 |
$new_position = $position+1;
|
|
|
1979 |
|
1980 |
+
// Insert on new position in array
|
1981 |
+
array_splice( $cat_order, $new_position, 0, $value );
|
1982 |
} else {
|
1983 |
// Parent is not in array
|
1984 |
if($parent_cat > 0){
|
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.5.
|
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.5.4',
|
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.3
|
8 |
-
Stable tag: 7.5.
|
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.5.3 (2020-02-23) =
|
316 |
* Added logic to ensure that category hierarchy is respected in the category path / short / Skroutz feeds
|
317 |
* Removed obsolete category code for variations
|
@@ -2393,6 +2396,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2393 |
|
2394 |
== Upgrade Notice ==
|
2395 |
|
|
|
|
|
|
|
2396 |
= 7.5.3 =
|
2397 |
Added logic to ensure that category hierarchy is respected in the category path / short / Skroutz feeds
|
2398 |
Removed obsolete category code for variations
|
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.3
|
8 |
+
Stable tag: 7.5.4
|
9 |
|
10 |
== Description ==
|
11 |
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
315 |
+
= 7.5.4 (2020-02-24) =
|
316 |
+
* Fixed a category path skroutz hierarchy bug
|
317 |
+
|
318 |
= 7.5.3 (2020-02-23) =
|
319 |
* Added logic to ensure that category hierarchy is respected in the category path / short / Skroutz feeds
|
320 |
* Removed obsolete category code for variations
|
2396 |
|
2397 |
== Upgrade Notice ==
|
2398 |
|
2399 |
+
= 7.5.4 =
|
2400 |
+
Fixed a category path skroutz hierarchy bug
|
2401 |
+
|
2402 |
= 7.5.3 =
|
2403 |
Added logic to ensure that category hierarchy is respected in the category path / short / Skroutz feeds
|
2404 |
Removed obsolete category code for variations
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 7.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,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '7.5.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -3833,7 +3833,7 @@ function woosea_license_valid(){
|
|
3833 |
|
3834 |
if(!empty($license_information['license_key'])){
|
3835 |
$curl = curl_init();
|
3836 |
-
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.5.
|
3837 |
|
3838 |
curl_setopt_array($curl, array(
|
3839 |
CURLOPT_RETURNTRANSFER => 1,
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 7.5.4
|
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.5.4' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
3833 |
|
3834 |
if(!empty($license_information['license_key'])){
|
3835 |
$curl = curl_init();
|
3836 |
+
$url = "https://www.adtribes.io/check/license.php?key=$license_information[license_key]&email=$license_information[license_email]&domain=$domain&version=7.5.4";
|
3837 |
|
3838 |
curl_setopt_array($curl, array(
|
3839 |
CURLOPT_RETURNTRANSFER => 1,
|