-
-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
There is a new feature in CommerceTools product types that lets you create either variant level or product level attributes. The new feature has been documented here.
So basically, what this would do, is add a level parameter to the attribute as described here.
resource "commercetools_product_type" "standard-product-type" {
# ...
attribute {
name = "product_attr"
level = "Product" # or Variant
constraint = "None" # default for Product level attributes
# ...
}
# ...
}
Important to know is that the attribute constraint for product level attributes is always None, as it is not required.
See also labd/commercetools-go-sdk#125 for the required change to the commercetools-go-sdk.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request