Forums › Forums › Search & Filter Pro › Sometimes selected item dissapears / shows wrong item
Tagged: filter, woocommerce
- This topic has 8 replies, 2 voices, and was last updated 6 years, 3 months ago by Anonymous.
-
Anonymous(Private) July 25, 2018 at 1:41 pm #183447
Hey,
I’m facing another problem with my woocommerce store (https://dev.kant-druckschalter.de/druckschalter/) and the Filter. It looks like it works okey, but then some strange things come up. For example:1)When you select the item “2 – 20 bar” in “Einstellbereich” it shows correctly
?_sft_pa_einstellbereich-bar=20
in the url and the wright product (also the counting is ok). But after the ajax loading the selected item is dissapeared…2) When u select “10 – 100 mbar” it shows the correct url and the right product but marks “10 – 100 bar” as current selection (instead of mbar) …
And yes I am using “0100” or “100” or “10” etc. as slugs/terms but they are still unique.
In most of the other tested cases is seems to work fine. Could you please help me?
Cheers
FelixTrevor(Private) July 25, 2018 at 1:50 pm #183460I am wondering if WPML and Search & Filter are correctly setup?
https://searchandfilter.com/documentation/3rd-party/wpml/
That might be the problem.
Trevor(Private) July 25, 2018 at 2:45 pm #183474I think it is because you are storing the data as a taxonomy. If you use a plugin like ACF, then, if you make the correct type of field, you can have a stored value and different label. In a taxonomy, the stored value and label must be derived from each other.
I suspect that is the issue.
When to use a taxonomy and when to use a Custom Field when the data is a single textual value?
The question is answered by if the URL would make sense as a taxonomy. In your case, the value 20 has no sense or meaning in a URL, so it should be a custom field.
Anonymous(Private) July 26, 2018 at 2:37 pm #183596Hi Trevor, the point is, my customer needs a special SKU which is generated from those numbers (like “100”, “10”, “20” and so on). Atm I don’t know how to solve this with ACF… I gave it a try and I agree, that it would be the nicer solution but I could get the SKU’s as they should be. I’m using a plugin which grabs the slug from the attributes an puts them together to the desired results. So this worked fine but then the Filter stoppt working correctly.
-
AuthorPosts