Version Description
Added JSON priceSpecification Fixed a fatal error where users added a flat rate shipping zone but forgot to set a shipping country. This issue has been fixed now.
Download this release
Release Info
Developer | jorisverwater |
Plugin | Product Feed PRO for WooCommerce |
Version | 7.3.7 |
Comparing to | |
See all releases |
Code changes from version 7.3.6 to 7.3.7
- classes/class-get-products.php +18 -14
- js/woosea_key.js +1 -1
- readme.txt +9 -1
- woocommerce-sea.php +27 -2
classes/class-get-products.php
CHANGED
@@ -755,22 +755,26 @@ class WooSEA_Get_Products {
|
|
755 |
$quantity = 1;
|
756 |
|
757 |
//$customer = new WC_Customer( get_current_user_id(), true );
|
758 |
-
|
759 |
-
|
|
|
|
|
|
|
760 |
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
|
|
774 |
}
|
775 |
}
|
776 |
}
|
755 |
$quantity = 1;
|
756 |
|
757 |
//$customer = new WC_Customer( get_current_user_id(), true );
|
758 |
+
|
759 |
+
if(!empty($code_from_config)){
|
760 |
+
|
761 |
+
WC()->customer->set_shipping_country(wc_clean( $code_from_config ));
|
762 |
+
if(isset($zone_details['region'])){
|
763 |
|
764 |
+
WC()->customer->set_shipping_state(wc_clean( $zone_details['region'] ));
|
765 |
+
}
|
766 |
+
//$cart = new WC_Cart();
|
767 |
+
WC()->cart->add_to_cart( $product_id, $quantity );
|
768 |
|
769 |
+
// Read cart and get schipping costs
|
770 |
+
foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) {
|
771 |
+
$total_cost = WC()->cart->get_total();
|
772 |
+
$shipping_cost = WC()->cart->get_shipping_total();
|
773 |
+
$shipping_cost = wc_format_localized_price($shipping_cost);
|
774 |
+
}
|
775 |
+
// Make sure to empty the cart again
|
776 |
+
WC()->cart->empty_cart();
|
777 |
+
}
|
778 |
}
|
779 |
}
|
780 |
}
|
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.3.
|
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.3.7',
|
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.3.
|
9 |
|
10 |
== Description ==
|
11 |
|
@@ -312,6 +312,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
|
|
|
|
|
|
|
|
315 |
= 7.3.6 (2020-01-30) =
|
316 |
* Fixed a bug where an admin notice could be closed but the state was not being saved.
|
317 |
|
@@ -2337,6 +2341,10 @@ Questions left or unanswered? Please do not hesitate to contact us at support@ad
|
|
2337 |
|
2338 |
== Upgrade Notice ==
|
2339 |
|
|
|
|
|
|
|
|
|
2340 |
= 7.3.6 =
|
2341 |
Fixed a bug where an admin notice could be closed but the state was not being saved.
|
2342 |
|
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.3.7
|
9 |
|
10 |
== Description ==
|
11 |
|
312 |
|
313 |
=== Changelog ===
|
314 |
|
315 |
+
= 7.3.7 (2020-02-04) =
|
316 |
+
* Added JSON priceSpecification
|
317 |
+
* Fixed a fatal error where users added a flat rate shipping zone but forgot to set a shipping country. This issue has been fixed now.
|
318 |
+
|
319 |
= 7.3.6 (2020-01-30) =
|
320 |
* Fixed a bug where an admin notice could be closed but the state was not being saved.
|
321 |
|
2341 |
|
2342 |
== Upgrade Notice ==
|
2343 |
|
2344 |
+
= 7.3.7 =
|
2345 |
+
Added JSON priceSpecification
|
2346 |
+
Fixed a fatal error where users added a flat rate shipping zone but forgot to set a shipping country. This issue has been fixed now.
|
2347 |
+
|
2348 |
= 7.3.6 =
|
2349 |
Fixed a bug where an admin notice could be closed but the state was not being saved.
|
2350 |
|
woocommerce-sea.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
-
* Version: 7.3.
|
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.3.
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
@@ -1304,6 +1304,11 @@ function woosea_product_delete_meta_price( $product = null ) {
|
|
1304 |
'@type' => 'Offer',
|
1305 |
'price' => $product_price,
|
1306 |
'priceValidUntil' => $price_valid_until,
|
|
|
|
|
|
|
|
|
|
|
1307 |
'priceCurrency' => $shop_currency,
|
1308 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1309 |
'availability' => 'https://schema.org/'.$availability.'',
|
@@ -1328,6 +1333,11 @@ function woosea_product_delete_meta_price( $product = null ) {
|
|
1328 |
'@type' => 'Offer',
|
1329 |
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1330 |
'priceCurrency' => $shop_currency,
|
|
|
|
|
|
|
|
|
|
|
1331 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1332 |
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1333 |
'sku' => $product->get_sku(),
|
@@ -1406,6 +1416,11 @@ function woosea_product_delete_meta_price( $product = null ) {
|
|
1406 |
'price' => $product_price,
|
1407 |
'priceValidUntil' => $price_valid_until,
|
1408 |
'priceCurrency' => $shop_currency,
|
|
|
|
|
|
|
|
|
|
|
1409 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1410 |
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1411 |
'sku' => $product->get_sku(),
|
@@ -1438,6 +1453,11 @@ function woosea_product_delete_meta_price( $product = null ) {
|
|
1438 |
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1439 |
'priceValidUntil' => $price_valid_until,
|
1440 |
'priceCurrency' => $shop_currency,
|
|
|
|
|
|
|
|
|
|
|
1441 |
);
|
1442 |
|
1443 |
|
@@ -1467,6 +1487,11 @@ function woosea_product_delete_meta_price( $product = null ) {
|
|
1467 |
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
1468 |
'priceValidUntil' => $price_valid_until,
|
1469 |
'priceCurrency' => $shop_currency,
|
|
|
|
|
|
|
|
|
|
|
1470 |
'availability' => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1471 |
'url' => $permalink,
|
1472 |
'seller' => array(
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Product Feed PRO for WooCommerce
|
4 |
+
* Version: 7.3.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', '7.3.7' );
|
52 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME', 'woocommerce-product-feed-pro' );
|
53 |
define( 'WOOCOMMERCESEA_PLUGIN_NAME_SHORT', 'woo-product-feed-pro' );
|
54 |
|
1304 |
'@type' => 'Offer',
|
1305 |
'price' => $product_price,
|
1306 |
'priceValidUntil' => $price_valid_until,
|
1307 |
+
'priceSpecification' => array(
|
1308 |
+
'price' => $product_price,
|
1309 |
+
'priceCurrency' => $shop_currency,
|
1310 |
+
'valueAddedTaxIncluded' => wc_prices_include_tax() ? 'true' : 'false',
|
1311 |
+
),
|
1312 |
'priceCurrency' => $shop_currency,
|
1313 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1314 |
'availability' => 'https://schema.org/'.$availability.'',
|
1333 |
'@type' => 'Offer',
|
1334 |
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1335 |
'priceCurrency' => $shop_currency,
|
1336 |
+
'priceSpecification' => array(
|
1337 |
+
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1338 |
+
'priceCurrency' => $shop_currency,
|
1339 |
+
'valueAddedTaxIncluded' => wc_prices_include_tax() ? 'true' : 'false',
|
1340 |
+
),
|
1341 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1342 |
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1343 |
'sku' => $product->get_sku(),
|
1416 |
'price' => $product_price,
|
1417 |
'priceValidUntil' => $price_valid_until,
|
1418 |
'priceCurrency' => $shop_currency,
|
1419 |
+
'priceSpecification' => array(
|
1420 |
+
'price' => $product_price,
|
1421 |
+
'priceCurrency' => $shop_currency,
|
1422 |
+
'valueAddedTaxIncluded' => wc_prices_include_tax() ? 'true' : 'false',
|
1423 |
+
),
|
1424 |
'itemCondition' => 'https://schema.org/'.$json_condition.'',
|
1425 |
'availability' => 'https://schema.org/' . $stock = ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1426 |
'sku' => $product->get_sku(),
|
1453 |
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1454 |
'priceValidUntil' => $price_valid_until,
|
1455 |
'priceCurrency' => $shop_currency,
|
1456 |
+
'priceSpecification' => array(
|
1457 |
+
'price' => wc_format_decimal( $lowest, wc_get_price_decimals() ),
|
1458 |
+
'priceCurrency' => $shop_currency,
|
1459 |
+
'valueAddedTaxIncluded' => wc_prices_include_tax() ? 'true' : 'false',
|
1460 |
+
),
|
1461 |
);
|
1462 |
|
1463 |
|
1487 |
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
1488 |
'priceValidUntil' => $price_valid_until,
|
1489 |
'priceCurrency' => $shop_currency,
|
1490 |
+
'priceSpecification' => array(
|
1491 |
+
'price' => wc_format_decimal( $product->get_price(), wc_get_price_decimals() ),
|
1492 |
+
'priceCurrency' => $shop_currency,
|
1493 |
+
'valueAddedTaxIncluded' => wc_prices_include_tax() ? 'true' : 'false',
|
1494 |
+
),
|
1495 |
'availability' => 'https://schema.org/' . ( $product->is_in_stock() ? 'InStock' : 'OutOfStock' ),
|
1496 |
'url' => $permalink,
|
1497 |
'seller' => array(
|