Setup

Sana Commerce 9.2
Your connector

ERP Integration

In Sana Admin under the ERP Integration menu item you can set up the search index and keyword fields and import the item categories. All this data is retrieved from your ERP system.

Index fields



Sana Commerce search is based on the Lucene search engine. By adding the product fields to the Lucene index you can extend the webstore search functionality.

The configuration of the Sana Commerce enhanced search settings provides the possibility to search products by different keywords: title, item number, color, size, description and others.

Use the Keyword fields section to extend the webstore search by adding the fields to the index on which the customer can do the search.

The table below provides the description of the keyword fields:

Field Description
Field name This dropdown list presents all fields the customer can search on.
Related table If a field from the items (products) table in your ERP system is related to another table and this field is selected in the Field name dropdown, the name of the related table will be shown in this column.
Related table field name This dropdown list provides all available fields from the related table which can be selected for display. If no field from the related table is selected a value of the field specified in the Field name column will be shown by default.

Use the Filter fields section to configure filtering and sorting of the products on the search results and product list pages. This means that those fields that are added in the Filter fields section can be used to configure filtering and sorting of the products in the webstore. Filtering and sorting can be configured under the Navigation & search menu item. These fields are also used to create product sets.

The field names differ depending on your webstore connector. The field names which are at the head of the list and in bold type are optimized connector fields. The data from the standard fields is retrieved from the Items table in Microsoft Dynamics NAV/ Released products table in Microsoft Dynamics AX, while the data from the optimized fields is retrieved from different places.

The tables below provide the description of the optimized fields:


Microsoft Dynamics NAV

Keyword fields:

Field Description
Color

Used to search products by color and/or size. These two fields are used in the Sana Commerce NAV Connector with Fashion add-on and Sana - LS Retail Connector.

If you use Sana Commerce NAV Connector with Fashion add-on the colors are retrieved from the Item Vertical Components table, while sizes are retrieved from the Item Horizontal Components table.

If you use Sana - LS Retail Connector the fields like color, size, style and others created for item variants are used to search products by color, size, style and other available fields. The data from these fields is retrieved from the Extended Variant Dimensions table.

Size
Description Used to search products by description. If product description is present in Sana Admin the data will be retrieved from it but not from NAV. If there is no product description in Sana Admin the data is retrieved from the Extended Text table in Microsoft Dynamics NAV. If product description is present in different languages it is also used.
Title Used to search products by name. The data is retrieved from the Items table, the Description field. If product names are present in different languages, then product names translations are also used.
Variant Title Used to search product variants by name. The data is retrieved from the Item Variants table, the Description field. If product variants names are present in different languages, then product variants translations are also used.
Bar Code Used to search products by bar code.

Filter and facet fields:

Field Description Sortable  Facet
Color

Used to filter products by color and/or size. These two fields are used in the Sana Commerce NAV Connector with Fashion add-on and Sana - LS Retail Connector. To be able to use color and size for filtering in standard NAV Connector requires customization.

If you use Sana Commerce NAV Connector with Fashion add-on the colors are retrieved from the Item Vertical Components table, while sizes are retrieved from the Item Horizontal Components table.

If you use Sana - LS Retail Connector the fields like color, size, style and others created for item variants are used to filter products by color, size, style and other available fields. The data from these fields is retrieved from the Extended Variant Dimensions table.

 No  Yes 
Size  No  Yes
Gross weight (orderable products only) Gross weight is not used for sorting or facets. It can be added to the search index to become available as filter for product sets. The data is retrieved from the Item Units of Measure table, the Weight field.  No  No
Price Used to sort products by unit price. The data is retrieved form the Items table, the Unit Price field. The customer specific prices are not used for sorting.  Yes  No 
Product category Used to filter products by product category. The data is retrieved from the Item Categories and Product Groups tables, the Description field, as combination of the item category and product group descriptions. If product categories (item category and product group) are present in different languages, then product categories translations are also used.  No  Yes 
Title Used to sort products by name. The data is retrieved from the Items table, the Description field. If product names are present in different languages, then product names translations are also used.  Yes  No 

Microsoft Dynamics AX

Keyword fields:

Field Description
Color Used to search products by color and/or size. The data is retrieved from the Released product variants table. The colors are retrieved from the Color field, while sizes are retrieved from the Size field.
Size
Description Used to search products by description. If product description is present in Sana Admin the data will be retrieved from it but not from AX. If there is no product description in Sana Admin the data is retrieved from Presentations or Translations in Microsoft Dynamics AX. If product description is present in different languages it is also used. For more information about product description in Microsoft Dynamics AX, see 'Product Description'.
Title Used to search products by name. The data is retrieved from the Released products table, the Product name field. If product names are present in different languages, then product names translations are also used.
Variant Title Used to search product variants by name. The data is retrieved from the Released product variants table, the Product name field. If product variants names are present in different languages, then product variants names translations are also used.
Bar Code Used to search products by bar code.

Filter and facet fields:

Field Description Sortable  Facet
Color Used to filter products by color and/or size. The data is retrieved from the Released product variants table. The colors are retrieved from the Color field, while sizes are retrieved from the Size field.  No  Yes
Size  No  Yes 
Gross weight (orderable products only) Gross weight is not used for sorting or facets. It can be added to the search index to become available as filter for product sets. The data is retrieved from the Released products table, the Gross weight field.  No  No
Price Used to sort products by base sales price. The data is retrieved from the Released products table, the Price field.  Yes  No
Product category Used to filter products by product category. The data is retrieved from the Item groups table, the Name field. If item groups are present in different languages, then item groups translations are also used.  No  Yes
Title Used to sort products by name. The data is retrieved from the Released products table, the Product name field. If product names are present in different languages, then product names translations are also used.  Yes  No

For more information about filtering and sorting, see 'Search'.

 NOTE

Applies to: Microsoft Dynamics AX 2012.

The fields that are marked with the '[Attribute]' tag are used to retrieve product attribute values if such are configured in Microsoft Dynamics AX 2012 for the procurement category hierarchy. For information about product attributes in Microsoft Dynamics AX 2012, see 'Product Attributes'.


 NOTE

When the index fields are configured or some of the fields have been added or removed the index should be rebuilt. In this case you will receive the message that the index should be updated by running the product import task.


Item categories



Under the Item categories tab you can import the item (product) categories with the item groups from your ERP system. This way you can easily import the products catalog to build the main menu of your webstore. All item (product) categories are imported from the ERP system. Those item (product) categories that are not set to Visible in Webshop in your ERP system will be also imported and set to invisible in Sana Admin. If item categories have been already imported they can be updated (Add only new categories in ERP) or replaced (Re-import all available categories).

When you import the item categories from your ERP system you can choose either to import all item categories under the specific menu item of the main menu or leave the field Import under empty to import all item categories to the root of the main menu.

When the item categories have been imported from your ERP system you will see the results in a pop-up of how many items have been created in the main menu, how many product pages and product list pages have been created.

For more information about webstore menus, see 'Navigation'.

Depending on your ERP system read one of the articles below about item categories management in ERP:
Microsoft Dynamics NAV 2009 - 2016: Item Categories and Product Groups
Microsoft Dynamics NAV 2017: Item Categories
Microsoft Dynamics AX: Product Categories and Item Groups
Microsoft Dynamics 365 Business Central: Item Categories
Microsoft Dynamics 365 Enterprise Edition: Product Categories and Item Groups
Microsoft Dynamics GP: Item Classes
SAP Business One: Item Groups
SAP: Product Hierarchy