The direction of the relation. This can either be; Unidirectional; one-way relation. For example 'parent-child' or 'replaced by' Bidirectional; two-way relation. For example 'maybe your also intrested in' or 'others also bought' Group; collective relation which allows for many products as part of a group. For example 'all products that are blue' or 'all products from summer-2022'. This type does not accept a StockRelationType.
This is the primary name the relation. For example; if primary name is 'Blocks', the secondary name could be something in the lines of 'Blocked by'.
Only available when Direction is set to Group
.
Only available when Direction is set to Group
.
This is the secondary name the relation. For example; if primary name is 'Blocks', the secondary name could be something in the lines of 'Blocked by'.
Indicates which stock relation type the relation has. In most cases this will be 'None'. The following options are available:
None; No stock relation
Replacing; When the PrimaryProduct is no longer in stock, the system can automaticly use the RelatedProduct as it's replacement (or vice versa if Direction
is set to Bidirectional
).
Create a new ProductRelationType.