So I have a lot of options with a bunch of different variants for my products. How can I select which option is selected by default? To give more context, each option is similar to Color or Package Deals. They have different options to create a bunch of different variants, I need to have certain options selected on load rather than random. I would also love it if there was a way to set which options come first, so I could have them ordered correctly, I currently order them on the frontend which isn't great practice and may not work perfectly in the future.
#Is there a way to select which product option is selected by default?
4 messages · Page 1 of 1 (latest)
There is no such thing I believe. you can implement on the frontend
http://localhost:9000/store/products?expand=variants will return the variants in an object and based on the variant_rank you can display/preselect them, bit of coding but is what I see now
see docs
Ah thank you, I appreciate it, I did see they have variant rank but can't find a way to actually modify that rank lol. Unfortunately this doesn't work if you have different options for different products. I need the product page to be reusable
@summer pewter if you go to the product in admin and click on edit variants you can reorder them and this will be represented in the rank