Forums Forums Search & Filter Pro Sometimes selected item dissapears / shows wrong item

Viewing 9 posts - 1 through 9 (of 9 total)
  • Anonymous
    #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
    Felix

    Anonymous
    #183448
    This reply has been marked as private.
    Trevor
    #183460

    I am wondering if WPML and Search & Filter are correctly setup?

    https://searchandfilter.com/documentation/3rd-party/wpml/

    That might be the problem.

    Anonymous
    #183464

    Thanks for the hint. I had just the basic installation without adjusting it yet. So I deactivated the whole wpml plugins but the problem is still there…

    Do you have another idea? Thanks so far!

    Trevor
    #183474

    I 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
    #183596

    Hi 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.

    Trevor
    #183599
    This reply has been marked as private.
    Anonymous
    #183674
    This reply has been marked as private.
    Anonymous
    #184239

    Hey there! I found a way to create the SKU’s via a self written php script. It seems to work now as I use the normal terms, so you can close this!

    Thank you again for your help!

Viewing 9 posts - 1 through 9 (of 9 total)