• Resolved MB Creation

    (@mbcreation)


    Hi,

    First i would like to thank you for that amazing plugin.
    Worked immediately on my WooCommerce store ??
    I actually have just one question
    This is both french / english and for now i use a ugly css hack to hide the non-current language results.
    Is there any filter/hook so i can “force / preset” a taxonomy paramater (ie the language) ?

    Thanks for your time.

    Benoit.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor rayrutjes

    (@rayrutjes)

    Hey there,

    Sorry about the delay,

    What plugin are you using to handle languages?

    • This reply was modified 7 years, 2 months ago by rayrutjes.
    Thread Starter MB Creation

    (@mbcreation)

    Polylang. It uses native taxonomy system. And the data is indexed in my algolia dashboard (i can see, select half of my posts in francais, and the other half in english) (language taxonomy filter)

    • This reply was modified 7 years, 2 months ago by MB Creation.
    Plugin Contributor rayrutjes

    (@rayrutjes)

    Do you mind granting us access to your data in read mode, and send us over your appID at [email protected].
    I need to see the records you have so far to be able to guide you.

    Hi,

    I have the same problem. Do you have any solutions for this issue?

    Thanks!

    • This reply was modified 6 years, 11 months ago by d15327.
    Plugin Contributor rayrutjes

    (@rayrutjes)

    @mbcreation, would you like to share your solution?

    Did you register the language as a facet and filter on it by customizing the instantsearch.php and autocomplete.php templates?

    I fixed it with a conditional filter like this:

    
    <?php
      if(get_locale() == 'nl_NL'){
        echo "filters: 'taxonomies.language:Nederlands AND NOT taxonomies.language:English'";
      }else{
        echo "filters: 'taxonomies.language:English AND NOT taxonomies.language:Nederlands'";
      }
    
    ?>

    Can you explain where did you put your conditionnal filter please ?

    Thanks !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Forcing / Modifiying request for multi-language’ is closed to new replies.