What happened?
Custom radio button values do not appear in the variant list or dynamic variant titles.
Steps to reproduce
- Create a field to be added to a product’s variants (call it 'myField'), set the field type to radio.
- Add an option with the label 'One' and the value '1'.
- Enable 'Allow custom options'
- Create a new product type (call it 'myProductType')
- Under settings for myProductType set the variant title to be '{product.title} - {myField}'
- Add myField to myProductType’s Variant Fields tab
- Create a new product using myProductType (call it 'myProduct')
- Create a variant of myProduct selecting 'One' as a the value of myField.
- Create a second variant of myProduct creating a custom value of 'Two' for myField (Note: there’s no way to set the value, only the label can be set)
- Order the variants as a list, use the View dropdown to show myField
- The first variant will have a title of "myProduct - 1" and the myField value of "One" (this is as expected)
- The second variant will have a title of "myProduct - Two" and the myField value will be blank.
Expected behavior
Custom radio options should behave identically to pre-defined radio options.
Actual behavior
Dynamic variant titles use the label, not the value of a custom radio (unlike pre-defined radios) and neither custom radio labels nor values appear in the variant list.
Craft CMS version
Craft Pro 5.5.10
Craft Commerce version
5.2.11
PHP version
8.2.24
Operating system and version
Linux 6.5.11-linuxkit
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
CKEditor 4.4.0
Retcon 3.2.1
Retour 5.0.5
What happened?
Custom radio button values do not appear in the variant list or dynamic variant titles.
Steps to reproduce
Expected behavior
Custom radio options should behave identically to pre-defined radio options.
Actual behavior
Dynamic variant titles use the label, not the value of a custom radio (unlike pre-defined radios) and neither custom radio labels nor values appear in the variant list.
Craft CMS version
Craft Pro 5.5.10
Craft Commerce version
5.2.11
PHP version
8.2.24
Operating system and version
Linux 6.5.11-linuxkit
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
CKEditor 4.4.0
Retcon 3.2.1
Retour 5.0.5