veisis
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] berocket.com website captcha brokenYes. It Works. Thanks!
Forum: Plugins
In reply to: [WPML Multilingual & Multicurrency for WooCommerce] Fix localization stringWoocommerce translation file only have string:
'You cannot add another "%s" to your cart.'Yes i double checked version. It is 3.9.5. I even compare files on svn.
There is two arrays $terms_array and $terms_ids_array.
That fix is only for $terms_array. For product_cat and product_tag taxonomy class-wcml-synchronize-product-data.php line 263-266.
But $terms_ids_array is without fix and is used in line 268.$translated_term->term_id gets returned as string but wp_set_post_terms require that term_id is integer.
See example here:
https://codex.ww.wp.xz.cn/Function_Reference/wp_set_post_termsBasically if term is string than wp_set_post_terms will create new term instead of linking with existing term. This is what exactly happened to one of my client shop products. Adding type casting fixed problem.
This bug vas introduced in version 3.9.4 when sync_product_taxonomies function was refactored.
Ok, thanks.