[Drupal] Changing cardinality of commerce product attribute field

vrijdag 12 februari 2021 - 53 woorden, 1 min read

Change the number of accepted values of a commerce product attribute.

This blog is a note to myself. I was looking to change the cardinality of Drupal Commerce attribute field in in the configuration code. It is missing in the user interface of the CMS.

I’ve found it in the file field.storage.commerce_product_variation.attribute_<your_field_name>.yml

Change cardinality: 1 to cardinality: -1 to set the options to unlimited.


Sebastian Hagens @Sebastix
I work as creative webdeveloper & tech consultant and care about digital freedoms. Follow me:
or visit my contact page