Home Forums WoodMart support forum Variation selection won’t work

Variation selection won’t work

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #596260

    desklite1
    Participant

    Hello! Pretty urgent:
    So if an attribute name is in Greek – like “Χρώμα” (Color) it is handled by WooCommerce in its encoded form in most places – including when it is used as the id of the <select> element. So the select will appear like this:
    <select id=”pa_%cf%87%cf%81%cf%8e%ce%bc%ce%b1″>…… instead of <select id=”pa_χρώμα”>……

    In the console, there is an error produced and the variation selection does not work – since two of the theme scripts try to perform this selection when a user attempts to select a color: $(‘select#’ + t) where t is the id value. The console error explains that the selector is invalid.

    Suggestion: Passing the id (t variable), in the two(?) scripts where it is used, through CSS.escape like so:
    $(‘select#’ + CSS.escape(t)). I believe it is a 100% valid solution.

    Please try to keep this in a high priority since it’s obviously very crucial and prevents the new version of an eShop with lots of traffic from being launched. It affects single product page and product grids.

    Thank you in advance!
    Spiros

    • This topic was modified 3 weeks, 3 days ago by desklite1.
    #596354

    Artem Temos
    Keymaster

    Hello,

    You can fix it by applying patch # 596352. To do this, go to Dashboard -> WoodMart -> Patcher, find the corresponding patch and click on the “Apply” button. Let us know if it works for you.

    Kind Regards

    #596492

    desklite1
    Participant

    Hello,
    it did work. Thank you very much!

    #596600

    Artem Temos
    Keymaster

    Great, you are welcome!

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

The topic ‘Variation selection won’t work’ is closed to new replies.