• Blog
  • How to use TableConvertion in nopCommerce Sync plugin

How to use TableConvertion in nopCommerce Sync plugin

  • 12:26:51 PM
  • Friday, July 24, 2020

In this tutorial, we'll show how to use TableConvertion to add DeliveryDate mapping to product import.

- Open your pluginsettings.json file

- Add TableLookup conversion to "DevCommerce.Sync" -> "Conversions" section ",

{
"Name": "DeliveryDateConvertion",
"Type": "TableLookup",
"IdColumnName": "Id",
"ValueColumnName": "Name",
"TableName": "DeliveryDate"
},

- Add conversion mapping for DeliveryDateId column of the Product import task

{
"EntityField": "DeliveryDateId",
"DefaultValue": "0",
"ConversionName": "DeliveryDateConvertion"
},