WooCommerce+WPML

Forums › Forums › Search & Filter Pro › WooCommerce+WPML

Tagged: 

  • This topic has 23 replies, 3 voices, and was last updated 6 years ago by Ross.
Viewing 10 posts – 1 through 10 (of 24 total)
  • Anonymous
    #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 is

    
    if (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.

    Trevor
    #266273
    This reply has been marked as private.
    Anonymous
    #266289
    This reply has been marked as private.
    Trevor
    #266306
    This reply has been marked as private.
    Anonymous
    #266332

    I am using the code as described in my first post, in the theme’s woocommerce.php page.
    And it worked just fine in the IT version.
    Do you need a FTP account as well?

    Trevor
    #266394

    Can I try and make a simple test form and page (one of each for each language) that doesn’t use your templates?

    Anonymous
    #266402

    Sure, this installation is just for testing, and it’s a clone of the main site.

    Trevor
    #266546
    This reply has been marked as private.
    Anonymous
    #266581
    This reply has been marked as private.
    Anonymous
    #266587
    This reply has been marked as private.
Viewing 10 posts – 1 through 10 (of 24 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.