Shops

A shop is a container for product groups, which in turn contain products. Shops are located under the Product Catalog node in Ecommerce (Figure 1.1).

Figure 1.1 Shops

A standard solution will typically only have a single shop, but more shops may be created if your scenario warrents it and the license permits it.

To create a shop:

  • Go to Settings > Ecommerce > Product Catalog > Shops
  • Click New Shop in the toolbar
  • Enter a name and optionally configure other shop settings
  • Save

To edit a shop simply click in on the shops list – from the edit-view you can change shop settings or delete a shop completely by clicking the Delete shop button in the toolbar. When you delete a shop, all groups, subgroups, and products in the shop. This is irreversible, so please be careful.

Shops are born with a number of shop settings which can be used to configure how the shop works. This most basic of these are simply called Settings (Figure 1.2).

Figure 1.2 The basic shop settings

The basic settings allow you to:

  • Name the shop and select an icon to use in the Ecommerce tree
  • Set various default values:
    • A default order flow for orders relating to this shop
    • A default set of stock states for products in this shop
    • A default context cart for orders relating to this shop – this is a fallback value if no context cart is selected on the shopping cart app
    • A default print template – this template is used when printing orders, and must be placed in the Templates/Ecom7/Order folder
  • View the shop ID and when the shop was created (read only)

Below the basic settings, you can control whether a shop is actually a shop or a warehouse or a channel (Figure 1.3).

We don’t recommend that you change this setting after a shop has been created, even if it’s technically possible. The remaining advanced shop settings are explained in detail below.

Figure 1.3 You can change a shop to a warehouse or a channel after it's been created, but we don't recommend it.

Two selectors – Languages & Stock Locations (Figure 2.1)make it possible to specify which of the Ecommerce languages and Stock locations created on the solution should be available for this shop, and optionally select a default language or stock location. If no languages or stock locations are selected, all are available.

Figure 2.1 Languages & Stock Locations available on this shop

With the order notification settings (Figure 3.1), you can select backend users who should receive notifications about new orders are placed in this shop. Move the users from the left window to the right window to notify them when new orders are placed.

Figure 3.1 Set up order notifications

To send order notifications to customers see order flows.

Image patterns - or alternative images - are a way for you to automatically match images in a folder with the products in a shop.

This is done by defining a pattern - for instance /{ProductNumber_Small.jpg} - and a folder, where you can then place product images named according to the pattern.

To set up an image pattern at the shop level:

  • Check the Use alt. images checkbox (Figure 4.1)
  • Select a folder to look in
  • Define one or more patterns to use by clicking "Click here to add new row"
Figure 4.1 Alternative images settings

You can specify a pattern based on the following product fields:

Field

Example

Comment

ProductID

{ProductID}.jpg

 

ProductNumber

{ProductNumber}.jpg

 

ProductName

{ProductName}.jpg

 

ProductManufacturer

{ProductManufacturer}.jpg

 

VariantID

{VariantID}.jpg

 

VariantComboName

{VariantComboName}.jpg

 
VariantOptionLevel {VariantOptionLevel1}.jpg

Retrieves the name of the variant option added to the product.

If you e.g have colors as 1. level variants (Orange, Green, Blue) they are OptionLevel1.

If you also have sizes as variants (Large, Medium, Small, they are OptionLevel2.

You can combine these fields in any way you’d like, e.g. {ProductNumber}_{ProductManufacturer}.jpg{ProductNumber}_{VariantComboName}.jpg or {ProductID}_{ProductName}.jpg, and image patterns support using the wildcard characters ‘?’ and ‘*’.

If more than one image matches the pattern, the first one in alphabetical order will be used.

You can read about the image pattern hierarchy in this article.

With the order line fields settings (Figure 5.1), you can select which order line fields to use on this shop.

Read more about order line fields here.

Figure 5.1 Order line fields settings

Under the Indexing settings (Figure 6.1), you can control the build of the index for your products.

Figure 6.1 The indexing settings

Here, you can check the checkbox to auto-build your index for the shop's product, when any product are updated. Choose which index to auto-build beneath.

Database

These are the database tables associated with shops and related features in the Dynamicweb database:

EcomShops

Contains setup data for shops as defined in Settings -> Ecom -> Product catalog -> Shops

Field name Data type Length
ShopId nvarchar 255
ShopName nvarchar 255
ShopCreated datetime 8
ShopDefault bit 1
ShopIcon nvarchar 255
ShopOrderFlowId int 4
ShopStockStateId nvarchar 255
ShopOrderContextId nvarchar 50
ShopAutoId int 4
ShopStockLocationID bigint 8
ShopUseAlternativeImages bit 1
ShopImageFolder nvarchar 255
ShopImagePatternSmall nvarchar 255
ShopImagePatternMedium nvarchar 255
ShopImagePatternLarge nvarchar 255
ShopAlternativeImagePatterns nvarchar Max
ShopDefaultPrintTemplate nvarchar Max
ShopProductWarehouse bit 1
ShopProductPrimaryPageId int 4
ShopAutoBuildIndex bit 1
ShopIndexRepository nvarchar 128
ShopIndexName nvarchar 128
ShopImageSearchInSubFolders bit 1
ShopImageUploadFolder nvarchar 255
ShopAutoCreateUploadFolderPerProduct bit 1
ShopType int 4

EcomShopGroupRelation

Keeps track of group (EcomShopGroupRelationGroupId) membership of shops (EcomShopGroupRelationShopId).

Field name Data type Length
ShopGroupShopId nvarchar 255
ShopGroupGroupId nvarchar 255
ShopGroupRelationsSorting int 4
ShopGroupRelationAutoId int 4

EcomShopLanguageRelation

Keeps track of which languages (LanguageId) a shop (ShopId) is active for.

Field name Data type Length
ShopId nvarchar 255
LanguageId nvarchar 50
Id int 4
IsDefault bit 1

EcomShopOrderNotificationRelation

Contains setup data for shop notification emails as defined in Settings -> Ecom -> Product catalog -> Shops.

Field name Data type Length
ShopOrderNotificationShopId nvarchar 255
ShopOrderNotificationAccessUserId int 4
ShopOrderNotificationRelationAutoId int 4

EcomShopStockLocationRelation

Keeps track of which stock locations (ShopRelationStockLocationId) are available for a shop (ShopRelationShopId).

Field name Data type Length
ShopRelationStockLocationId int 4
ShopRelationShopId nvarchar 255
ShopStockLocationRelationAutoId int 4