Version Description
(2020-02-25) = * Change in Google category taxonomy mapping: when a product belongs to multiple categories the plugin will use the lowest level category hierarchy mapping (instead of the last one it encounters) * Removed the double pipes in front of the raw category attribute values * Made sure that checks on number of product orders is only done on numeric values
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.5.5 |
Comparing to | |
See all releases |
Code changes from version 7.5.4 to 7.5.5
- classes/class-get-products.php +17 -20
- js/woosea_key.js +1 -1
- readme.txt +11 -1
- woocommerce-sea.php +3 -3
classes/class-get-products.php
CHANGED
@@ -215,14 +215,17 @@ class WooSEA_Get_Products {
|
|
215 |
private function woosea_get_nr_orders_variation ( $variation_id ) {
|
216 |
global $wpdb;
|
217 |
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
|
|
|
|
|
|
226 |
return $nr_sales;
|
227 |
}
|
228 |
|
@@ -2045,7 +2048,7 @@ class WooSEA_Get_Products {
|
|
2045 |
|
2046 |
$product_data['category_path_short'] = str_replace("Home >","",$product_data['category_path']);
|
2047 |
$product_data['category_link'] = $catlink;
|
2048 |
-
$product_data['raw_categories'] = $catname;
|
2049 |
if(!empty($one_category)){
|
2050 |
$product_data['one_category'] = $one_category;
|
2051 |
}
|
@@ -3688,7 +3691,6 @@ class WooSEA_Get_Products {
|
|
3688 |
private function woocommerce_sea_mappings( $project_mappings, $product_data ){
|
3689 |
$original_cat = $product_data['categories'];
|
3690 |
$original_cat = preg_replace('/&/','&',$original_cat);
|
3691 |
-
|
3692 |
$tmp_cat = "";
|
3693 |
$match = "false";
|
3694 |
|
@@ -3703,17 +3705,12 @@ class WooSEA_Get_Products {
|
|
3703 |
$original_cat = trim($original_cat);
|
3704 |
|
3705 |
// First check if there is a category mapping for this specific product
|
3706 |
-
|
3707 |
-
//if(($pm_array['criteria'] == "$original_cat") AND (!empty($pm_array['map_to_category']))){
|
3708 |
-
// $category_pieces = explode("-", $pm_array['map_to_category']);
|
3709 |
-
// $tmp_cat = $category_pieces[0];
|
3710 |
-
// $match = "true";
|
3711 |
-
//}
|
3712 |
-
|
3713 |
if ((preg_match('/'.$pm_array['criteria'].'/', $original_cat))){
|
3714 |
-
|
3715 |
-
|
3716 |
-
|
|
|
|
|
3717 |
} elseif($pm_array['criteria'] == $original_cat){
|
3718 |
$category_pieces = explode("-", $pm_array['map_to_category']);
|
3719 |
$tmp_cat = $category_pieces[0];
|
215 |
private function woosea_get_nr_orders_variation ( $variation_id ) {
|
216 |
global $wpdb;
|
217 |
|
218 |
+
$nr_sales = 0;
|
219 |
+
|
220 |
+
if(is_numeric($variation_id)){
|
221 |
+
// Getting all Order Items with that variation ID
|
222 |
+
$nr_sales = $wpdb->get_col( $wpdb->prepare( "
|
223 |
+
SELECT count(*) AS nr_sales
|
224 |
+
FROM {$wpdb->prefix}woocommerce_order_itemmeta
|
225 |
+
WHERE meta_key LIKE '_variation_id'
|
226 |
+
AND meta_value = %s
|
227 |
+
", $variation_id ) );
|
228 |
+
}
|
229 |
return $nr_sales;
|
230 |
}
|
231 |
|
2048 |
|
2049 |
$product_data['category_path_short'] = str_replace("Home >","",$product_data['category_path']);
|
2050 |
$product_data['category_link'] = $catlink;
|
2051 |
+
$product_data['raw_categories'] = ltrim($catname,"||");
|
2052 |
if(!empty($one_category)){
|
2053 |
$product_data['one_category'] = $one_category;
|
2054 |
}
|
3691 |
private function woocommerce_sea_mappings( $project_mappings, $product_data ){
|
3692 |
$original_cat = $product_data['categories'];
|
3693 |
$original_cat = preg_replace('/&/','&',$original_cat);
|
|
|
3694 |
$tmp_cat = "";
|
3695 |
$match = "false";
|
3696 |
|
3705 |
$original_cat = trim($original_cat);
|
3706 |
|
3707 |
// First check if there is a category mapping for this specific product
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3708 |
if ((preg_match('/'.$pm_array['criteria'].'/', $original_cat))){
|
3709 |
+
if(!empty($pm_array['map_to_category'])){
|
3710 |
+
$category_pieces = explode("-", $pm_array['map_to_category']);
|
3711 |
+
$tmp_cat = $category_pieces[0];
|
3712 |
+
$match = "true";
|
3713 |
+
}
|
3714 |
} elseif($pm_array['criteria'] == $original_cat){
|
3715 |
$category_pieces = explode("-", $pm_array['map_to_category']);
|
3716 |
$tmp_cat = $category_pieces[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.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.3
|
8 |
-
Stable tag: 7.5.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -312,6 +312,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
|
|
|
|
|
|
|
|
|
|
315 |
= 7.5.4 (2020-02-24) =
|
316 |
* Fixed a category path skroutz hierarchy bug
|
317 |
|
@@ -2396,6 +2401,11 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2396 |
|
2397 |
== Upgrade Notice ==
|
2398 |
|
|
|
|
|
|
|
|
|
|
|
2399 |
= 7.5.4 =
|
2400 |
Fixed a category path skroutz hierarchy bug
|
2401 |
|
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.5
|
9 |
|
10 |
== Description ==
|
11 |
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
315 |
+
= 7.5.5 (2020-02-25) =
|
316 |
+
* Change in Google category taxonomy mapping: when a product belongs to multiple categories the plugin will use the lowest level category hierarchy mapping (instead of the last one it encounters)
|
317 |
+
* Removed the double pipes in front of the raw category attribute values
|
318 |
+
* Made sure that checks on number of product orders is only done on numeric values
|
319 |
+
|
320 |
= 7.5.4 (2020-02-24) =
|
321 |
* Fixed a category path skroutz hierarchy bug
|
322 |
|
2401 |
|
2402 |
== Upgrade Notice ==
|
2403 |
|
2404 |
+
= 7.5.5. =
|
2405 |
+
Change in Google category taxonomy mapping: when a product belongs to multiple categories the plugin will use the lowest level category hierarchy mapping (instead of the last one it encounters)
|
2406 |
+
Removed the double pipes in front of the raw category attribute values
|
2407 |
+
Made sure that checks on number of product orders is only done on numeric values
|
2408 |
+
|
2409 |
= 7.5.4 =
|
2410 |
Fixed a category path skroutz hierarchy bug
|
2411 |
|
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.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', '7.5.5' );
|
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.5";
|
3837 |
|
3838 |
curl_setopt_array($curl, array(
|
3839 |
CURLOPT_RETURNTRANSFER => 1,
|