Version Description
Fixed an issue with the is_plugin_active function that did not work Fixed a shipping costs issue where sometimes the country was left empty
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 8.9.0 |
Comparing to | |
See all releases |
Code changes from version 8.8.9 to 8.9.0
- classes/class-get-products.php +19 -7
- js/woosea_key.js +1 -1
- readme.txt +9 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -26,6 +26,14 @@ class WooSEA_Get_Products {
|
|
26 |
return "<![CDATA[ $string ]]>";
|
27 |
}
|
28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
/**
|
30 |
* An improved function for the strip_tags
|
31 |
* Removing tags but replacing them with spaces instead of just removing them
|
@@ -175,7 +183,7 @@ class WooSEA_Get_Products {
|
|
175 |
* As that does not have ?lang= behind the links
|
176 |
*/
|
177 |
if(isset($feed_config['WPML'])){
|
178 |
-
if ((
|
179 |
if( !class_exists( 'Polylang' ) ) {
|
180 |
global $sitepress;
|
181 |
$default_lang = $sitepress->get_default_language();
|
@@ -749,7 +757,7 @@ class WooSEA_Get_Products {
|
|
749 |
}
|
750 |
|
751 |
// WooCommerce Table Rate Bolder Elements
|
752 |
-
if(
|
753 |
// Set shipping cost
|
754 |
$shipping_cost = 0;
|
755 |
if(!empty($product_id)){
|
@@ -979,13 +987,15 @@ class WooSEA_Get_Products {
|
|
979 |
}
|
980 |
}
|
981 |
|
982 |
-
//
|
983 |
foreach($shipping_arr as $k => $v){
|
984 |
-
|
985 |
-
|
|
|
|
|
986 |
//unset($shipping_arr[$k]);
|
987 |
}
|
988 |
-
}
|
989 |
return $shipping_arr;
|
990 |
}
|
991 |
|
@@ -3927,7 +3937,9 @@ class WooSEA_Get_Products {
|
|
3927 |
public function clean_quantity( $id, $name ) {
|
3928 |
$quantity = $this->get_attribute_value( $id, $name );
|
3929 |
if ($quantity) {
|
3930 |
-
|
|
|
|
|
3931 |
}
|
3932 |
return "0";
|
3933 |
}
|
26 |
return "<![CDATA[ $string ]]>";
|
27 |
}
|
28 |
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Check if a plugin is active
|
32 |
+
*/
|
33 |
+
public function woosea_is_plugin_active( $plugin ) {
|
34 |
+
return in_array( $plugin, (array) get_option( 'active_plugins', array() ) );
|
35 |
+
}
|
36 |
+
|
37 |
/**
|
38 |
* An improved function for the strip_tags
|
39 |
* Removing tags but replacing them with spaces instead of just removing them
|
183 |
* As that does not have ?lang= behind the links
|
184 |
*/
|
185 |
if(isset($feed_config['WPML'])){
|
186 |
+
if (($this->woosea_is_plugin_active('sitepress-multilingual-cms')) OR ( function_exists('icl_object_id') )){
|
187 |
if( !class_exists( 'Polylang' ) ) {
|
188 |
global $sitepress;
|
189 |
$default_lang = $sitepress->get_default_language();
|
757 |
}
|
758 |
|
759 |
// WooCommerce Table Rate Bolder Elements
|
760 |
+
if($this->woosea_is_plugin_active( 'woocommerce-table-rate-shipping/woocommerce-table-rate-shipping.php' )) {
|
761 |
// Set shipping cost
|
762 |
$shipping_cost = 0;
|
763 |
if(!empty($product_id)){
|
987 |
}
|
988 |
}
|
989 |
|
990 |
+
// Fix empty countries
|
991 |
foreach($shipping_arr as $k => $v){
|
992 |
+
|
993 |
+
if(empty($k['country'])){
|
994 |
+
$lalala = get_option( 'woocommerce_default_country' );
|
995 |
+
$shipping_arr[$k]['country'] = get_option( 'woocommerce_default_country' );
|
996 |
//unset($shipping_arr[$k]);
|
997 |
}
|
998 |
+
}
|
999 |
return $shipping_arr;
|
1000 |
}
|
1001 |
|
3937 |
public function clean_quantity( $id, $name ) {
|
3938 |
$quantity = $this->get_attribute_value( $id, $name );
|
3939 |
if ($quantity) {
|
3940 |
+
if(is_numeric($quantity)){
|
3941 |
+
return $quantity + 0;
|
3942 |
+
}
|
3943 |
}
|
3944 |
return "0";
|
3945 |
}
|
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=8.
|
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.9.0',
|
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: 8.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -320,6 +320,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
320 |
|
321 |
=== Changelog ===
|
322 |
|
|
|
|
|
|
|
|
|
323 |
= 8.8.9 (2020-10-05) =
|
324 |
* Added support for the WooCommerce Mix & Match plugin
|
325 |
|
@@ -2833,6 +2837,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2833 |
|
2834 |
== Upgrade Notice ==
|
2835 |
|
|
|
|
|
|
|
|
|
2836 |
= 8.8.9 =
|
2837 |
Added support for the WooCommerce Mix & Match plugin
|
2838 |
|
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: 8.9.0
|
9 |
|
10 |
== Description ==
|
11 |
|
320 |
|
321 |
=== Changelog ===
|
322 |
|
323 |
+
= 8.9.0 (2020-10-12) =
|
324 |
+
* Fixed an issue with the is_plugin_active function that did not work.
|
325 |
+
* Fixed a shipping costs issue where sometimes the country was left empty
|
326 |
+
|
327 |
= 8.8.9 (2020-10-05) =
|
328 |
* Added support for the WooCommerce Mix & Match plugin
|
329 |
|
2837 |
|
2838 |
== Upgrade Notice ==
|
2839 |
|
2840 |
+
= 8.9.0 =
|
2841 |
+
Fixed an issue with the is_plugin_active function that did not work
|
2842 |
+
Fixed a shipping costs issue where sometimes the country was left empty
|
2843 |
+
|
2844 |
= 8.8.9 =
|
2845 |
Added support for the WooCommerce Mix & Match plugin
|
2846 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 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,7 +48,7 @@ if (!defined('ABSPATH')) {
|
|
48 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
-
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.
|
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.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 |
* Plugin versionnumber, please do not override.
|
49 |
* Define some constants
|
50 |
*/
|
51 |
+
define( 'WOOCOMMERCESEA_PLUGIN_VERSION', '8.9.0' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|