How to: Set Up Clienteling

In this article

Import Web Templates

Add Web Service

Create browser controls

Create panels

Set up in POS

Edit the Web Templates

See also

Clienteling can be set up and adjusted to the customer's needs. To that purpose some basic setup is needed.

Import Web Templates

If you are not working with a demo data company, you must import web templates for Clienteling. The web templates come with the toolbox installation and the default path is C:\Program Files (x86)\LS Retail\NAV\Web Templates\Templates.

To import the templates

  1. Be in Business Central.
  2. Click the icon, enter POS Web Templates, and select the relevant link.
  3. In the POS Web Templates list, click Actions - Import.
  4. Locate your Web Template folder (default location is C:\Program Files (x86)\LS Retail\NAV\Web Templates) and import a folder named Templates.

The web templates should now be imported to your database and you can start working with them.

Add Web Service

Add RetailWebAPI Web Services in the Web Services List:

Create browser controls

First, you must create new browser controls for the interface profile in use. The browser controls you need are for:

  1. Brick View - which contains all nodes in the Item Hierarchy
  2. Item Details - for the leaves in the Item Hierarchy (the items)
  3. Product Compare - to be able to compare two items and their attributes.

To create new browser controls

  1. Open the interface profile in use.
  2. Click the Lists action, then Browser Control List.
  3. Click the New action to create a new control.
  4. Enter a Control ID, for example #RETAILHIERARCHY.
  5. Add a Description, for example Retail Hierarchy.
  6. In the URL field, select the #BRICKVIEW template from the drop-down list.

Repeat these steps for the Item Details browser control, and use the Web Template #ITEMDETAILS.

Repeat these steps for the Product Compare browser control and use the Web Template #PRODUCTCOMPARE.

The browser control in the demo data are called #RETAILHIRARCHY (uses the #BRICKVIEW web template), #ITEMDETAILS, and #PRODUCTCOMPARE.

The browser control in the demo data using the #BRICKVIEWHOSP web template is called #H-FINE-CL.

Create panels

To be able to open the browser controls in a new window on the POS, you need to create new panels. Depending on the setup, you would typically need to create one panel for the Item Details window, one for the Product Compare and another one for the Brick View.

To create the panels (Brickview, Item Details, and Product Compare)

  1. Open the interface profile in use.
  2. Click Lists, and then Panel List.
  3. Click the New action to create a new panel.
  4. Add the relevant browser control on the POS Panel Control Lines FastTab.

Note: The #BRICKVIEW and #BRICKVIEWHOSP web templates open panel #ITEMDETAILS for the Item Detail panel and the #PRODUCTCOMPARE panel for the product compare. If you name your panels differently, you need to replace these panel names in the web template (locate the SHOWPANELMODAL command and replace the panel name).

The panels in the demo data are called RETAILHIERARCHY, #ITEMDETAILS, and #PRODUCTCOMPARE.

Set up in POS

Now you can

  • add a button on the POS terminal that opens the new Retail Hierarchy panel with Clienteling.
  • add the Retail Hierarchy browser control directly into a section in a POS panel.

To open Clienteling with a button click

  1. Right-click the button on the POS, and select Button Properties.
  2. Enter a description for the button in the Description field.
  3. In the Command field, select SHOWPANEL, and in the Parameter field, type the name of the panel that was created in the previous step (for example #BRICKVIEW).
  4. Press OK.

Edit the Web Templates

The Web Templates for Clienteling can be edited by a web developer directly in the Business Central client BackOffice. You can edit HTML, Javascript, and CSS code in the template.
Tip: To see a preview of a changed code, simply click outside the edited field and the Web Template preview will be updated.

Tip: If you do not get a preview of the Web Template, run the POS client once and try again. This activates the RetailWebAPI web service.

Note: The default Hierarchy Code for the Clienteling web template #BRICKVIEW is FASHION. You can change this by replacing FASHION with another hierarchy code in the Web Template in the Java script code (set as INITIAL_HIERARCHY_CODE).

You can also replace FASHION with #FromStoreSetup. Then the program selects the valid hierarchy in the store, based on the Sales Type Filter of the POS terminal and the current date and time.

The web template #BRICKVIEWHOSP uses the valid hierarchy in the store (INITIAL_HIERARCHY_CODE is #FromStoreSetup).

Note: In order to use images on the POS, you must make sure that you have enabled SOAP services for the service you are using.

See also

Hierarchies

Clienteling

How to: Create a Hierarchy

How to: Set Hierarchy for Web Store

How to: Use Web Templates as POS Menus

Panels

Interface Profiles