Forums › Forums › Search & Filter Pro › translated range filters are not working
- This topic has 6 replies, 2 voices, and was last updated 7 years, 3 months ago by
Anonymous.
-
Anonymous(Private) December 11, 2018 at 10:03 pm #196013
Hi,
I set up your plugin on a website that makes extensive use of ACF Pro and WPML. It works perfectly on everything, except oddly the range filters, that only work on the main language. I have a width and height range filter, both width and height are ACF custom fields, set to “translate”, but filtering only works on the main language. I have another custom filter that is not a range filter on the same page and it works everywhere with no issue.
Can you help with this?
Thank you for your help,
Alessio
Trevor(Private) December 14, 2018 at 3:10 pm #196391I wonder. All the data/terms in these fields are numerical, yes? So, WPML cannot translate them?
I wonder if you have these fields set to ‘Translatable – only show translated items’ (‘Traducibile: mostra solo gli elementi tradotti’), instead of ‘Translatable – use translation if available or fallback to default language’ (‘Traducibile: se disponibile, usa la traduzione, altrimenti lascia la lingua predefinita’)
My thought is that it does not translate the Italian version of these numbers, so they still show/work, but it tries to translate the numbers into English and fails, and shows nothing? Maybe?
Anonymous(Private) January 5, 2019 at 9:30 am #198100Hi,
sorry for my late reply and thank you for your answer. The fields are set to “copy”. I tried to set them to translate to see if they were copied correctly, and indeed they are, because if then I translate the product, the height width and length fields values are there already, meaning they have been copied already.
This issue looks more like a bug in the Search and Filter Pro plugin to me,
Thank you for your help,
Alessio
Trevor(Private) January 7, 2019 at 2:40 pm #198190One issue that I can see is that of the three forms (per language) you have two forms both set to using the WooCommerce method. You can only have one form. In your case, it is possible one form is overriding the other.
This means you can have only one form for WooCommerce. One form has just one field, and the other form has that same field, plus three other fields. This latter is the form you should retain. Where you use the smaller form now, change this to the larger form, and use custom CSS to hide the extra three fields. Each page in WordPress usually has classes attached to the body class that will allow you to target the CSS only to the page where you wan the form to appear with just one field.
-
AuthorPosts