PIMinRiver

inRiver

Retrieve Product Visibility Based on inRiver Data

Products visibility is managed in the ERP system and by default the inRiver add-on does not override the products visibility, meaning that all visible in the ERP system products are imported to the Sana web store, no matter whether these products are present in inRiver or not. However, there are two settings in inRiver which allow to control products visibility directly in inRiver. If one of these settings is used, then the products visibility from the ERP system will be ignored, instead products visible in inRiver will be shown in the Sana web store.

There are two ways of how you can manage products visibility in inRiver:

  • Visibility of a product based on a channel
  • Visibility of a product based on a Product Model field of a Boolean type

Visibility based on channel

All products which belong to the channel will be available in the Sana web store. To set up visibility of products based on the channel you need:

Step 1: Log in to the inRiver Enrichment Portal and open a channel you want to use for visibility check. You will need the entity Id of this channel from the URL to create a server setting.

Step 2: Go to the Settings in the inRiver Control Center. Create the SANA_VISIBILITY_CHANNEL_ID server setting and in the Value field enter the entity Id of the channel.

Step 3: 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. Then, refresh the site cache.

Visibility based on the Product Model field

Using a field of a Boolean type from inRiver Product Model you can set visibility for each product separately for the Sana web store.

Step 1: Open the inRiver Product Model and in the Fields section find a field of a Boolean type or create a new one. You will need the Field Type Id of this field to create a server setting, which is ProductVisibility in this case.

Step 2: Go to the Settings in the InRiver Control Center and create the SANA_VISIBILITY_PRODUCT_FIELD_NAME server setting. In the value of this server setting enter the value of the Field Type Id.

The server setting should look in the following way: the key is SANA_VISIBILITY_PRODUCT_FIELD_NAME and the value is ProductVisibility.

Step 3: 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. Then, refresh the site cache.

 NOTE

Visibility of products based on the channel has higher priority than the visibility based on the Product Model field. Thus, if you create both settings in inRiver, then only products from the channel will be available in the Sana web store.

 

Strict mode

In case you do not use the visibility settings in inRiver, then all visible in your ERP system products will be available in the Sana web store and there is a possibility that not all ERP products are present in inRiver. If you need to hide the products which do not exist in inRiver, then you should use a strict mode.

To enable the strict mode, go to the Settings in the inRiver Control Center and create the SANA_VISIBILITY_STRICT server setting with the value true.

This server setting will ensure that the products from your ERP system which do not exist in inRiver will not be shown in the Sana web store.

PIMinRiver