Home Forums WoodMart support forum Multiply labels for one product attribute with multi option selection.

Multiply labels for one product attribute with multi option selection.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #720079

    Mikhail
    Participant

    Hello.

    Items on my site have multiply selection for one attribute.

    For example: work clothes with different protective properties like water-resistance, acid resistance, etc.

    And for all of this attributes by multi-selection I want to put all of this labels on product photo, but now I can see only one random of those.

    Attachments:
    You must be logged in to view attached files.
    #720083

    Mikhail
    Participant

    And I have one another problem with those labels’ tooltips.
    The problem is with not english symbols in name of value of attribute.
    I think it’s better to use value from description, but now it’s uses value from “slug” – shortcut.

    Attachments:
    You must be logged in to view attached files.
    #720126

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    01. I have checked this on a test site and the same behavior is occurring.

    When multiple values are assigned to a single attribute, the theme is only able to display one label on the product image. In this case, it takes the last assigned attribute value based on the order in Product > Attributes (for example, if “Water Resistance” is first and “Acid Resistance” is second, it will show “Acid Resistance”).

    02. I have checked this on a test site, and the tooltip is currently generated from the attribute slug, not from the name or description. So I have checked your product, and it is showing an English character slug.

    Best Regards

    #720226

    Mikhail
    Participant

    1. How can I change this behaviour on my site? May it be in new versions?

    2. Unicode characters from this attribute cannot be displayed. Maybe you make patch for correct showing unicode characters from this attribute?
    How can I change this behaviour on my site and make tooltip from another attribute ?

    #720242

    Mikhail
    Participant

    1. After applying new patch it’s working fine!
    2. It’s still not good with cyrillic symbols

    Attachments:
    You must be logged in to view attached files.
    #720269

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    I have checked your site, and it is showing fine.

    See Screenshot for clarification: https://postimg.cc/9RzJHN8n

    Best Regards

    #720344

    Mikhail
    Participant

    It’s english text on your example, but with cyrillic symbols it’s not working in any browser 🙁

    Attachments:
    You must be logged in to view attached files.
    #720383

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    I have checked your site and can confirm the issue with Cyrillic characters. Currently, the tooltip content is generated from the attribute slug, and it appears that non-Latin characters in the slug are not handled correctly in this functionality.

    Please note that the attribute slugs on your website are using non-Latin (Cyrillic) characters. By default, WooCommerce slugs are intended to use Latin characters only, and using non-Latin characters may lead to unexpected behavior in various features, including tooltips.

    As a workaround, please edit the attribute terms and use Latin characters for the slugs.After updating the slugs to Latin characters, please check the tooltip functionality again.

    Best Regards

    #720490

    Mikhail
    Participant

    Ok I understand.

    May you add in future in newer version of woodmart an ability for choosing which attribute used for this tooltip?

    Or add patch for decoding this string for displaying in tooltip?

    For decoding this text it’s needed to use urldecode php or decodeURI js function.

    Attachments:
    You must be logged in to view attached files.
    #720543

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    We understand the requirement to improve tooltip handling for multilingual (including Cyrillic) attribute values. At the moment, WoodMart uses the attribute slug for generating tooltips, which is expected to be in Latin characters as per WooCommerce standard.

    For any feature request, you can create a feature request here – https://woodmart.userjot.com/ so our developers can take it into account.

    Best Regards,

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