Conversation
supportHi. I have a use case where we have 4 different attributes for variations. Sometimes when the user for instance does a selection from the first attribute and then from the next attribute, there is only one selection possible in the 3rd and 4th attribute. What we would like to do is to auto select the available attirbutes if there are no other options available. I have a use case with four different variation attributes. In some situations, when the user selects a value for the first attribute and then the second, there is only one available option left for the third and fourth attributes. What we would like to do is automatically select an attribute value when there is only one available option. Example: Select color: red, blue Select size: small, large Select dimension: 1, 2 (out of stock), 3 (out of stock) In this case, we would like option 1 to be automatically selected, since options 2 and 3 are out of stock. Select length: 5m, 10m (out of stock), 15m (out of stock) Same here: since 5m is the only available option, we would like it to be auto-selected. Is this possible?
Hi @optiflow , Thanks for explaining your use case so clearly — that really helps. At the moment, we don’t have an option to automatically select remaining variation attributes when only one value is available. The attribute selection behavior works the same way as default WooCommerce variations. Variation Swatches simply replace the default WooCommerce dropdowns with swatches (buttons, images, labels, etc.), but the underlying variation logic — including how and when attributes are selected — is still handled by WooCommerce itself. Please let me know if you have any other questions or need help with your setup.
Hi @optiflow , Thanks for explaining your use case so clearly — that really helps. At the moment, we don’t have an option to automatically select remaining variation attributes when only one value is available. The attribute selection behavior works the same way as default WooCommerce variations. Variation Swatches simply replace the default WooCommerce dropdowns with swatches (buttons, images, labels, etc.), but the underlying variation logic — including how and when attributes are selected — is still handled by WooCommerce itself. Please let me know if you have any other questions or need help with your setup.