Home Forums WoodMart support forum Show single variation on shop / category page

Show single variation on shop / category page

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

    scholtobos
    Participant

    Hi,

    I selected these in the Theme settings: https://www.awesomescreenshot.com/image/58632395?key=5aa66f26f7ee178eb4b4ca8683ef9a6c

    It works fine, expect for that variations are shown in alfabetical order on the shopping and category pages. Is it possible to provide me a snippet to show them in custom order of my attributes?

    Kind regards,

    #707203

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Currently, there is no built-in option in the theme to change the order of variations based on your custom attribute order.

    Implementing this would require custom coding, which is beyond the scope of our standard support.

    Navigate to Appearance > Customize > WooCommerce > Product Catalog > Sorting Options and select the sorting method you prefer. https://ibb.co/CK9TQdd

    Best Regards,

    #707257

    scholtobos
    Participant

    Dear Aizaz,

    Thank you for your response — I understand your point in general.
    In this specific case, however, I was hoping this functionality might already be supported by Woodmart.

    WordPress itself provides a native way to define a custom order for attributes, for example to control the display order of variations on a product page. That’s why I was a bit surprised that this wouldn’t be possible here.

    If this is not supported out of the box, could you perhaps point me in the right direction regarding a snippet I could add to functions.php to either:

    1. respect the custom order defined for attributes, or
    2. use the attribute slug order instead of the attribute name (so I could, for example, rename the slugs to something likea-red, b-blue, c-purple).

    Any guidance would be greatly appreciated.

    Kind regards,
    Scholto

    • This reply was modified 5 months ago by scholtobos.
    #707316

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    Currently, WoodMart does not provide built-in support to reorder variations on shop or category pages according to the custom attribute order set in WordPress.

    Such modification requires complicated WooCommerce code customization, which is not covered by our support.

    Hope you can understand!

    Best Regards,

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