• hey,

    I am wondering how I can control the order of product attributes on the front end.

    For example, I have three attributes: Price, Color and Size. How can I control which of these attribute appears first?

    I guess, I need to alter the woocommerce_attribute hook (https://hookr.io/filters/woocommerce_attribute/).

    Anybody here who can help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @ioicut ,

    To reorder the attributes, you can drag and drop them from the product data area. See this GIF for reference: https://d.pr/i/TPKzGy

    If you have global attributes on your site, then you can go to WP-Admin > Products > Attributes, set the “Default Sort Order” to custom ordering and then drag and drop the attributes on that page to reorder them.

    I hope this helps!

    Thread Starter ioicut

    (@ioicut)

    Thanks for your answer!

    Thanks for the gif. Yes, this is basically what I want. But I have hundreds of products. So I don’t want to do it by hand, but programmatically. That is why I refered to the hook.

    Is there another way to do it in bulk? Can you point me in the right direction?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Control the order of product attributes on front end’ is closed to new replies.