1
0
mirror of synced 2025-02-20 08:53:14 +03:00

Fix Js-errors (#350)

This commit is contained in:
ellynoize 2024-10-09 12:33:09 +06:00 committed by GitHub
parent b195d169e1
commit 618dbbe963
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,6 @@
## 2024-10-08 4.8.10
* Fixed errors in catalog formation when changing synchronization parameters (sku/externalId)
## 2024-09-30 4.8.9
* Improvement of customer registration form in loyalty program

View File

@ -1 +1 @@
4.8.9
4.8.10

View File

@ -1,15 +1,17 @@
jQuery(function () {
document.querySelector('#woocommerce_integration-retailcrm_bind_by_sku').onchange = function() {
let useXmlId = this.checked ? 'yes' : 'no';
if (document.querySelector('#woocommerce_integration-retailcrm_bind_by_sku')) {
document.querySelector('#woocommerce_integration-retailcrm_bind_by_sku').onchange = function() {
let useXmlId = this.checked ? 'yes' : 'no';
document.querySelector('.submit').onclick = function() {
jQuery.ajax({
url: AdminUrl.url + '/admin-ajax.php?action=generate_icml',
method: 'POST',
timeout: 0,
data: {useXmlId: useXmlId},
dataType: 'json'
})
}
};
document.querySelector('.submit').onmousedown = function() {
jQuery.ajax({
url: AdminUrl.url + '/admin-ajax.php?action=generate_icml',
method: 'POST',
timeout: 0,
data: {useXmlId: useXmlId},
dataType: 'json'
})
}
};
}
})

View File

@ -5,7 +5,7 @@ Tags: Интеграция, Simla.com, simla
Requires PHP: 7.1
Requires at least: 5.3
Tested up to: 6.5
Stable tag: 4.8.9
Stable tag: 4.8.10
License: GPLv1 or later
License URI: http://www.gnu.org/licenses/gpl-1.0.html
@ -82,6 +82,10 @@ Asegúrate de tener una clave API específica para cada tienda. Las siguientes i
== Changelog ==
= 4.8.10 =
* Fixed errors in catalog formation when changing synchronization parameters (sku/externalId)
= 4.8.9 =
* Improvement of customer registration form in loyalty program

View File

@ -5,7 +5,7 @@
* Description: Integration plugin for WooCommerce & Simla.com
* Author: RetailDriver LLC
* Author URI: http://retailcrm.pro/
* Version: 4.8.9
* Version: 4.8.10
* Tested up to: 6.5
* Requires Plugins: woocommerce
* WC requires at least: 5.4

View File

@ -16,7 +16,7 @@
*
* @link https://wordpress.org/plugins/woo-retailcrm/
*
* @version 4.8.9
* @version 4.8.10
*
* @package RetailCRM
*/