#Is there a way to select which product option is selected by default?

4 messages · Page 1 of 1 (latest)

summer pewter
#

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.

wind shale
#

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

REST API reference for the Medusa store API. This reference includes code snippets and examples for Medusa JS Client and cURL.

summer pewter
wind shale
#

@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