• Resolved damian96

    (@damian96)


    Hello,

    I use WPML and Woocommrce Mutlilingual, I have debugged locally the term count, also run the wp term recount pa_colour command with the wp-cli on the server, but still I can’t get the count to show the correct number.

    Even though the filters are working correctly, the count is wrong.

    Steps to reproduce: * just add a woocommerce attribute of colour to a product and try searching it in a custom search page.

    Thanks, Damianos

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @damian96

    Thank you for your interest in the Filter Everything plugin.

    The AWS search plugin uses its own search algorithms that are currently not compatible with the filtering. You can use the Woo search widget to search products. But our development team has plans to add this compatibility with future updates.

    Best Regards – Victor

    Thread Starter damian96

    (@damian96)

    Hi Victor,

    I managed to remove the AWS search algorithm, by removing the GET type_aws parameter, using the below hook:

    add_filter('aws_searchbox_markup', 'add_type_aws_hidden_field', 10, 2);
    function add_type_aws_hidden_field($markup, $params)
    {
      $hidden_field = '<input type="hidden" name="type_aws" value="true">';
    
      $markup = str_replace($hidden_field, '', $markup);
    
      return $markup;
    }

    Now, I wish to make the search results page work with WPML.
    e.g. /?s=92&post_type=product&lang=en&product_colour=black
    would be translated to /?s=92&post_type=product&lang=en&product_colour=<german_product_colour_slug>, and of course the filters too.

    Is this possible with the free version, or is it included in the PRO Version of Filter Everything?

    Best regards,
    Damianos

    Plugin Support fesupportteam

    (@fesupportteam)

    Hi @damian96

    If you have translated attributes for each language then it should work and display different attribute names for each language. Also, you might want to check this documentation page – https://filtereverything.pro/resources/with-wpml-polylang/

    Best Regards – Victor

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.