Fix Js-errors (#350)
This commit is contained in:
parent
b195d169e1
commit
618dbbe963
@ -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
|
||||
|
||||
|
@ -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'
|
||||
})
|
||||
}
|
||||
};
|
||||
}
|
||||
})
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @link https://wordpress.org/plugins/woo-retailcrm/
|
||||
*
|
||||
* @version 4.8.9
|
||||
* @version 4.8.10
|
||||
*
|
||||
* @package RetailCRM
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user