Modifiers
Modifiers help augmenting properties of a variation of a product, price, etc., by creating an array of child products or prices. In each case you specify a modifier type
and its value
, which define how that property changes the variation option.
See Modifiers for conceptual details.
variations
are containers for options
which in turn are containers for modifiers
.
Modifier types
There's several types of modifiers, and each has a different effect on a property.
Modifier | Data Type | Effect |
|
| Overrides the name of the product with the name specified by the modifier. |
|
| Appends the string specified in the modifier to the product's name. |
|
| Prepends the string specified in the modifier to the product's name. |
|
| Overrides the description of the product. |
|
| Appends the string specified in the modifier to the product's description. |
|
| Prepends the string specified in the modifier to the product's description. |
|
| Sets the commodity type. |
| Increases the price of the product. | |
| Decreases the price of the product. | |
| Sets the price of the product. Cannot be further modified. | |
|
| Sets the slug of the product. |
|
| Appends the string specified in the modifier to the product's slug. |
|
| Prepends the string specified in the modifier to the product's slug. |
| Sets a part of the product's slug. | |
|
| Sets the SKU of the product. |
|
| Appends the string specified in the modifier to the product's SKU. |
|
| Prepends the string specified in the modifier to the product's SKU. |
| Sets a part of the product's SKU. | |
|
| Sets the status of the product. |
Seek/set modifier type
Using the {SKU}
and {SLUG}
builder modifiers, you are able to systematically build child products and replace the preconfigured objects with your product variation options. For example, you can set {COLOR}
and {SIZE}
modifiers and define these in the master product details.
Let's say we set up a variation modifier of 'RED' for {COLOR}
and 'MEDIUM' for {SIZE}
, a SKU of [BASIC-SHIRT-{SIZE}-{COLOR}]
would become [BASIC-SHIRT-MEDIUM-RED]
.
For more details how to achieve the same results via the API, see article: Product SKU/Slug Builder Modifiers.
Price modifiers objects
Attribute | Type | Description |
|
| The unique identifier for this product |
|
| Represents the type of object (should be |
|
|
|
|
| Value of the price modifier |
|
| Currency of this price modifier (3 letter ISO) |
|
|
|
SKU/Slug builder modifiers
Attribute | Type | Description |
|
| The unique identifier for this product |
|
| Represents the type of object (should be |
|
|
|
|
| A search string for the find / replace |
|
| Replacement string |
Field override modifiers
Attribute | Type | Description |
|
| The unique identifier for this product |
|
| Represents the type of object (should be |
|
|
|
|
| A string to be used in place of the product property |
Last updated