Relationships
inRiver link types that are not part of the normal entity structure (i.e. excluding ChannelNodes and Product-Item-Resource model links) becomes either Bidirectional or Directional links in Litium Studio where appropriate.
This article explains how to create product relationships in Litium Studio using inRiver connector.
Default interpretation of inRiver link types
Following is the default interpreation of the link types which are not part of the normal entity structure.
- Links from inRiver Product entity to inRiver Product entity: Product to Product relationship in LItium Studio, where products are variant group products.
- Links from inRiver Product entity to inRiver ChannelNode entity: Product to Product Group relationship in LItium Studio.
- Links from inRiver ChannelNode to inRiver Product: Product Group to Product relationship in Litium Studio.
- Links from inRiver ChannelNode to inRiver ChannelNode: Product Group to Prodct Group relationship in Litium Studio.
- Links from inRiver item to inRiver product: Product to Product relationship in Litium Studio. Only valid when the inRiver item is actually a published product in Litium Studio, not a variant., and the inRiver product and inRiver item does not share the same ChannelNode parent (to avoid URL conflicts).
Relationship Name
By default the name of the relationship is the inRiver LinkTypeId used., you can rename the relationship name by using the "relationshipLinkTypeIdMapping" in Litium.Studio.AddOns.InRiver.dll.config file.
Relationship Direction
Unless specified in the connector settings, all relationships are treated as Bidirectional. You may specify the direction in connector settings (\\Program Files\inRiver AB\inRiver Connect\OutboundConnectors\Litium.Studio.AddOns.InRiver.dll.config) by putting the linkTypeId to the appropriate setting. Note that it is not mandatory to specify this for relationships to work, this only defines the relationship direction.
Following are the settings in the config file:
- directionalRelationshipsLinkTypeId: inRiver LinkTypeIds that should be exported as directional links in LitiumStudio. (e.g.: Litium Studio Product-Product links like accessories)
- biDirectionalRelationshipsLinkTypeIds: inRiver LinkTypeIds that should be exported as bi-directional links in LitiumStudio. (e.g.: Litium Studio Product-Product links like cross-sale, related products)
- crossMarketProductRelations: Set to true if the product relationships need to be created across markets (between assortments in Litium Studio).
Example: in Below example the inRiver model contains two link types with IDs Accessory and RelatedProducts. Both are Product-Product link types. The following setting makes the Accessory a directional relationship in Litium Studio and RelatedProducts bidirection (Cross sale).
<pluginSettings
...
directionalRelationshipsLinkTypeIds="Accessory"
biDirectionalRelationshipsLinkTypeIds="RelatedProducts"
crossMarketProductRelations="false"
...
>
</pluginSettings>
Relationships between assortments in Litium Studio
Normally relationships will not be created between assortments in Litium Studio. If you set the crossMarketProductRelations setting to true, relationships will be created across the assortment boundaries.
Relationship name translations
Relationship name translations are from the respective link name translations, makesure your inRiver model linktype translations are complete.