Developer forum

Forum » Swift » Variant dropdown and default value

Variant dropdown and default value

Suzi Louring
Reply

Hi Swift team,

Thank you for the new product variant selector :)

DW: 9.15.2, Swift: 1.19.0

How can I insert a default value for variant dropdowns?

http://skabertrang.swift.dynamicweb-cms.com/swift-b2c-demo-shop/clothing/jerseys/terry-velocity-short-sleeve-jersey

Here the default selected size is XS, but if that's the one I want to buy, I have to choose another size first and then choose XS.

It would be great if there was an option to insert a "nothing selected", just like you get extra options when you select the "Button".


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You need to set the default variant on the product.

But that detail looks like a bug - maybe related to using dropdown with image.

Send to QA

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You need to set the default variant on the product.

But that detail looks like a bug - maybe related to using dropdown with image.

Send to QA

 
Suzi Louring
Reply

Thank you, Nicolai :)

/Suzi

 
Merethe Vrå Andersen Dynamicweb Employee
Merethe Vrå Andersen
Reply

Hi,

I have created a bug to get a "Not selected" in dropdowns when no default variant on the product.

Bug 12480

/Merethe

 
Suzi Louring
Reply

Thanks :)

It now works with the default variant, from the productlist:
http://skabertrang.swift.dynamicweb-cms.com/swift-b2c-demo-shop/clothing/jerseys

But if I search for the product, I don't get my default variant, so that would be great if that could be fixed :)

And hey, I wrote at 14:49 and at 15:28 the bug was created - wuhuu, quick response :)

 

You must be logged in to post in the forum