Forums › Forums › Search & Filter Pro › WooCommerce+WPML
Tagged: WPML
- This topic has 23 replies, 3 voices, and was last updated 3 years, 11 months ago by Ross.
-
Anonymous(Private) November 12, 2020 at 5:19 pm #266231
Hi,
I was using your plugin to search WC products and it was working fine until I installed WPML.
Default language is IT, second language is EN.
I have create a searchform form also for the EN version, the code I am using isif (ICL_LANGUAGE_CODE =='it') { $formcode = 4761; } elseif (ICL_LANGUAGE_CODE =='en') { $formcode = 5427; } if ( is_shop() || is_product_category() ) { echo do_shortcode( '[searchandfilter id="'.$formcode.'"]' ); } if ( is_shop() ) { do_action("search_filter_query_posts", $formcode); }
The shop has 14 products with size variations, and if in the IT version works fine (I see 14 items), in the EN shows all the variations.
If I disable Search & Filter Pro then it works fine again.Please help me to solve this problem.
Thank you.
-
AuthorPosts