Add-ons and ModulesOrder Export

Order Export

Sana Commerce 8.1
Your provider

Configure Order Export for NAV

Prepare Dynamics NAV to receive orders

Before the order export process can be performed, you should configure the order import on the NAV side:

Step 1: Open the NAV client.

Step 2: Select the 'Departments -> Webshop' navigation menu item on the left.

Step 3: Open the 'Webshop Card' window.

Step 4: Select the 'Import/Export' tab:


The 'Import/Export' Tab on the 'Webshop Card' Window

Step 5: Fill in all the fields in the 'Import/Export' tab. The data from these fields is used to create the 'payment cost' and 'shipping cost' sales lines for an imported order:

Import Shipping Cost Type: specifies the type of the sales line representing the 'Shipping Cost'.
Import Shipping Cost No: is the object identifier for the sales line of the type selected for the 'Import Shipping Cost Type' option. For example an Id of a G/L Account when that type is selected.
Import Payment Cost Type: specifies the type of the sales line representing the 'Payment Cost'.
Import Payment Cost No: is the object identifier for the sales line of the type selected for the 'Import Payment Cost Type'. For example an Id of a G/L Account when that type is selected.

Configure the order export task

The order export functionality uses the Sana Commerce task scheduler. You can read more about it in this chapter.
The configuration of the order export task is performed in the 'sanaCommerce' configuration section of the backoffice 'web.config' file.
 
To configure the order export task:

Step 1: Open the backoffice web.config file.

Step 2: Locate the 'SanaCommerce' configuration section.

Step 3: Locate the 'tasks' subsection:

<task name="OrderExport"
       title="Order export"
       type="Sana.Commerce.Tasks.OrderExport.OrderExportTask, Sana.Commerce.Tasks.OrderExport"
       time="4:00am"
       enabled="false"
       sourceWebsiteCode = "B2xSql"
       destinationOrderProviderId = "NavisionStandardOrderProvider"
       destinationCustomerProviderId = "NavisionStandardCustomerProvider"
       batchSize="100"
    allowManualStart="true"
    sortNumber="6"/>

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

time/interval: the daily time or period (in seconds) when the 'Order Export' task should be performed;
For more information please read this chapter.
sourceWebsiteCode: the webshop from which the order export will be performed. It is selected from the 'Sana Commerce - Sites' configuration section of the web.config;
destinationOrderProviderId: Identifier of the Order provider, which is selected from the 'Sana Commerce - Modules' configuration section of the 'web.config' file;
destinationCustomerProviderId: Identifier of the Customer provider, which is selected from the 'Sana Commerce - Modules' configuration section of the web.config;
batchSize: the quantity of orders 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 to prevent any problems.
Add-ons and ModulesOrder Export