I'm using Drupal Commerce 8.x-2.x on Drupal 9.5.x. I need to restrict a particular product attribute to certain regions (regions selected via an attribute). My thinking is that the region is selected via an attribute; I can't see another way to do it for my means.

In my use case, regions are not location based geographical regions; they are locally defined regions, so I can't see a way other than attributes to define this.

So, for example, in attribute Region | Region A, only attributes Product Type | Types A and C are available, but in attribute Region | Region B, attributes Product Type | Types B and C are available.

How do I make the availability of attributes conditional upon other attributes?

Core components > Conditions is a start, but only works for payment gateways and promotions.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.