PIMinRiver

inRiver

Retrieve Product Variant Images from inRiver

 NOTE

In some cases product images cannot be retrieved directly from inRiver, for example due to the inRiver API or network limitations. Nevertheless, there is a possibility to retrieve product images using an external file storage. For more information, see "Retrieve Files from External File Storage".

Sana supports the following image file formats: png, bmp, gif, jpg, jpeg. In inRiver all images are considered as the Resource target entity type. The Resource entity type represents a file. You can fetch product resources (files) from inRiver and transfer them to Sana.

You need to create item-to-resource relations in inRiver and then create a server setting.

Step 1: To find the necessary relation in inRiver, open the inRiver Item Model. On the right side of the page you will see 2 sections: Included in and Includes. You need to click on Includes to see the list of relations, because the item-to-resource relation is the parent-to-child relation.

Step 2: You can create a new relation or use the already existing relations. If you create a new relation, the target entity type of this relation must be Resource. Since the resource entity type links to the Item Model in inRiver, such relation is considered as item-to-resource in inRiver and is used for the Sana product variant images.

On the screenshot below you can see a relation with the Resource target entity type. You need the Link Type Id of the relation you are going to use. Link Type Id is necessary to create a server setting. You can use one or several relations to create a server string.

For example, you want to transfer the Resources relation to Sana. Then you need the Link Type Id of this relation, which is: ItemResource.

Step 3: Create the server setting for the item-to-resource relations. Go to the Settings in the inRiver Control Center and create the SANA_VARIANTIMAGES_RELATIONS server setting. In the value of this server setting enter the Link Type Id.

The server setting should look in the following way: the key is SANA_VARIANTIMAGES_RELATIONS and the value is ItemResource.

Step 4: When the server setting is created, you need to rebuild the product index. Open Sana Admin and click: Tools > Scheduled tasks. Run Rebuild index for the Product import task. When the Product import task is completed, start the Product image import task. Make sure that the setting Import product images from ERP is enabled for the Product image import task.

If images are added to the product variants in the inRiver Enrichment Portal, then product variant images from inRiver will be available in the Sana web store.

PIMinRiver