Dynamic attributes

The dynamic attribute is an attribute that can return values depending on particular conditions or the value of other attributes.

To create a new dynamic attribute, follow these steps:

  1. Go to Product → Advanced Product Feeds → Dynamic Attributes. Press the button Add Attribute.
  2. Fill in the following fields:

    • Name - name of the dynamic attribute
    • Code - code of the dynamic attribute. You will see this code when you select the dynamic attribute in the templates.
    • Set conditions:
      • Press "Add "OR" condition"
      • Press "Add "AND" condition"
      • Select attribute on the left corner
      • Select condition
      • Select or input condition value
      • Select Output Type
      • Select attribute or input pattern - when the condition is true, the dynamic attribute will return this value.
    • Press the button Save. To set a default value, leave the Conditions column without conditions.

    Example

  • Name: Additional Stock Status
  • Code: stock_status

Conditions: image

Usage:

XML templates: {{ product.dynamic:stock_status }}

CSV templates: find your dynamic attribute in the dropdown list, dynamic attribute section: image

Output:

image