Skip to content

Support for product level attributes #597

@silkentrance

Description

@silkentrance

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions