Add-ons and ModulesProduct Import

Product Import

Sana Commerce 8.3
Your provider

Configure Product Import for NAV

The product import functionality uses the Sana Commerce task scheduler. You can read more about it in this chapter.
The configuration of the product import task can be found in the 'sanaCommerce' configuration section of the backoffice 'web.config' file.
 
To configure the product import task:

Step 1: Open the backoffice 'web.config' file.

Step 2: Locate the 'sanaCommerce' configuration section.

Step 3: Locate the 'tasks' subsection:

<task name="ProductImport"
       type="Sana.Commerce.Tasks.Import.ProductImportTask, Sana.Commerce.Tasks.Interfaces"
       time="13:33"
       enabled="true"
       sourceCustomerProviderId = "NavisionFashionCustomerProvider"
       sourceCatalogProviderId = "NavisionFashionCatalogProvider"
       destinationWebsiteCode = "B2xSql"
       sourceWebsiteCode = "B2xNav2009Standard"
       importOnlyModified="true"
       batchSize="10"
       allowManualStart="true"
   sortNumber="1"/>

Step 4: Check the following configuration nodes and change them if needed:

time/interval: the daily time or period (in seconds) when the 'Product Import' task should be performed;
For more information read this chapter.
sourceCustomerProviderId: Identifier of the Customer provider, which is used to get a B2C Template Customer from NAV. It is selected from the 'Sana Commerce - Modules' configuration section of the web.config;
sourceCatalogProviderId: Identifier of the Catalog provider, which is used as the source for the product data. It is selected from the 'Sana Commerce - Modules' configuration section of the web.config;
destinationWebsiteCode:  the code of the webshop where the products will be imported for. It is selected from the 'Sana Commerce - Sites' configuration section of the web.config;
sourceWebsitecode: the webshop from which the product import will be performed. It is selected from the 'Sana Commerce - Sites' configuration section of the 'web.config' file;
importOnlyModified: when this parameter is set to 'true' the product import task will import only the products which have been modified since the last time of successful product import.  Otherwise all visible products will be imported. 'true' is the default value;
batchSize: the quantity of products which are handled in one batch;
allowManualStart: this parameter is 'true' by default and it specifies that the task can be started manually in the backoffice;
sortNumber: the sort order in which the scheduled tasks are arranged in the backoffice.

All configuration nodes are required parameters and should be filled in.
 
Add-ons and ModulesProduct Import