diff --git a/CHANGELOG.md b/CHANGELOG.md index de357dc..628e5ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2024-01-30 4.7.1 +* Fixed the error of displaying the 'Add' button to mapping custom fields + ## 2023-12-07 4.7.0 * Added support WooCommerce 8.2 (HPOS) diff --git a/VERSION b/VERSION index 1163055..7c66fca 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.7.0 \ No newline at end of file +4.7.1 diff --git a/src/assets/js/retailcrm-meta-fields.js b/src/assets/js/retailcrm-meta-fields.js index dff9139..4c7b36c 100644 --- a/src/assets/js/retailcrm-meta-fields.js +++ b/src/assets/js/retailcrm-meta-fields.js @@ -272,7 +272,9 @@ jQuery(function () { } RetailcrmMetaFields.prototype.fillSelects = function (data, entity, index) { - if (Object.keys(data.meta).length - 1 <= index || Object.keys(data.custom).length - 1 <= index) { + let allCountCrmFields = Object.keys(data.custom).length + Object.keys(data.crmDefault).length; + + if (Object.keys(data.meta).length - 1 <= index || allCountCrmFields - 1 <= index) { if (entity === 'order') { jQuery('#add-new-select-order-retailcrm').addClass('retailcrm-hidden') } else { diff --git a/src/readme.txt b/src/readme.txt index 1383d05..e7fdb9d 100644 --- a/src/readme.txt +++ b/src/readme.txt @@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla Requires PHP: 7.0 Requires at least: 5.3 Tested up to: 6.4 -Stable tag: 4.7.0 +Stable tag: 4.7.1 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.7.1 = +* Fixed the error of displaying the 'Add' button to mapping custom fields + = 4.7.0 = * Added support WooCommerce 8.2 (HPOS) diff --git a/src/retailcrm.php b/src/retailcrm.php index a18b7c6..cd7439c 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.7.0 + * Version: 4.7.1 * Tested up to: 6.4 * WC requires at least: 5.4 * WC tested up to: 8.3 diff --git a/src/uninstall.php b/src/uninstall.php index 372ffb5..4acd69e 100644 --- a/src/uninstall.php +++ b/src/uninstall.php @@ -16,7 +16,7 @@ * * @link https://wordpress.org/plugins/woo-retailcrm/ * - * @version 4.7.0 + * @version 4.7.1 * * @package RetailCRM */