diff --git a/CHANGELOG.md b/CHANGELOG.md index dc7f0162..b3640832 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2025-06-30 4.8.29 +* Fixed zero VAT handling + ## 2025-06-25 4.8.28 * Applying the bonus conversion coefficient to currency diff --git a/VERSION b/VERSION index d96de0e3..1be12ee8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.8.28 +4.8.29 diff --git a/src/include/class-wc-retailcrm-icml.php b/src/include/class-wc-retailcrm-icml.php index 2cf5d925..696d1612 100644 --- a/src/include/class-wc-retailcrm-icml.php +++ b/src/include/class-wc-retailcrm-icml.php @@ -268,7 +268,7 @@ private function getOffer(array $productAttributes, WC_Product $product, $parent 'categoryId' => $termList, 'dimensions' => $dimensions, 'weight' => $weight, - 'tax' => isset($tax) ? $tax['rate'] : 'none', + 'tax' => isset($tax['rate']) && $tax['rate'] !== 0 ? $tax['rate'] : 'none', 'type' => ($this->unloadServices && $product->is_virtual()) ? 'service' : 'product', ]; diff --git a/src/include/components/class-wc-retailcrm-loyalty-form.php b/src/include/components/class-wc-retailcrm-loyalty-form.php index 876e2c02..0cd9c1a4 100644 --- a/src/include/components/class-wc-retailcrm-loyalty-form.php +++ b/src/include/components/class-wc-retailcrm-loyalty-form.php @@ -73,7 +73,7 @@ public function getInfoLoyalty(array $loyaltyAccount) 'credit_for_order' => __('Сredited for order ', 'retailcrm'), 'burn' => __('Burn','retailcrm'), 'charge_for_order' => __('Сharged for order ', 'retailcrm'), - 'credit_for_event' => __('Credited by event', 'retailcrm') + 'credit_for_event' => __('Credited for event', 'retailcrm') ]; $currency = ' ' . $loyaltyAccount['loyalty']['currency']; $burnInfo = $loyaltyAccount['burnBonuses'][0] ?: []; diff --git a/src/include/icml/class-wc-retailcrm-icml-writer.php b/src/include/icml/class-wc-retailcrm-icml-writer.php index fa705025..5adf1de5 100644 --- a/src/include/icml/class-wc-retailcrm-icml-writer.php +++ b/src/include/icml/class-wc-retailcrm-icml-writer.php @@ -163,10 +163,7 @@ private function addOffers($offers) $this->writer->writeElement('weight', $offer['weight']); } - if (!empty($offer['tax'])) { - $this->writer->writeElement('vatRate', $offer['tax']); - } - + $this->writer->writeElement('vatRate', $offer['tax']); $this->writer->endElement(); // end } } diff --git a/src/readme.txt b/src/readme.txt index 27ab969a..152cd153 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 7.1 Requires at least: 5.3 Tested up to: 6.8 -Stable tag: 4.8.28 +Stable tag: 4.8.29 License: GPLv1 or later License URI: http://www.gnu.org/licenses/gpl-1.0.html @@ -82,6 +82,9 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i == Changelog == += 4.8.29 = +* Fixed zero VAT handling + = 4.8.28 = * Applying the bonus conversion coefficient to currency diff --git a/src/retailcrm.php b/src/retailcrm.php index 05d2d822..f9463610 100644 --- a/src/retailcrm.php +++ b/src/retailcrm.php @@ -5,7 +5,7 @@ * Description: Integration plugin for WooCommerce & Simla.com * Author: RetailDriver LLC * Author URI: http://retailcrm.pro/ - * Version: 4.8.28 + * Version: 4.8.29 * Tested up to: 6.8 * Requires Plugins: woocommerce * WC requires at least: 5.4 @@ -27,7 +27,7 @@ class WC_Integration_Retailcrm { const WOOCOMMERCE_SLUG = 'woocommerce'; const WOOCOMMERCE_PLUGIN_PATH = 'woocommerce/woocommerce.php'; - const MODULE_VERSION = '4.8.28'; + const MODULE_VERSION = '4.8.29'; private static $instance; diff --git a/src/uninstall.php b/src/uninstall.php index 046f0bb1..dde5f8f3 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.8.28 + * @version 4.8.29 * * @package RetailCRM */