Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author RealMag777

    (@realmag777)

    Just now WPML only ..

    Thread Starter herWALDI

    (@herwaldi)

    1. Open file select.php (wp-content/plugins/woocommerce-products-filter/views/html_types)

    2. Search code

    <select class="woof_select woof_select_<?php echo $tax_slug ?>" name="<?php echo $tax_slug ?>">
        <option value="0"><?php echo WOOF_HELPER::wpml_translate($taxonomy_info) ?></option>

    3. Replace code:

    <select class="woof_select woof_select_<?php echo $tax_slug ?>" name="<?php echo $tax_slug ?>">
        <option value="0"><?php echo pll__('woof_select_'. $tax_slug .''); ?></option>

    4. Open functions.php themes, add line:

    pll_register_string('Materiał', 'woof_select_pa_material', 'Filtrowanie', $multiline);

    Done 🙂

    Plugin Author RealMag777

    (@realmag777)

    If its really works, thanks 😉 I will keep this link for such question …

    Hi Guys,
    I’ve tried this code with no success.
    It doesn’t make any difference with or without theses new lines.
    Maybe I’m doing something wrong…
    In the functions.php file I need to add as many lines as I have attributes is that correct ?
    And it should be used like this :
    pll_register_string('[My attribute name n°1]', 'woof_select_pa_[My attribute slug n°1]', '[My attribute name translated]', $multiline);
    Is that correct ?

    Anyway, with or without these new lines of code, here’s my issue.
    I use Polylang plus a plugin called Woocommerce Plugin Integration :
    https://wordpress.org/plugins/woocommerce-polylang-integration/

    I use your plugin with shortcodes on my pages to display the filters and the products list.
    It works fine with the default language : english.

    With the secondary language (French), when I load the page for the first time (or when I put the desired filters as parameters of the url) I have both the products and the filters in french with the good number of products displayed in the filters area. It works very well.
    But as soon as I click on any filter, the plugin reload the page with the default language for the filters (English) and the secondary language for the products (French).
    It results in having the entire list of products in french in the main area and in the filters area, I have english filters that I can’t use because they are all with zero match.

    Can you help me on this one ?

    Its the last think that stops me from buying the pro version of your plugin.
    (and I don’t want to use WPML as it makes my website very slow)

    Plugin Author RealMag777

    (@realmag777)

    @lyonbeton

    I met such situation with polylang plugin and what I can say – they are absolutely incompatible – a lot of errors. Sorry, but I have no plans for adapting for this just now …

    Ok, thank you for your honesty.
    2 options now for me:
    – go back to WPML which is better supported by a lot of plugins out there and have a slower site
    – keep Polylang to have a faster website and sacrifice some functionalities

    Don’t know what to do yet…

    Plugin Author RealMag777

    (@realmag777)

    Hello

    Try use Polylang, and if you will meet troubles again – use WPML+cache plugins – you have shop – which have minimum interaction with user – so cache plugin will resolve a lot of troubles with performance …

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Attribute translate polylang?’ is closed to new replies.