PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

The attribute slug is not translated in the URL when switching languages

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I am using the HUSKY Product Filter plugin (v3.3.6.1) on my WordPress site (v6.6.1) with WooCommerce (v8.8.5) and WPML Multilingual CMS (v4.6.12). When I select the filter EINBAUGRÖßE > 2-DIN in German, the URL is https://www.valtron.de/k/autoradios/f/einbaugroesse-2-din/. When I select the same filter HEAD UNIT SIZE > Double Din in English, the URL is https://www.valtron.de/en/c/car-stereos/f/einbaugroesse-double-din/ instead of https://www.valtron.de/en/c/car-stereos/f/head-unit-size-double-din/.

The attribute terms are translated correctly, but the attribute slug itself is not translated.

Hello

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  ftp+wp-admin access - https://share.pluginus.net/image/i20230222134615.png I will check it

 

Hello!

I've added all required data.

Hello

Everything works correctly.  The search query consists of an attribute slug  einbaugroesse  and a term slug  double-din. These are the values ​​by which the filter will search for products in the database.

in fact, your database does not have the head-unit-size attributes - https://share.pluginus.net/image/i20240726105838.png - and searching by head-unit-size attribute will always return 0 products

 

Hello

The term slug works correctly. It use 2-din slug in German version and its translation double-din in English version.

So, why does the filter use attribute slug  einbaugroesse in English version and not its translated version head-unit-size. The WPML team reported that the attribute and its terms were translated correctly. Also on WPML site says that WOOF WooCommerce Products Filter is fully compatible with WPML.

Hello

This is not really related to my plugin. I mean the principles of storing data in wordpress.

The term slug works correctly. It use 2-din slug in German version and its translation double-din in English version.  - yes of course! because WPML creates these term slugs in the database.  And in fact, products exist with such attributes. But unfortunately this is not the case for the taxonomy slug.

You can easily check this. Disable  my  plugin  and  try  these link

https://www.valtron.de/en/c/car-stereos/?pa_head-unit-size=double-din - the result is not correct

https://www.valtron.de/en/c/car-stereos/?pa_einbaugroesse=double-din - correct result

Please give me a link to the page where you edit the attribute slug

 

Yes, you are right. I've checked like you said and result is the same.

I'm translating attribute slug here: in menu WPML > String translation > Domain to translate: Wordpress

https://www.valtron.de/wp-admin/admin.php?page=wpml-string-translation%2Fmenu%2Fstring-translation.php&context=WordPress

Hello

Also pay attention to the links to attributes - https://share.pluginus.net/image/i20240729144614.png -  result - https://share.pluginus.net/image/i20240729144642.png

I can try to rework the filter links. This will simulate translation. But it will not solve the problems with attribute links.

Hello

I don't know what activates these attribute links. When I deactivate them. After some time they get activated again. If you know how to fix this, I would appreciate it.

What do you mean by the phrase"simulate translation"?

read this - https://products-filter.com/hook/woof_init_archive_by_default

What do you mean by the phrase"simulate translation"?  -  The filter will replace the slug in the search query (the URL you see) and during query processing will replace the slug with the original for a correct search.

 

read this - https://products-filter.com/hook/woof_init_archive_by_default

Thank you very much for this hook.

Now about replacing the slug. Can we implement the filter to see how it works? And if we implement this filter what about SEO will it works fine?

Hello

Can we implement the filter to see how it works? - Yes. Please do a test

And if we implement this filter what about SEO will it works fine? - Unfortunately, I don't know how this affects the site's SEO.

 

Hello

I've tested new implementation of filters and I don't know how you did it, but all works like a sharm. Filter SEO also works correctly.

Thank you))

Hello

Ok!  Great!

This will only work with SEO filter - https://share.pluginus.net/image/i20240801141010.png

This fix will be included in the new version of the plugin.