Version Description
Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 8.0.7 |
Comparing to | |
See all releases |
Code changes from version 8.0.6 to 8.0.7
- classes/class-get-products.php +17 -17
- readme.txt +7 -1
- woocommerce-sea.php +2 -2
classes/class-get-products.php
CHANGED
@@ -753,27 +753,27 @@ class WooSEA_Get_Products {
|
|
753 |
// Add product to cart
|
754 |
if (isset($product_id)){
|
755 |
$quantity = 1;
|
756 |
-
|
757 |
-
//$customer = new WC_Customer( get_current_user_id(), true );
|
758 |
-
|
759 |
if(!empty($code_from_config)){
|
|
|
760 |
|
761 |
-
|
762 |
-
|
763 |
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
|
|
777 |
}
|
778 |
}
|
779 |
}
|
753 |
// Add product to cart
|
754 |
if (isset($product_id)){
|
755 |
$quantity = 1;
|
756 |
+
|
|
|
|
|
757 |
if(!empty($code_from_config)){
|
758 |
+
if(!is_null($code_from_config)){
|
759 |
|
760 |
+
WC()->customer->set_shipping_country(wc_clean( $code_from_config ));
|
761 |
+
if(isset($zone_details['region'])){
|
762 |
|
763 |
+
WC()->customer->set_shipping_state(wc_clean( $zone_details['region'] ));
|
764 |
+
}
|
765 |
+
//$cart = new WC_Cart();
|
766 |
+
WC()->cart->add_to_cart( $product_id, $quantity );
|
767 |
|
768 |
+
// Read cart and get schipping costs
|
769 |
+
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
|
770 |
+
$total_cost = WC()->cart->get_total();
|
771 |
+
$shipping_cost = WC()->cart->get_shipping_total();
|
772 |
+
$shipping_cost = wc_format_localized_price($shipping_cost);
|
773 |
+
}
|
774 |
+
// Make sure to empty the cart again
|
775 |
+
WC()->cart->empty_cart();
|
776 |
+
}
|
777 |
}
|
778 |
}
|
779 |
}
|
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: 8.0.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -313,6 +313,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
|
|
|
|
|
|
316 |
= 8.0.6 (2020-04-25) =
|
317 |
* Facebook pixel change for Purchase, SearchResult and ViewCategory events
|
318 |
|
@@ -2568,6 +2571,9 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2568 |
|
2569 |
== Upgrade Notice ==
|
2570 |
|
|
|
|
|
|
|
2571 |
= 8.0.6 =
|
2572 |
Facebook pixel change for Purchase, SearchResult and ViewCategory events
|
2573 |
|
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: 8.0.7
|
9 |
|
10 |
== Description ==
|
11 |
|
313 |
|
314 |
=== Changelog ===
|
315 |
|
316 |
+
= 8.0.7 (2020-04-26) =
|
317 |
+
* Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
|
318 |
+
|
319 |
= 8.0.6 (2020-04-25) =
|
320 |
* Facebook pixel change for Purchase, SearchResult and ViewCategory events
|
321 |
|
2571 |
|
2572 |
== Upgrade Notice ==
|
2573 |
|
2574 |
+
= 8.0.7 =
|
2575 |
+
Fixed a bug when user did not configure a shipping country in its WooCommerce shipping zones and methods
|
2576 |
+
|
2577 |
= 8.0.6 =
|
2578 |
Facebook pixel change for Purchase, SearchResult and ViewCategory events
|
2579 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 8.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', '8.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: 8.0.7
|
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.0.7' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|