Book Contents

Book Index

List of related documentation

For better accessibility, we include here some chapters taken from other basic manuals.

E-shop

The E-shop page is intended for specifying all data about the articles sold on the K2 E-shop. The page is visible only to a user who has the right View ES page in the Article book set in the section Webs and e-shops - Article - View ES page in the Article book. Data here can be changed only by those who have the right Change ES page in the Article book (Webs and e-shops - Article - Change ES page in the Article book).

Pic_3587

Picture: Article - Eshop tab

Information for e-shop:

Name for e-shop

Unique name of the article under which the article will be named in the e-shop.

Group for e-shop

Group of goods for assigning the article to the e-shop.

Short description

Article description, which is to inform the customer about what the product is and why they should buy this very one. It is displayed in the detail as well as in the catalogue of articles right below the article name.

Note

The note text will be published in the article detail, in shopping basket preview, in shopping basket and in comparison.

Zero warehouse text*

Text that is displayed if the article is not in stock and at the same time the Alternative text is not filled in. The texts can be suppressed in bulk with the flag Show actual warehouse statuses in Web and e-shop settings.

Alternative text*

Text that is displayed for a specific stock level. The texts can be suppressed in bulk with the flag Show actual warehouse statuses in Web and e-shop settings.

Original price

The original price stated in this field is displayed/hidden in the article detail depending on the flag Display "original price" in Web and e-shop settings - Catalogue of articles. The price is entered without VAT; on the e-shop it is then displayed without tax or with tax according to the price display settings.

Transport / Payment

We check this option if the card is an Article representing transport / payment.

An article card marked in this way will not be transferred to a newly created order based on a copy of a previous order using the Reorder articles button (User profile/Orders list) - only the Article item cards are transferred to the new order.

At the same time, an article marked in this way will be displayed on the e-shop even if it has a zero price set (regardless of the flag Do not display articles with zero price in Web and e-shop settings.

*Zero warehouse text and Alternative text can also be suppressed by the option Forbid sale of available articles. It is located in Web and e-shop settings, on the Catalogue of articles. tab. The user can thus restrict the sale of articles for which, e.g., the Zero warehouse text is set to 2 weeks. In this case, the Buy button will not be available to the customer on the e-shop.

Tab description:

Long description

Contains text in which it is possible to describe in more detail what product it is. The long description is displayed on the e-shop in the product detail under the Description tab.

Page info

The tab serves as so-called search engine optimization. The content of these fields is only part of the page code for automated crawlers. They are not displayed to a regular user of the e-shop/website, but they can significantly affect website traffic if they are set correctly.

Info for price search engines

This tab contains the data necessary for the active use of information from the website and e-shop in various search engines and price comparison sites.

Searched words

The tab contains keywords that are associated with the article and by which the customer can search on the website/e-shop. These can be, e.g., colloquial names, common customer typos, but also, for instance, the text 1 + 1 free, etc.

Category for articles

Here it is possible to assign the article to a category. If the article has a Group for e-shop assigned, the category in which this group is used is automatically added here. A record added with the Ins key is marked in the table with the manual editing icon PIC_005i.

Article flags for e-shops

On this tab, we can set the flags Hide on e-shop (after the recalculation, the article is not filled into the EsGoods and EsGoodsPrice tables and is then not available on the e-shop), Not for sale (the article cannot be inserted into the basket) and Sale to registered only (only a logged-in user can insert the article into the basket).

The Default category is also set here, which is to be displayed if the article is classified into several categories of the same website/e-shop.

When we expand the row, we can assign tags to the given article. Tags can also be assigned in bulk via Bulk actions / Change values for e-shops / Flags tab.

If we remove the article from the e-shop, the row is marked as invalid with the icon pic_278i.

Shift+F8 deleting the e-shop on the tab Article flags for e-shops
If the entire e-shop has been cancelled and we no longer want to see the flag on the article on this tab, it is possible to use the Shift+F8 function, which is available in the Webs and e-shops book. On the invalidated e-shop/website, we press the Shift+F8 keys - this function deletes the records (in the Article book on the Flags for shops tab) for all articles that were assigned to the e-shop.

The function is active with the right: Webs and e-shops / Administration / Delete data of website, e-shop.

Note
- If the article was removed first, i.e. the e-shop has the red circle flag (see above), the article is not assigned back to the e-shop after the e-shop is made valid again.
- If the article is still connected to the e-shop and we use the Shift+F8 function, the article remains assigned to the e-shop after the e-shop is made valid again (and the recalculation is run).

Book Contents

Book Index

Articles - Display of availability texts
Overview table of article availability texts display

The way article availability is displayed depends on whether the option "Actual stock levels" is or is not checked in Web and e-shop settings.

Below is an overview of which texts are displayed in individual situations:

 

Option "Actual stock levels" - YES

Option "Actual stock levels" - NO

 

  • In stock (x pcs)
  • Not in stock (0 pcs)
  • In stock
  • The article is on its way from the supplier

ZERO WAREHOUSE TEXT

If the article is not in stock, the text entered by the user is displayed, e.g.:

  • 2 weeks (0 pcs)
  • For order (0 pcs)
  • Temporarily unavailable (0 pcs)

If the option "Apply alternative texts for stock availability" is checked in Web and e-shop settings and at the same time the Alternative text for 0 pcs is filled in, the alternative text is displayed.

If the article is not in stock and at the same time the Alternative text for 0 pcs is not filled in, the text entered by the user is displayed, e.g.:

  • 2 weeks
  • For order
  • Temporarily unavailable

ALTERNATIVE TEXT

The alternative text is not taken into account and only these standard texts are displayed:

  • In stock (x pcs)
  • Not in stock (0 pcs)

If the option "Apply alternative texts for stock availability" is checked in Web and e-shop settings , the values from the alternative texts for the warehouse are loaded, e.g.:

  • In stock > 5 pcs ... More than 5 pcs (x pcs)
  • In stock > 10 pcs ... More than 10 pcs (x pcs)
  • In stock 0 pcs ... Unavailable (0 pcs)

The text entered by the user that corresponds to the stock level is displayed.

Examples:

  • In stock > 5 pcs ... More than 5 pcs
  • In stock > 10 pcs ... More than 10 pcs
  • In stock 0 pcs ... Unavailable

Set as Not for sale in the article flags for e-shops

  • Not available (0 pcs)
  • Not available

Article - Article variants

Article variants are defined on the Sale tab in the Article variants sub-tab. They are intended for grouping a group of articles under one product that will represent its variants.

pic_3611

Picture: Article book - Sale tab - Article variants (for K2 web/e-shop)

If we also want to see some (especially distinguishing) parameters for the Article cards, we must set the property Parameter to differ article variant for such parameters (in the parameter tree) in the Classification on the Parameters tab. The table displays the first 5 parameters with this flag.

Only article cards with the same classification can be linked, i.e. with the same parameters determining the distinction of the article variant.

If we want to attach another article variant to an article card, it is necessary to:

  1. Have the same Classification defined on the Parameters tab for the article cards that we want to link.
  2. The classification must include at least one parameter with the property "Parameter to differ the variant" and it must be filled in.
  3. Then, in the view mode, select the function "Add variant". Only those article cards that have the same Classification are pre-filtered. Similarly, an article card would be disconnected from the variants or a variant from the article card, using the relevant functions below the grid.
  4. Linking of variants is always bidirectional, i.e. the variants are linked on all article cards.

Master cards

This is a superior article card for the individual article variants. This article card is defined by the Article type Master card. A master card cannot be inserted into documents in K2 or inserted into the basket in the e-shop. It carries summary information, i.e. the availability of the Master card is the sum of all subordinate variants, or the price shown on the e-shop is always displayed as a price from, where the price from is the lowest price of one of the subordinate variants.

Parameters

The page makes it possible to record structured information, often of a technical nature, for Article cards – so-called Parameters. Their list can be created for each card separately with the Ins key, or it is possible to use predefined lists – so-called Classifications. This predefined list can also be freely supplemented with other parameters on the Article card (a parameter inserted in this way will have the manual insertion flag); however, these parameters are kept on the card only if they have a value filled in. Each parameter on the Article card or in the Classification must have a Group from the list of groups assigned. A parameter can occur only once on one Article card or in one Classification.

If we change the Classification on the Article card, the list of parameters changes automatically as well. However, parameters with filled-in values are kept as manually inserted.

pic_2151

Picture: Article book - Parameters page

Editing parameter values

Parameter values can be changed in three ways:

  1. When inserting a free parameter, we enter the value directly in the parameter selection form.
  2. We edit individual parameters using so-called row editing – in the Value column, we press the Enter key, type/select the required value from the menu and confirm the entered value with the Enter key. For a parameter with an enumeration of values, the same form opens as when inserting a parameter (point 1). In the list of values, we mark those that apply to the given article and close the form by pressing the OK button. The values selected in this way are displayed in the Value column one after another, separated by a semicolon.
  3. If we are entering all values of one group, we can use the form for entering multiple values at once. On the group, we press the key combination Shift + Enter. A form for entering parameter values in the group is displayed. Here we enter the required values directly into the Value fields for the individual parameters. In the case of a menu (selection from a list or an enumeration of values), we open the list of predefined values with the F12 key, select the value using the Enter key, for an enumeration we mark the required values and close the menu using Enter or Tab.
    • We also use this variant if we enter so-called comparison values for the parameter or want to change the unit of the parameter value.

Note: Comparison value - there are parameters whose value develops so much that the previously used unit is no longer practical (clear), and in some cases a different unit is used. However, if we subsequently want to search by this parameter, e.g. in an online shop, the system needs to compare absolute values in the same unit. An example of such use are "hard disks". Their capacity used to be stated in "GB" (gigabytes), but today a capacity in "TB" (terabytes) is common. Therefore, for the disk we state "1 TB" as the value and enter the number "1000" into the comparison value.

pic_2200

Picture: Form for entering parameter values in the group

In the Classification in the Change mode, it is possible to move the item (parameter or group) on which the cursor bar is placed using the grey + and -. The parameter form can be displayed from the 1st page of the Classification or in the table on the 'P' page using the Ctrl+Shift+Enter keys.

Parameters book

A Parameter is a recorded property related to the Article card. Examples can be colour, weight, material, length, number of revolutions, Supported formats, etc.

pic_2176_202509

Picture: Parameter book

Basic data

The Basic data tab is intended for defining the properties of the parameter.

pic_2177

Picture: Parameter book - Basic data

Description of fields:

Name

Name of the parameter.

Description

Description that can be exported, e.g. to the e-shop, as an explanation of the parameter content.

Application field

Work description for better orientation among similar parameters; it can briefly summarize the parameter settings.

Unit

Link to the code list of parameter units. If filled in, it must correspond to a record from the code list.

Key words

For the possibility of export to the e-shop.

Data type

Kind of the expected value. The options offered are Text, Integer number, Decimal number, Date, Time, Article field. If a number is selected, another field is displayed in which the format of this number can be defined in more detail. When the Article field option is selected, another field is also displayed in which it is necessary to select which field or note of the Article card the parameter will refer to. Link fields can also be used; in this case, the link is indicated by a semicolon. A reference to a note type is written as "P@type" of the note, i.e., for example, we refer to the business text as "P@DH". The parameter type Article field cannot be displayed on the e-shop.

Selection from code list of values

The option makes it possible to display a list of predefined values to the user.

Value always required

If the parameter is mandatory, the Article card in which this parameter is included via the Classification cannot be saved without filling in the parameter value. This applies only to users who have the right to fill in parameter values.

The value is defined on the batch or on the required parameters

With this option, it is not possible to enter parameter values on the 'P' page. To distinguish individual deliveries of articles or production batches, we enter the values directly on the batches. The parameter is thus not generally valid for the article.

The Batch type is also stored internally in the batch. Classifications with parameters containing the flag "The value is defined on the batch or on the required parameters" will be generated with a new batch type at every relevant change of the Classification (i.e. especially its items) or of the parameters (flag, data type). Without this flag, the old batches would report an inconsistency in such a case.

Default requested parameter

A parameter with this option will be inserted by default when a new required parameter is created on a P/S item on the Parameters tab. The option is active only if the option The value is defined on the batch or on the required parameters is checked.

Do not transfer from required parameters to batch

A parameter with this option will not be transferred from the required parameters to the batch when the batch is created (e.g. by confirming a receipt card) and will not be displayed on the 'P' page. The option is active only if the option The value is defined on the batch or on the required parameters is checked. This parameter can be used as an auxiliary parameter when defining a multidimensional quantity.

Keep required parameter while item dividing

This parameter option causes the values to be copied to the newly created set of required parameters when a purchase/sale item is split.

We recommend checking this option for parameters whose values we do not want to lose when an item is split. Conversely, parameters that explicitly require entering new values after the item is split do not need to have this option checked, but for such a parameter we recommend checking the Value always required option so that a document with an empty value is not confirmed if entering a new value is forgotten.

Possible enumeration of values

It allows the user to select and mark multiple values from the list of predefined values which the given Article card meets. This option is useful, e.g., if we want to create a list of supported picture formats for cameras. In the predefined values, we define all known and used picture formats and then, for a specific camera, we mark all those that the camera can create or process.

Controlled reference

For selection from predefined values, it handles the possibility for the user to enter a value other than the predefined one. In the case of an enumeration, the check is mandatory, i.e. only values from the list can be selected.

Example: We predefine the values of a parameter, e.g. Color, as "black", "white", "blue". If the Controlled reference field is checked, we cannot enter any option other than the values "black", "white", "blue". If the field were not checked, another value could also be entered.

Export to web

Used to suppress or include the parameter in the export for the e-shop. Applies only to Fastcentrik.

OLAP

The option makes it possible to export the parameter as an OLAP axis.

Places of use

This page of the parameter displays the list of Groups as well as the list of Classifications in which the parameter is stored as predefined.

pic_2178

Picture: Parameter book - Places of use

Code list of Groups

Parameter groups have a twofold meaning. Firstly, they allow the list of parameters in the Classification or on the Article card to be sorted according to how they logically belong together. In that case, we insert a parameter and select the appropriate group for it.

pic_2196

Picture: Parameter groups book

The second option is to use the meaning of a group that we often use for the same list of parameters. E.g. the Packaging group always contains the same parameters: Czech manual (yes/no); Box size (small, medium, large); Package contents (text string for listing the contents). When creating the group, we therefore add these parameters to the group right away. Whenever we then want to describe packaging in a Classification, we insert the whole group including the predefined parameters.

We insert parameters into the list with the Ins key and delete them with the Delete key. The order of parameters can be adjusted with the grey plus and grey minus keys. The given group will then be visible on the 2nd page of the parameters used in the group. Updating the list of parameters in a group is not reflected in any way in already existing classifications.

Classification book

Classification is used to predefine a list of parameters, sort them into groups and determine the order in which they will be displayed. A Classification defined in this way can be used on any number of article cards.

pic_7343

Picture: Classification book

Book Contents

Book Index

Product configurator

The Product configurator allows the customer to put together their own variant of a product directly on the e-shop. Using the individual configuration parameters, they can choose the required properties of the product, and the resulting configuration can affect both its appearance and price. The configurator also supports 2D and 3D previews, thanks to which the customer can follow the final appearance of the product during configuration.

The product configuration itself is created in the Configuration definitions module. A detailed description of its creation and settings is given in the chapter Product configurator.

Note: For the Product configurator to work on the e-shop, API v2 is required.

pic_1703789

Picture: E-shop - product detail with configuration

pic_1703790

Picture: E-shop - product configuration (2D preview)

Configurator settings for the e-shop

To be able to use the product configurator on the e-shop, it is necessary to specify which variant of the user interface will be displayed on the given e-shop:

  1. In Web and e-shop settings on the Function tab, we set the field "Layout variant identifier".
  2. We set the same value in the Configuration definition on the given User interface in the field "Layout variant identifier (for e-shop)".

The values of both fields must be identical. This links the variant of the configuration user interface with the relevant e-shop.

If a configuration is created for a product and its user interface is linked with the relevant e-shop using the Layout variant identifier, the e-shop automatically recognizes that it is a configurable product and, instead of the standard Order button, displays a button for launching the configurator. The customer first creates the required product configuration and only then inserts it into the basket.

pic_1703786

Picture: Web and e-shop settings - "Layout variant identifier"

pic_1703787

Picture: Configuration definitions - "Layout variant identifier (for e-shop)"

Price of the configured product

Depending on the selected parameters, the configuration can affect the final price of the product. For the correct final price of the configured product to be displayed in the configurator and subsequently in the basket, it is necessary to set the corresponding value in the Specification field for the parameter representing the total price, e.g. Product price gross.

pic_1703785

Picture: Parameter Price - total in the Configuration definition - price specification

Display of the selected configuration in the basket

After the configured product is inserted into the basket, an overview of the currently selected configuration parameters is displayed below its item. The customer can thus check which product variant they have created before completing the order and, if necessary, modify the configuration. After the changes are made, the modified product configuration is reflected in the basket.

pic_1703788

Picture: Basket - display and modification of the product configuration

Only parameters that meet the following conditions are displayed in the configuration overview:

Note: If the parameter does not have display in listing set or does not have the Title filled in, it will not be displayed in the configuration overview in the basket.

Book Contents

Book Index

AI functions

IS K2 offers the possibility to use artificial intelligence to support work with e-shop content, especially for:

AI settings

AI functions in the K2 system are implemented using scripts which, based on the system settings, communicate with external AI services.

To use AI functions, it is necessary to:

  1. Set up access to the AI service in the AI login, module
  2. In Multi company administration, fill in the field Default AI login, which determines the AI model used.

Book Contents

Book Index

AI login

The AI login module is located in the tree menu Administrator / System / AI login.

By default, it contains a list of several available models. To use them, it is necessary to add the API login key.

pic_1703421

Picture: AI login - list of models

pic_1703422

Picture: AI login - model detail

Note: To use AI functions, it is necessary to have credit uploaded with the service provider. The price of individual requests depends on the number of processed tokens, both on the request side (which the K2 system composes in the background) and on the response side. The price list for the individual models is available on the service provider's website, e.g. https://openai.com/api/pricing/.

Book Contents

Book Index

Settings in Multi company administration

In Multi company administration, on the Basic Settings, tab, we must select the model that the K2 system is to use in the Default AI login field.

Without this setting, AI functions will not be available.

pic_1703423_202507

Picture: Multi company – Default AI login

Book Contents

Book Index

AI functions in the Article module - Generating descriptions and Suggesting categories

AI functions in the Article module can improve the presentation of products and automate the management of product data. The following functions are available in the Article module:

  1. Generate description - based on the name and parameters of the article, it creates meaningful, readable and SEO-optimized texts.
  2. Suggest category - based on the name and parameters of the article, it recommends a suitable classification of the article into categories

How AI functions work:

When the functions are used, selected data is sent from the Article card to the servers of the AI service provider, for example OpenAI.

For generating a description, the following is sent:

For suggesting a category, the following is sent:

The AI service returns a suggestion that can be edited or used immediately.

Note: K2 does not pass on any other information, in particular no personal or sensitive data.

Availability of functions

(AI functions are available only after logging in to the AI service, see AI login.)

AI actions are available:

pic_10470

Picture: Article card - AI functions

Book Contents

Book Index

Examples of generating a description and category

Generating the Short description

pic_10472

Picture: Generating the short description

Generating the Long description

pic_10471_202504

Picture: Generating the long description

Category suggestion

pic_10473_202504

Picture: Category suggestion

Book Contents

Book Index

AI preparation of parameters and filters for the e-shop

The preparation of article parameters and the setup of filters for the e-shop are made easier by three standard functions using artificial intelligence (AI). The functions help to:

Before using the functions, access to the AI service must be set up in the AI login module and the Default AI login field must be filled in in Multi company administration. The detailed procedure is given in the chapter AI login.

Function

Where to run

Purpose

Fill in parameters from description

Article book, ribbon Function > E-shop AI

Suggests missing parameter values from the long description of the article.

Unify values (AI)

Parameters book, toolbar

Unifies different notations of values of the same parameter on article cards.

Suggest filters

Article category book, ribbon Function > E-shop AI

Suggests the selection of parameters for filtering, their order and the filter type.

Recommended procedure for preparing the article catalogue on the e-shop

  1. We prepare the articles and their parameters. On the article cards, we check the long descriptions on the Eshop tab and the assigned Classification on the Parameters tab.
  2. We fill in the missing values. Using the Fill in parameters from description function, we let the values of the parameters contained in the Classification be found in the descriptions.
  3. We unify the notation of values. Using the Unify values (AI) function, we unify, for example, different notations of colours or numerical data with units.
  4. We suggest category filters. Using the Suggest filters function, we prepare filters according to the article parameters in the individual categories.
  5. We check the result. We verify the correctness of the values on the article cards and the filter settings in the categories (Filtering parameters field).

The individual steps can also be performed separately. For example, if the articles already have the parameters filled in, we can start by unifying their values.

Book Contents

Book Index

Filling in parameters from the description

The Fill in parameters from description function is used to fill in missing parameter values from the Classification. The function analyses the long description of the article on the Eshop tab and searches it for parameter values. Based on the data found, it suggests filling in the missing values of the parameters from the Classification assigned on the Parameters tab of the Article card. We use the function, for example, when technical data is given in the descriptions supplied by the manufacturer but is not yet filled in as separate parameters.

The function is available in the Article book, in the ribbon on the Function. tab. It is run in Change mode or in bulk on marked records.

pic_1703860

Picture: Article card - Fill in parameters from description function

The following are essential for processing:

Procedure of use

  1. In the Article book, we open the card in Change mode, or select multiple cards for bulk processing.
  2. We check that the article has a long description filled in and the corresponding Classification assigned.
  3. We run the function Fill in parameters from description.
  4. We check the suggested values against the description and the actual properties of the article.

Example:

The long description of the product states: "Black design, power input 1,500 W, weight 4.2 kg."

If the Classification contains the parameters Color, Power input and Weight, the function can suggest filling in their missing values from the description.

Recommendation

The description should contain unambiguous data relating to the specific product. We pay particular attention to texts that describe several variants at the same time or mention the properties of accessories. We always compare the suggested values with the actual properties of the article.

Book Contents

Book Index

Unifying parameter values

The Unifying parameter values function unifies different notations of the values of one parameter on all article cards. Different notations arise, for example, during manual entry or when importing data from multiple suppliers. The same colour can then be entered as "black", "Black", "BLACK" or "blk". Such differences impair the usability of filters and sorting on the e-shop.

The function is available in the Parameters book in the toolbar. It is run on one specific parameter or on all marked parameters. The unification of their values applies to all article cards on which they are used.

pic_1703861

Picture: Article card - Fill in parameters from description function

The function processes only text parameters that have values filled in on article cards. It skips other parameters. It writes the reason for skipping into the processing log.

How it works

For the processed parameter, the function collects a list of all distinct values used on article cards and sends it to the AI service. The AI suggests how to unify them.

Depending on the nature of the values, the suggestion may include:

Neither the values nor the settings of the parameter change until we confirm the suggestion.

Unifying numerical data

For text values containing a number and a unit, the function can suggest conversion into numerical values in one unit. Optionally, the parameter can be switched to a numerical data type.

For example, the notations "1,5 kW" and "1500W" can be expressed as the same numerical value in the unit W.

When checking the suggestion, we pay attention to the target unit and to expressions indicating an approximate value, for example "approx. 2 kW".

Unifying word values

The function suggests assigning word variants and synonyms to uniform values of the PPV code list.

For example:

Original notations

Example of a unified value

black, Black, BLACK, blk

black

Processing may include creating new values in the code list. Optionally, the following can be switched on:

Procedure of use

  1. We open the Parameters book.
  2. We select one parameter or mark multiple parameters.
  3. We run the function Unify values (AI).
  4. We check the suggested assignment of the original values to the resulting values.
  5. For numerical data, we verify the conversions and the target unit. For word values, we verify the correctness of merging the individual variants.
  6. As needed, we select the offered changes to the parameter settings.
  7. We confirm the suggestion. Without confirmation, the changes are not made.
  8. In the processing log, we check any skipped parameters and the reasons why they were skipped.

Book Contents

Book Index

Category filter suggestion

The Suggest filters function suggests filters for an e-shop category based on the statistics of the article parameters in the given category. It determines which parameters are to be used for filtering, in what order and with what filter type.

The function is available in the Article category book, in the ribbon on the Function. tab. It is run on one specific category or in bulk on all marked categories.

pic_1703863

Picture: Article category - Suggest filters function

The suggestion is based on the statistics of the article parameters in the relevant category. The approved settings are written to the Classification defined on the category in the Filtering parameters field.

How it works

The function prepares a suggestion of:

The settings do not change until we confirm the suggestion. After confirmation, the function writes the approved filters to the target Classification and removes the unused parameters from this Classification.

Note: Confirmation can therefore also change the existing list of filtering parameters. Before approval, we also check which parameters will no longer be in the resulting settings.

Procedure of use

  1. We open the Article category book.
  2. We select a specific category or multiple categories for bulk processing.
  3. We check the Filtering parameters field and the relevant Classification.
  4. We run the function Suggest filters.
  5. We assess the suggested parameters, their order and filter types.
  6. We also check the parameters that are to be removed from the target Classification.
  7. We confirm the suggestion. Without confirmation, the changes are not made.
  8. We check the resulting settings in the Classification used for filtering.

Book Contents

Book Index

Translations of fields and texts

The K2 system offers several ways of working with translations:

The actions are available in all modules that support translations. The actions are located in the ribbon on the Function tab in the Translations section and are displayed only when they are currently available:

Translation functions are available in the following modules:

pic_1703610

Picture: Web news - translation functions in the ribbon

Book Contents

Book Index

Fields translations (Ctrl+F11)

Fields translations are a function that greatly facilitates the work of translating individual fields into foreign languages.

The function opens a form with all translated fields. Here, the user can make translations into various languages. These are made using row editing (i.e. by double-clicking the translated field). If it is a field containing a description, a new form with a toolbar for easy editing appears to the user.

The Fields translations function (Ctrl+F11) is available for these books and code lists:

  1. Articles
  2. Article category
  3. Categories - tree
  4. Web menu
  5. Text pages
  6. Subscriptions for e-shop
  7. Payments for e-shop
  8. Banners
  9. Blogs
  10. History, time dimension
  11. Career, job offer
  12. Module categories
  13. For download
  14. Web contact persons
  15. Web news
  16. Pictures
  1. Questions and Answers
  2. Web partners
  3. Branches
  4. Support and help
  5. Portfolio
  6. Our strengths
  7. Reference
  8. Glossary of terms
  9. Social networks
  10. Training, offering courses
  11. Dates
  12. Videos
  13. Branches
  14. Parameters
  15. Allowed parameter values

pic_4804_202507

Picture: Fields translations form

pic_4805

Picture: Fields translations - description form

The Export translations to Excel button exports the currently displayed or asterisked items to Excel in the format Item No. (ItemId), Item name (ItemName), Field identifier (ProgName), Field name (FieldName), Default language (DefaultValue) and the codes of the languages available in K2.

Using the Import translations from Excel button, we import a file with defined translations. It can have a different format than the file generated by the export, but it must contain the columns ItemId, ProgName and DefaultValue; the other columns are optional (ItemName and FieldName serve only as information for the translation). After the import is completed, the number of imported items and an error log are displayed.

The Automatic translation of texts button automatically translates all translated fields using DeepL technology or an AI model. For this function, automatic translations must be set up correctly in Multi company administration, see the chapter Automatic translation of texts.

Book Contents

Book Index

Automatic translation of texts

IS K2 allows automatic translation of texts or even entire pages intended for the web and e-shop. Automatic translation in the K2 system allows automated translation of, for example:

Translations can be made using DeepL technology or by means of AI models.

Translation using DeepL

DeepL is an external translation service providing high-quality machine translations between various languages.

This variant is particularly suitable for e-shops operating on international markets, where emphasis is placed on consistent and fast translations of larger volumes of data.

Translation using AI

Translation using AI models allows more flexible work with the text and its adaptation to specific needs.

The user can:

This approach is particularly suitable in cases where it is necessary to:

After starting the Automatic translation of texts function, a form for selecting the source and target language is displayed. The source language is pre-filled automatically.

pic_10618_202507

Picture: Selection of the source and target language of the translation

After selecting the target language, we can modify the translation settings using the Text translation configuration button. By default, the configuration defined in Multi company administration is loaded. However, the settings can be changed for a specific translation.

Within the configuration, it is possible to:

pic_1703623

Picture: Text translation configuration form

After the translation is started, the translated text is automatically written to the relevant fields.

Book Contents

Book Index

Availability

1. Translate fields form (Ctrl+F11)

pic_10689_202507

Picture: Fields translations - Automatic translation of texts

2. Data modules

pic_10607_202603

Picture: Article (e-shop) - Automatic translation of texts

3. Web texts module

pic_10688

Picture: Web texts - Automatic translation of texts

Book Contents

Book Index

Automatic text translation settings

The automatic translation settings are available in the Multi company administration form on the Basic Settings tab, in the Automatic translation settings. section

In this part, it is possible to select the method by which automatic translations will be carried out in the system:

By default, the option Do not use is set. With this setting, automatic translations are not active and all buttons for automatic translations are hidden in the system.

pic_1703466_202507

Picture: Multi company - Automatic translation settings

Automatic translation configurations are set using the buttons AI translation configuration and DeepL configuration. In these forms, the parameters of the specific translation method are set (e.g. access credentials, model or other specific settings).

Book Contents

Book Index

AI translation configuration

In the AI translation configuration, it is possible to set:

In the Configuration for target language section, it is possible to define specific settings for individual target languages. This configuration is based on the global settings and makes it possible to adjust the translation parameters for a specific language (e.g. style, terminology, etc.).

It is therefore possible to:

pic_1703607

Picture: AI translation configuration

pic_1703608

Picture: AI translation configuration - Configuration for target language

Book Contents

Book Index

DeepL configuration

The DeepL configuration includes:

  1. setting the DeepL API key,
  2. global configuration of text translation,
  3. configuration of text translation for specific target languages.

General settings

To access the API, it is necessary to enter a valid API key (API Key), which you obtain after registering at https://www.deepl.com/en/pro-api. We enter the DeepL API key in the DeepL configuration on the General settings. tab

pic_1703467

Picture: DeepL configuration - General settings

Global text translation configuration

Global text translation configuration serves as the default setting and contains extended options for text translation.

The configuration contains an option for automatic format detection (currently supported formats are HTML and plain text). If the option Automatically detect text format is checked, the translation automatically evaluates which text format it is and translates it according to the configuration of the given format. If it is not checked, a uniform configuration is used for all text regardless of the actual input format.

Other configuration options can be defined according to the options of the DeepL API, see Translate text - DeepL Documentation. (WARNING: not all target languages support all configuration options. When setting up the configuration, it is necessary to follow the official DeepL documentation and respect the restrictions of individual language combinations.)

.pic_1703469

Picture: DeepL configuration - Global text translation configuration

Configuration for target language

This part contains a table in which it is possible to define the configuration for specific target languages. In practice, it is the same configuration as the global one, but each target language can have its own specific translation settings.

pic_1703470

Picture: DeepL configuration - Configuration for target language

Use of the configuration during translation

When the automatic translation is started, the configuration is used according to the following rules:

When translating into several target languages at the same time, the global translation configuration is always used.

Import and export of the configuration

The global text translation configuration can be exported and imported in XML format using the functions Export configuration and Import configuration.

Book Contents

Book Index

Open Graph

Open Graph (OG for short) is a protocol that allows websites to control how their content is displayed when shared on social networks.

The metadata information is written to the header of the HTML document using meta tags and determines:

The implementation of Open Graph ensures:

Without defined Open Graph metadata, external platforms derive the information automatically, which can lead to an inaccurate or inappropriate preview.

Note: The preview may be stored in the cache of the given platform. A change of metadata may therefore not take effect immediately.

pic_1703471

Picture: OG preview

Book Contents

Book Index

Implementation of Open Graph in IS K2

For the correct content type (product, article, place, website) to be displayed when sharing a link and for a relevant picture to be used according to the page type and data availability, it is necessary in IS K2 to:

Both the default and specific OG pictures must be publicly available at a URL address without access restrictions.

1. Setting the OG type on text pages

When a new text page is created with the Page type field filled in, the corresponding OG type value is filled in automatically.

The mapping is as follows:

For text pages that do not have a Page type defined, the OG type field must be filled in manually.

pic_1703472

Picture: Text page - OG type field filled in according to the Page type

2. Setting pictures for Open Graph

The picture displayed when sharing is determined in the following order:

  1. If the page has a picture set in the category Picture: Open Graph, this picture is used.
  2. If it is a product or category without an OG picture, the main picture of the product or category is used.
  3. If no picture is available, the default OG picture from the Web and e-shop module is used.

This ensures that there is always a picture when sharing, provided at least one source is available.

Category Picture: Open Graph

The category Picture: Open Graph is intended for a specific picture used exclusively for Open Graph. It can be used on all detail pages (product, article, branch, etc.).

Recommended picture parameters:

pic_1703473

Picture: Article - setting the Open Graph category picture on a product

pic_1703474

Picture: Webs and e-shops - setting the Open Graph category picture on the website

Book Contents

Book Index

Links

In some modules, there is an option on the Attachments tab to switch to the Links sub-tab. It is currently used mainly for websites and e-shops to attach pictures and other related files that are to be displayed on the website/e-shop.

pic_3697

Picture: Article book - Attachments - Links sub-tab

In links, we work with Categories and Link types.

Overview and settings of Link types

Type

File extensions

Document

doc, docx, odt, fodt, rtf, txt, xls, xlsx, ods, fods, csv, sylk, xml, pdf

Picture

jpg, jpeg, png, bpm, gif

Link

http:, https:, ftp:, sftp:

Other

 

Video

mov, avi, mp4, mpg, mpe, mpeg

Overview of categories and their default combinations with Link types

Type

Category - Abbreviation

Use for e-shop

Document

Documents

It is displayed on the Media tab in the Documents section.

Picture

Main detail picture*

For the article detail, banners

Picture

Main picture - tile*

For display in the tile list of articles

Picture

Main picture - thumbnail*

For the basket, history, category icons

Picture

Main picture - list*

For display in the row list of articles

Picture

Gallery - slider thumbnail

For the thumbnail in the slider of the displayed gallery

Picture

Gallery - full size

Full size of the picture from the gallery

Picture

Gallery - medium thumbnail

For the overview of pictures in the gallery

Picture

Gallery - larger thumbnail

Currently not used.

Link

Youtube

It is displayed on the Media tab in the Videos section.

Other

Other

Not used for the e-shop.

Video

Videos

It is displayed on the Media tab in the Videos section.

* On the Article card or other records, exactly one picture of this category may exist for e-shop purposes; it graphically represents the given record.

We insert a new link into the table using the buttons displayed below the tab label or with the Ins key. We can then set or modify the Name and Description of the link.

Inserting a new link with a button

To insert a new link, either the Attach document button pic_968i or New item (Ins) pic_972i can be used. The Attach document button allows a new link to be inserted from the default combinations of link type and category (see above). A dialog window for selecting a file is displayed. According to the link type, a filter corresponding to the file extensions of the given type is displayed. We can "switch off" this filter by selecting the option All files (*.*) next to the file name field. Then we can select a file of any type. With the Open button, the selected file is copied to the location set by the function Image link storage configuration and a new record with this link is created in the link table.

Inserting a new link with the Ins key

We do not recommend this method because the source file is not copied - the link is created to the path we have entered.

If we press the Ins key, a form for inserting a new link is displayed. By entering the Link type, we restrict the subsequent selection of Categories (K2 does not allow us to enter a Link type other than the one set in the Category). Then we insert the path to the file.

Note: The standard e-shop or other K2 functionalities usually work with predefined combinations. If we create a different combination, or if we do not follow the set combination, it is necessary to verify whether it is actually displayed in the e-shop in the required way.

"Bulk" insertion of pictures using the script Adding a picture to an article

If we want to create a series of pictures for publication on the website/e-shop, the easiest way is to use the script: New e-shop - Adding pictures to articles (NewEshop_AddPicture.PAS), whose use is described in detail in the script catalogue.

Configure saving of documents and images

The settings for storing documents and pictures are a very important part of the functioning of the website/e-shop itself. This configuration is located in the module Web and e-shop - Administration and settings - Document and picture storage configuration.

There are two variants of where these links can be stored:

The Image Url Root field is intended for working with pictures that have been uploaded via FTP. Thanks to the URL address at which the pictures of the given e-shop are located, a preview is then available in IS K2.

pic_4875_02_2024

Picture: Image link storage configuration

Description of fields:

Upload to FTP

A flag that activates storing in the FTPUploadRoot folder if FTP is configured correctly - FTPSettings tab (more information below).

Use SFTP protocol

A flag that enables the use of the SFTP protocol if it has been configured.

Path to FTP directory

The folder in which the records are to be stored on the FTP.

Save file copies

The flag activates storing documents and pictures in the folder defined in the File System Root field.

Storage path

Path (inside the K2 root directory or a full path) where files (especially pictures) are stored. This path is taken into account when uploading pictures with the script Eshop - Adding pictures to articles or when adding links to the Attachments tab.

URL path to images

URL address at which the pictures of the given e-shop are located - it is intended for reading only. The FTPUpload flag must also be checked.

Delete files from storage

A flag which ensures that if a link to a picture or another attachment is deleted, it is automatically deleted from the storage as well. E.g. if a picture is on several article cards and is removed from one of them, it remains in the directory. If it is deleted from all cards for which it was used, it is also deleted from the directory.

Note: It is possible to have both storage variants selected or just one of them.

FTP (File Transfer Protocol) is used for transferring data between two computers that are not on the same network but are connected to the Internet. Since FTP is in a sense an intermediary between two computers, it serves as protection against possible misuse. To be able to use this protocol for transferring pictures and other attachments, it needs to be configured correctly on our computer. Furthermore, we will need to enter data into K2 so that it can communicate via FTP.

pic_4874_2024

Picture: Image link storage configuration - FTPSettings (FTP connection settings)

Description of fields:

Server

FTP address that we use for storing picture and other links.

User

User name for logging in to FTP

Password

Password for logging in to FTP

Port

Specifies the computer and port for the data connection. The client sends this command and waits for the data connection on the given port. There are various ports - among the most frequently used is port 21, which is set by default.

Use SSL/TLS

Using this encryption protocol can eliminate the risk of transferring passwords and data in readable form.

Data Protection

Protection and security for data transfer

Pasive

Passive mode switched on means that the server will listen and the client will initiate the data connection.

SFTP (SSH File Transfer Protocol) is used for transferring data between two computers that are not on the same network but are connected to the Internet. The SFTP protocol ensures secure data transfer using encryption, during which no unencrypted data of text files is transferred.

pic_7264_2024

Picture: Image link storage configuration – SFTP Settings (FTP connection settings)

Description of fields:

Server

SFTP address that we use for storing picture and other links.

Port

Specifies the computer and port for the data connection. The client sends this command and waits for the data connection on the given port. There are various ports - among the most frequently used is port 22, which is set by default.

User

User name for logging in to SFTP.

Authentication mode

Selects the authentication option, either by password or by private key.

Password

Password for logging in to SFTP.

Path to the private key

Path to the file with the private key. The private key must be in PEM format.

Pictures can be located anywhere; we recommend having both the pictures and the e-shop located in the so-called DMZ, i.e. outside the internal network. However, two points need to be set up:

Book Contents

Book Index

Adding a picture to an article
Script for the e-shop

Process number: ESH001

Script ID number: FESH023

File: NewEshop_AddPicture.pas

Script description: The script allows article pictures to be imported for a specific article, assigns them to the required categories and sets the required size.

The same picture is not attached to each article separately; only one picture is created for the first article card and its link is copied to the other marked article cards. The picture will therefore be placed in the K2 folder only once, with the number of the first article.

The script with the parameters "FileMask" and "PicturesDirectory" entered can be run as a scheduled task.

Address in the tree:

Script parameters - default value:

AddGallery -

True - the first attached picture is uploaded to the category "Gallery - full size" + "Main detail picture" (provided that no other picture exists in the category "Main detail picture"). All other pictures are uploaded only to the category "Gallery - full size".

False - the first attached picture is uploaded only to the category "Main detail picture" (if another picture with the category "Main detail picture" already exists, it is uploaded to the category "Gallery - full size"). All other pictures are uploaded only to the category "Gallery - full size".

ConvertGoodsPictK2 - NO.

When the parameter is switched to YES, the required series of pictures is created from a single (last) picture in K2 (stored on the 9th page - Link with the PICTK2 type).

DeleteGallery -

YES - deletes all original links of the picture type (LinkTypeId=1).

DeleteGalleryOnlyEshop -

False - with the parameter DeleteGallery = True set, deletes all pictures regardless of their assignment to e-shops.

True - with the parameter DeleteGallery = True set, deletes only the pictures assigned to the e-shop specified by the RIDEshop parameter. Pictures of other e-shops are kept on the article card.

DescrFormatString -

Description, formatted text.

FileMask-

File name mask. Text that must contain at the beginning, in square brackets, the name of the field that will be used to identify the article; currently these are the fields Id, Abbr, Abbr2, Name. Furthermore, it can contain one character used as a separator and the wildcard character * for "anything". For Categories, [Title] can be used. The mask must contain an extension. At the same time, the PicturesDirectory parameter must be entered. Examples: [Abbr]_* (PRE BLUE_GIANT.png) or [Id]#* (519#PRE BLUE.png) or [Abbr] (PRE BLUE.png).

LanguageId - 0

Determines the language number of the picture link.

 

If the parameter value is 0 (default value), the default language is used. If a value greater than 0 is entered, the specified language is added to the picture link and the picture will be displayed only in the corresponding language version of the e-shop.

PictureFile -

Path to a single picture, i.e. the file that is to be inserted as a picture. The parameter is used mainly for automated use, e.g. via RF.

PicturesDirectory -

Directory where the pictures are located.

RIDEshop -

Number (RID) of the e-shop that will be filled into the picture link on the article card - the picture will be displayed only for this e-shop.

TitleFormatString -

Name - formatting text

Book Contents

Book Index

Export XML feed for comparators

Process number: ESH001

Script ID number: FESH001

File: EshopXmlFeedExport.pas

Script description: The script allows article prices to be exported for Zboží.cz, Heureka and Google merchants. The result of the export are three XML files, each created separately for the given comparison site. The script goes through the articles published for the e-shop, exports their prices and at the same time assigns them to the category with the same products.

It is also possible to export article parameters or article availability for the main warehouse as well as for branch warehouses for the Heureka.cz server. If it contains an EAN, it is always exported and must be set as default.

In the export for Heureka, there are the elements PRODUCTNAME and PRODUCT.

The Name for e-shop (esName) is filled into the PRODUCT element, while the Name for comparison sites (esXmlTitle) is filled into PRODUCTNAME if it is filled in. If it is not filled in, the Name for e-shop. is used

Address in the tree:

Script parameters - default value:

AllowZeroPrices - No

Export also articles with zero prices?

AvailabilityFeedFileName - 'AvailabilityFeed.xml'

Name of output XML file for article availability.

Createlog -

when the parameter is switched on, a log with the export settings and a list of skipped articles will be created in the user's directory during the export

Currency -

Currency for the price export. If nothing is entered, prices are exported in the company currency.

CustomerID -

Number of the customer whose prices are to be exported. It is necessary to enter this parameter or the PriceGroupID parameter.

ElectronicAddressTypeId -

Id of the manufacturer's electronic address type for the export. If it is not filled in or the manufacturer does not have an address of the given type entered, the tag is not exported.

ExportAvailabilityFeed - No

Should a file for article availability be created?

ExportFileNameGoogle - GoodsFeedGoogle.xml

Name of the output XML file for Google Merchant.

ExportFileNameHeureka - ´GoodsFeedHeureka.xml´

Name of the output XML file for Heureka

ExportFileNameZbozi - ´GoodsFeedZbozi.xml´

Name of the output XML file for Zboží.cz

ExportFolder -

Folder to which the file is to be exported.

ExportFolderFTP -

To use this parameter, a connection to an (S)FTP server must be set up (in Web and e-shop administration and settings). Once the connection is set up and selected, this parameter allows the file to be uploaded to the selected directory on the (S)FTP. If the folder does not exist, the script creates it itself.

ExportFullDescription - No

Yes - an XML file with the full description instead of the short one is exported.

ExportMainGoodsCard - Yes

Yes - the XML feed export will include master cards.

ExportParametrs - No

Yes - an XML file including parameters is exported.

ExportSameProductAndProductname - No

Yes - the same value is filled into the PRODUCT and PRODUCTNAME tags, which can be affected by the name for the e-shop (if filled in) or by the IncludeManufacturerInProductName parameter if it is set to yes.

ExportVatRate - NO

Heureka has introduced a new VAT element in the XML feed https://sluzby.heureka.cz/napoveda/xml-feed/#VAT

Mandatory for shops selling articles with different VAT rates in the Heureka basket. Required for EET support in the Heureka basket.

 

Zboží.cz currently does not have such an element and their validator reports it as an error...

FieldForID -

Field whose value is to be filled into the product ID. Parameter options: Id, Abbr1, Abbr2, EAN. The default is Id.

FilterGUID -

GUID for identifying the filter. It is used to filter the articles that are to be exported. This makes it possible to restrict the export, e.g. of a seasonal assortment.

GiftText -

Name of the article that is displayed as a gift.

HeurekaExportOnlyInStock - No

Yes - only items in stock will be exported to the feed for Heureka.

ImageServerRootUrl -

URL address of the root of the image server.

IncludeManufacturerInProductName - No

Should the brand (manufacturer) be added to the beginning of the product name?

Language -

Language number for the export.

PriceGroupID

Number of the price group whose prices are to be exported. It is necessary to enter this parameter or the CustomerID parameter.

ShopRID -

Number of the e-shop for the article export.

UploadToFTP - Yes

No - the files are not uploaded to the (S)FTP server.

WeightMode -

Export of weight for articles; 0 - export switched off, 1 - net weight, 2 - gross weight

ZeroDaysAsInStock - No

Yes - articles that are not in stock but have a Zero warehouse text set with availability 0 (PropertyId = 0) will be exported as in stock.

Book Contents

Book Index

Page content editor

The page content, and thus its appearance, is the most important part of the entire e-shop. It creates the first impression on the customer and, if set up well, helps them to find their way around its content better. To make your e-shop as attractive as possible for the customer and as easy as possible to modify for the administrator, we have created the Page content editor.

The main goal of this editor is easy editing of page content. It should not be overlooked that, thanks to this auxiliary function, the resulting HTML code will not be damaged in any way (unlike edits made directly in K2). The user also immediately sees how their edits will look on the e-shop (not yet implemented in the integrated K2 editor). All aids for editing content, such as editing texts and adding pictures, tables, videos and other links, can be found by the user on the toolbar, which is displayed right after clicking into the field where we want to make changes. Edits can also be made for different language versions. Changes can be made only by users who have been granted the right to edit content.

The procedure for launching the page editor and for subsequently working with it is as follows:

1. First, it is necessary to find out the RID number, i.e. the number of the registered person who will have permission to edit the given e-shop. The RID numbers of registered persons are stored in K2, specifically in the module Webs and e-shops – General modules – Registration, where it is necessary to add a column by clicking the icon pic_1002i and selecting Edit table settings. A new window then opens, in which we search for the abbreviation "RID" (as a new item) and confirm with the OK button. In the list, we then find the person to whom we want to grant editing permission and copy their RID number.

2. In the folder of the installed K2 e-shop, there is a file config.php. We recommend using the PSPad program to edit it. In this file, we then search for the line #$CONFIG['editable'][] (RIDs of persons with permission to edit from the frontend after logging in). It must first be activated by removing the # character - the line immediately turns green. Then, to grant the right, we insert the RID number from K2 between the single quotes. The resulting form should look like this:

pic_4859

Picture: Editing the RID number in the config.php file

3. As soon as we log in (via the Google Chrome browser) on the e-shop under the login name that has been granted the right, we can freely edit the content. We can tell that the addition was successful by the 4 buttons displayed at the bottom right of the page, which help us switch to editing mode.

4. Meaning of the buttons:

pic_973i

A button that refreshes the cache of the entire website. All changes made on the website so far will be reloaded – this can significantly (temporarily) slow down the operation of the e-shop.

pic_974i

A button that refreshes the cache only for the displayed page. Changes made on this page will be reloaded and will immediately take effect for all customers on the e-shop.

pic_975i

A button that refreshes only the pictures that have been changed on this page.

pic_976i

A button intended for editing the page content. When pressed, the selected sections that can be edited on the website are highlighted (e.g. product description, product name, etc.)

5. As for the editing of content itself, after clicking the last blue button with a pencil we switch to editing mode. Fields that can be modified are marked with a light grey dashed line, which darkens after clicking. The editing options of the individual fields differ depending on what field it is. E.g. in the case of a short description or name, it is possible to edit only the text.

pic_4860

Picture: Field for editing text

In the case of a long description or another field containing HTML code, the user has a toolbar with various functions available.

pic_4861_01

Picture: Field containing HTML code with a toolbar

6. The toolbar offers an almost identical range of options as in K2. In addition, each button displays a short tooltip with its function when hovered over with the mouse. Here is a brief description of how these buttons work:

pic_977i

Back

Used if we want to go one step back.

pic_978i

Forward

Used if we want to move one step forward.

pic_979i

Pen style

Used to change the heading style. The user has several levels as well as normal text available.

pic_980i

Font size

Changes the font size. The user changes the size using a slider. Moving to the right enlarges the font, moving to the left reduces it.

pic_981i

Text colour

Changes the text colour. The user has a colour palette available from which they can select predefined colours.

pic_982i

Remove formatting

Removes all formats that have been set (e.g. font size or text colour). Returns the text to its original form.

pic_983i

Bold

The selected text is converted to bold.

pic_984i

Italics

The selected text is converted to italics.

pic_985i

Underline

The selected text is underlined.

pic_986i

Strikethrough

The selected text is struck through.

pic_987i

Picture

If there are pictures for the given text page in K2, it allows them to be selected. If not, they must first be added there. E.g. for a product, all pictures that were attached in K2 on the Attachments tab are displayed.

pic_988i

Superscript

The selected text is converted to superscript.

pic_989i

Subscript

The selected text is converted to subscript.

pic_990i

Align left

The selected text is aligned to the left.

pic_991i

Align centre

The selected text is aligned to the centre.

pic_992i

Align right

The selected text is aligned to the right.

pic_993i

Numbered list

The selected text is converted to a numbered list. Each paragraph will be marked with a sequence number.

pic_994i

List

The selected text is converted to a list. Each paragraph will be marked with a predefined bullet.

pic_995i

Remove indent

The indent is removed from the selected text.

pic_996i

Add indent

An indent is added to the selected text.

pic_997i

Link

A link is added to the selected text by means of a URL address, which must be inserted in the absolute / relative URL field. Absolute URL means any web page (e.g. www.k2.cz), relative URL means that we can refer to a text page of the given website/e-shop by adding only the URL ending (e.g. "/kontakty"). When creating a link, the user can also choose to create a button, or have the link open in a new tab when clicked. To edit a link, simply click the created link in the text and the original options are displayed, as well as the Delete button.

pic_1027i

Anchors

A so-called anchor is assigned to the selected line. Anchors are used to create links within the content of a web page - they allow easier movement and orientation on the website. After the anchor is created, an icon with the letter i. is displayed on the right side. After clicking it, the URL address of the anchor, to which we can refer in the text by adding a hyperlink, and the name of the anchor are visible.

pic_998i

Table

To create a table, the user must enter the number of rows and the number of columns. They can also choose whether they want the first row to be the table header as well. Once the table is created, the user can continue to edit it. Clicking anywhere in the table displays the options: Add row/column, Remove row/column or Delete table.

pic_999i

Video

To insert a video recording, it is necessary to add a link with the URL address and confirm with the Save button. The selected video will then appear where the cursor was placed in the text.

7. After editing the text, the edits can be saved using the green floppy disk button pic_1000i, or the editing mode can be ended with the red cross pic_1001i.

8. If we know that there will be more edits, we can refresh the cache in bulk after all edits. If we want the changes to take effect immediately, it is enough to refresh the cache only for this page after saving the edits.

Book Contents

Book Index

Newsletter settings

A newsletter is a type of e-mail message sent by companies to users who have expressed interest in it. It is one of the basic and at the same time very effective online marketing tools. The user can give consent to receiving the newsletter during registration. Another option is while browsing the e-shop, where a newsletter subscription panel is located above the bottom menu.

pic_5254

Picture: Location of the newsletter subscription panel on the website/e-shop

Setting up the collection of e-mails for sending the newsletter:

1. Creating a text page with the pageNewsletter template (this is the page the user reaches after clicking the activation link in the e-mail).

2. Setting this text page in Web and e-shop settings, tab Pages - User options - field Consent to sending information and offers.

pic_5250_2024

Picture: Webs and e-shops - Web and e-shop settings (Configuration of specific pages)

3. Setting the relevant e-mail action template in Web and e-shop settings, tab Documents, records - field Sending confirmation of information subscription. The action NewsLetterConf is used by default.

pic_5251_2024

Picture: Webs and e-shops - Web and e-shop settings (E-mail action settings)

4. Next, it is necessary to create, or import or modify an already existing e-mail template for sending the newsletter. Sample template content is available with every K2 installation in the directory \SupportFiles\EmailTemplates\

5. Setting the activity type for consent/non-consent to receiving the newsletter in the folder Administration and settings - Web and e-shop - General settings in the section Sending information and offers - fields Activity type for consent and Activity type for withdrawal of consent. Each time a user subscribes to the newsletter, a new activity with the set type is created.

pic_4327_2024

Picture: Administration and settings - Web and e-shop - General settings (Sending information and offers)

5. The collected e-mail addresses can be displayed and further worked with via the Registered e-mails book (this is the data module TD_RegisteredAddress).

pic_5252

Picture: Registered emails book

Book Contents

Book Index

Initialization of a new e-shop

Process number: ESH001

Script ID number: FESH030

File: InitNewEshop.PAS

Script description:
The script is intended for creating basic text pages with all required fields. It then assigns these text pages in Web and e-shop settings on the Specific pages tab to the field where they belong. Furthermore, it creates 4 basic menu types (eshopHeaderMenu, userProfile, userProfileSide, eshopFooterMenu) including their items, i.e. text pages. The script can be run only on the Webs and e-shops book, where we select the relevant website/e-shop for which the basic setup is to be performed.

Address in the tree:

Book Contents

Book Index

Shopping basket analysis

Do you want to know which related products to offer customers during their purchase? Shopping basket analysis will help you with that.

The task of the analysis is to determine which articles to offer the customer so that the probability of a purchase is as high as possible. Market basket analysis offers ways to give the customer the right purchase impulse at the right moment.

The main benefit is an increase in sales, strengthening of customer relationships and a higher conversion rate. The information obtained will help improve direct marketing, sales promotion, loyalty programs, etc.

The goal is to identify common patterns of purchasing behaviour based on large data sets. Shopping basket analysis generates a set of rules in the form "if article X is in the basket, then article Y is there as well". Each such rule connects two kinds of articles with a link.

Shopping basket analysis is designed as self-service. This means that the user first enters the time period on the form, filters the sales orders and articles on which they want to calculate the analysis, and then starts the calculation. The resulting report is saved to the database. The user can thus display the result of the last run analysis again at any time.

Shopping basket analysis includes 3 scripts:

  1. Setting the analysis parameters (DataMining_Parameters.pas)
  2. Running the analysis (DataMining.pas)
  3. Listing the analysis results (DataMining_Results.pas)

Book Contents

Book Index

Setting the shopping basket analysis parameters

Before running the analysis itself, it is necessary to first create a database, set the parameters affecting the analysis and select the data on which the analysis will be performed.

The script DataMining_Parameters.pas. is used for this purpose

pic_7372_202112

Picture: Setting the shopping basket analysis parameters - default values

All parameters can easily be filled in with the Load default configuration button. The loaded default values can then be modified as desired. After loading the default configuration, all data filtering items are marked (the exception being Article types, where only the types "Article", "Set" and "Master card" are marked by default), i.e. the analysis will be performed on all data.

The Load saved configuration button is used to display or modify the most recently created configuration. Loading a saved configuration is useful when we run the analysis repeatedly, as we do not have to fill in the parameters and select the data again.

The Delete configuration button deletes the configuration only from the form, not from the disk.

Description of fields:

Analysis database name

All data related to the analysis will be stored in a database with this name. If the name of the main database is "K2" and the client name is "DEMO", a database named "K2_DEMO_DATAMINING" will be created.

Database user for access to the analysis database

This is the database login that is granted access to the analysis database. Set to "K2" by default.

Issue date of sales order from

Filters sales orders from this date. Can be ignored by setting the "IgnoreXMLDateFrom" parameter in the DataMining.pas script.

Issue date of sales order to

Filters sales orders up to this date. Can be ignored by setting the "IgnoreXMLDateTo" parameter in the DataMining.pas script.

Note: The "IgnoreXMLDateTo" parameter is enabled by default. If you want to use the Date of issue TO, the parameter must be disabled.

Minimum net amount of sales order

Filters sales orders from a certain net amount. Can be ignored by setting the "IgnoreXMLVolumeFrom" parameter in the DataMining.pas script.

Note: The parameter shows the company currency, however the analysis takes into account the net amount on the sales order, no currency conversion takes place. Both a sales order with a net amount of 1 000 000 CZK and a sales order with a net amount of 1 000 000 EUR will be included in the analysis.

Maximum net amount of sales order

Filters sales orders up to a certain net amount. Can be ignored by setting the "IgnoreXMLVolumeTo" parameter in the DataMining.pas script.

Note: The parameter shows the company currency, however the analysis takes into account the net amount on the sales order, no currency conversion takes place. Both a sales order with a net amount of 1 000 000 CZK and a sales order with a net amount of 1 000 000 EUR will be included in the analysis.

Minimum support

This is the percentage expression of the number of occurrences of one article card across all sales orders. In other words, on what percentage of all sales orders the given article occurred. If we have 100 sales orders and the given article occurred on 25 of them, the support will be 25%.

This setting therefore specifies the minimum allowed percentage threshold of article occurrence on sales orders.

Note:

Companies have many article cards; some get into sales orders more often than others, and some may never get there at all, so it is very important to pay attention to this parameter.

If it is set too high (e.g. 10 %), the analysis may return no results, because most article cards will be filtered out.

If it is set too low (e.g. 0.0001 %), the analysis will return too many results and many of them may not make sense (for this reason another parameter, "Minimum number of occurrences of recommended article", was introduced to solve this problem).

The optimal minimum support setting ranges between 0.01 % and 1 %, but it may differ in each company depending on its sales data.

The default value is 0.01 %. However, we recommend testing in advance whether this value makes sense or whether it needs to be decreased.

Minimum confidence

This is a percentage expression of how often a combination of items occurred together in the past.

Let us take, for example, item A and item B (B = recommended item). Item A occurred on some percentage of sales orders and was sometimes on the same sales order as item B.

If item A was always on the same sales order as item B and never occurred on its own, the confidence will be 100%. If item B occurred on only 50 % of the sales orders on which item A occurred, the confidence will be 50%.

This setting therefore specifies the minimum allowed percentage threshold of occurrence of an article combination on sales orders, or in other words, how often this combination was respected.

There are 2 possible strategies for choosing this threshold:

1. If we are only interested in items that were almost always sold together, we can choose a higher confidence of 70 % - 100 %.

  • This setting ensures that the end customer always gets offered items that were sold together.
  • The problem here may be newly added articles that have not yet had a chance to show sufficiently in the sales data. Such articles will have low confidence and will be filtered out of the analysis.

2. If we are interested in items whose sales we want to increase or which have not yet had a chance to show sufficiently in the sales data, we can choose a lower confidence threshold of 10 % - 100 %.

  • This setting ensures that the end customer gets offered items that may not have been sold together very often.
  • However, we assume that the customer will also buy the recommended item and thus increase the confidence. As a result, the confidence will gradually grow to higher percentages, and sales should increase as well.

The default value is set to 50 %, but here too it depends on the data of the particular company, just as with support, so it is recommended to test whether the selected value makes sense or needs to be adjusted.

Minimum lift

This is a numerical expression of how much the given combination of items is mutually dependent (in other words, the strength of the given combination).

This number ranges from 0 to infinity; the higher the number, the more mutually dependent the given combination is.

If the value is greater than 1

  • The combination is mutually dependent and the sales of item A affect the sales of item B (B = recommended item)
  • For example, if item A is out of stock, its sales will slow down and therefore the sales of item B will slow down as well
  • If the price of item A increases significantly and this causes its sales to slow down, the sales of item B will slow down too
  • Conversely, if item A sells more, item B will also sell more
  • The higher this number, the greater the dependence of item B on item A, and vice versa

If the value is equal to 1

  • The combination of items is mutually independent
  • In other words, the sales of item A do not affect the sales of item B

If the value is less than 1

  • The combination of items has a negative impact on each other
  • These combinations should never occur together, as there is a risk of reduced sales of item A or item B

The default value is set to 1.1 as the minimum threshold (the impact on sales will be positive).

If we want to detect negative combinations, the threshold must be lowered.

Minimum number of occurrences of recommended article

It is closely related to the minimum support setting.

Minimum support is a very important parameter that affects the whole analysis. However, there may be a problem with setting its optimal value, because it is a percentage expression of the number of occurrences of the given article across all sales orders.

Minimum number of occurrences of recommended article is not relative but absolute. It thus solves the problems of minimum support, because it specifies how many times the given article occurred on sales orders (as a count).

Settings:

  • Minimum support is an important parameter for the algorithm performing the analysis, so it always has to be set. It also takes precedence over the other parameters.
  • If we want to use the parameter for the minimum number of occurrences of recommended article, we must set the minimum support to the lowest value allowed in the form. Then we can set the Minimum number of occurrences of recommended article parameter to a value of our choice.
  • If we do not want to use this parameter, we set it to 1. In that case, filtering will be based on minimum support only.

By default, this parameter is set to 1.

Minimum size of left side of set

This is the minimum number of items on the left side of the combination, i.e. items we have in the basket or in the set.

If the parameter is set to 1, it is assumed that we want 1:1 combinations (1 item in the basket + 1 recommended item). For this type of combination, articles can be added to related articles and recommended on the e-shop.

If the parameter is set to a number greater than 1, it is assumed that we have an N:1 combination (N items in the basket/set + 1 recommended item). For this type of combination, articles cannot be added to related articles and cannot be recommended on the e-shop. It only serves as a preview of what potential sets (gift sets, etc.) might look like.

The default value is set to 1.

Maximum size of left side of set

This is the maximum number of items on the left side of the combination, i.e. items we have in the basket or in the set.

The same restrictions apply here as for the previous parameter "Minimum size of left side of set". It is only the upper limit of the set for preview.

The default value is set to 1, so the 1:1 combination will be used.

After setting the parameters, the data on which the analysis will be run are filtered.

Books of sale settings

Only sales orders from the selected books of sale will be loaded into the analysis.

pic_7373

Picture: Parameter settings - Books of sale tab

Suppliers/Customers settings

Only sales orders issued to the selected customers will be loaded into the analysis.

Note: Sales orders from the e-shop are usually issued to a specific supplier/customer. If we are only interested in sales orders from the e-shop, we recommend deselecting all suppliers/customers and selecting only the one intended for the e-shop.

pic_7374

Picture: Parameter settings - Suppliers/Customers tab

Article settings

pic_7375

Picture: Parameter settings - Articles tab

Master card

Substitute article with Master card

 

If master cards are used in IS K2, combinations of article variants, e.g. different sizes, colours, etc., may start appearing in the analysis results. To prevent this, this option can be checked and the combinations will be formed by master cards, not by their variants.

If an article that has no master card is analysed, the analysis will treat it as a normal article and it will also be included in the analysis.

Targeted article analysis

It is used for a specific analysis of a particular article, which will be displayed in the results.

Article on the left side (in basket)

 

The analysis will process all possible combinations only for one particular article in the basket that we are interested in. E.g. we are interested in what people buy after they buy article A.

Article on the right side (recommended article)

The analysis will process all possible combinations only for one particular recommended article that we are interested in. E.g. we are interested in what people buy before they buy article B.

Filters

Filter intended for displaying the top x best-selling articles on a particular e-shop.

Eshop

Selection of the e-shop.

Number of best-selling articles

Top x article cards we are interested in.

Filter

Starts the filtering.

Articles

Only the selected article cards will be loaded into the analysis.

Settings of article types, article kinds, article groups and article codes

Articles that have any of the selected types, kinds, groups or codes set will be included in the analysis. Articles that have any of the unselected types, kinds, groups or codes set will be filtered out.

After filling in the form and confirming the settings with the OK button, the database is checked. If this is the first run and the database does not exist, an error message is displayed:

pic_7443

Picture: Error message - non-existent database

After pressing OK, we will be prompted to display the SQL script for creating the database:

pic_7376

After pressing the Yes button, the SQL script opens, which an appropriately authorized person runs on the SQL server (e.g. in Microsoft SQL Server Management Studio). Without this step it will not be possible to save the parameters or run the analysis. After correct setup, the database will be ready and you can continue.

The form has remained filled in in the background, so it is possible to press OK. again. This sets the parameters and prepares the environment for the analysis.

First, the installation of the R language program extension starts. During the installation, the user may be prompted to allow the installation, i.e. to allow administrator privileges intended only for the installation. After confirmation, the installation continues until it is finished. Then the parameter settings are saved and finally a message about successful setup is displayed, with information on where the saved parameters can be found.

pic_7442

Picture: Message about successful generation of parameters

Book Contents

Book Index

Running the analysis

After creating the database, setting the analysis parameters and selecting the data, we can proceed to processing the analysis itself.

The shopping basket analysis is run using the DataMining.pas. script. The script is primarily intended to run on the AS as a scheduled task.

The most suitable time for running the analysis may vary. The analysis itself can run from a few seconds up to several tens of minutes, depending on the volume of processed data and the hardware used. A minimum of 10GB of RAM is recommended, but the more, the better.

The script can also be run locally, but there is a risk of insufficient performance resources.

Script parameters:

Ignore minimum net amount of sales orders from the set parameters (IgnoreXMLVolumeFrom)

Overrides the setting of the minimum net amount of sales orders from the set parameters. As a result, sales orders without this restriction get into the analysis data.

Ignore maximum net amount of sales orders from the set parameters (IgnoreXMLVolumeTo)

Overrides the setting of the maximum net amount of sales orders from the set parameters. As a result, sales orders without this restriction get into the analysis data.

Ignore minimum date of issue of sales orders from the set parameters (IgnoreXMLDateFrom)

Overrides the setting of the minimum date of issue of sales orders from the set parameters. As a result, sales orders without this restriction get into the analysis data.

Ignore maximum date of issue of sales orders from the set parameters (IgnoreXMLDateTo)

Overrides the setting of the maximum date of issue of sales orders from the set parameters. As a result, sales orders without this restriction get into the analysis data. It is important to enable this if the analysis should always run on current data.

Show log file at the end (ShowLog)

It only makes sense when the script is run locally by the user. If the script runs on the AS as a scheduled task, the log is never displayed.

Remove duplicate and statistically insignificant records (RemoveRedundantResults)

For a 1:1 analysis (combination of 1 article in the basket + 1 recommended article) there is no point in enabling it, because duplicates never occur. It makes sense to enable it for N:1 sets (combination of N items in a set + 1 recommended item for the set).

Use memory optimization at the expense of speed (MemoryOptimized)

If the script crashes, it is probably caused by insufficient RAM on the PC processing the analysis. When this parameter is enabled, RAM requirements are reduced, but the analysis will be slower as a result.

Use fast data transfer to the database (QuickDBInsert)

By default, data are inserted into the database sequentially, i.e. in a slower way. The advantage is that no special rights are required, but the script may appear frozen during the data transfer. With a high volume of data, this operation can take from several minutes to tens of minutes.

When this parameter is enabled, data will be inserted into the database via files, i.e. in a faster way (from several seconds to tens of seconds). The "bulkadmin" database right is required for the database login that accesses the analysis database. By default, this login is named "K2" (it can be set in the analysis parameter settings). Sufficient free capacity is also required on the disk on which the database server runs, due to the risk of the transaction log filling up.

It is not recommended to enable this parameter if the database server runs on a different server than the one on which K2 is installed (due to file rights, reading from network drives, etc.).

Book Contents

Book Index

Description of possible errors when running the shopping basket analysis and their solutions
Error during data initialization – R was not installed

Reason:

Solution:

Error when connecting to the analysis database

Reason:

Solution:

The error will also contain a more detailed description, which can be followed. If the more detailed description is not sufficient, the error may be caused by the following:

  • The database server may be unavailable (e.g. the connection is offline)

Solution: Make sure that the connection is online and the database server is available.

  • The database was not created or may have been deleted

Solution: Run the Analysis parameter settings form again, set the parameters and confirm the form.

  • The set database login does not exist or does not have access to the analysis database

Solution: The authorized person responsible for SQL server administration must verify this and correct it if necessary.

Error when creating database tables

Reason:

Solution:

The error will also contain a more detailed description, which can be followed. If the more detailed description is not sufficient, the error may be caused by the following:

  • The user running the analysis may not have access to the analysis database

Solution: Run the analysis under a user who has access to the database.

  • The user may not have rights to create tables

Solution: The authorized person responsible for administration of the SQL server or K2 must verify this and correct it if necessary.

Error when loading shopping baskets

Reason: The error may be caused on the SQL server side while executing the SQL query.

Solution: The error will also contain a more detailed description, which can be followed.

Error when creating the R script

Reason: The error may be caused by insufficient permission to write to the analysis directory.

Solution: The error will also contain a more detailed description, which can be followed. If the more detailed description is not sufficient, the necessary permissions can be granted to the system user under which K2 is running.

Error when creating the command

Reason: The error may be caused by insufficient permission to write to the analysis directory.

Solution: The error will also contain a more detailed description, which can be followed. If the more detailed description is not sufficient, the necessary permissions can be granted to the system user under which K2 is running.

Error when running the shopping basket analysis command – The output file was not created (with association rules/with items)

Reason: The analysis parameters were too high, so too many records were filtered out and there was nothing to create the analysis from.

Solution: The solution is to lower the parameter values in the Analysis parameter settings form. Steps to solve:

  1. After opening the form, click the "Load saved configuration" button on the first tab; this loads the already saved parameter values into the form. This action may be time-consuming depending on the amount of company data.
  2. First, it is recommended to lower the "Minimum support" parameter by one decimal place.
  3. Then click "OK" and the parameters are updated.
  4. Nothing else needs to be restarted or modified; the updated parameters will be loaded the next time the analysis runs.
  5. If the steps described above do not help, it is necessary to lower the value further. Minimum support can be lowered down to 0.0001 %; lowering it further is no longer reasonable.
  6. If lowering the minimum support does not help, it is necessary to lower the "Minimum number of occurrences of recommended article" parameter, if it was changed from the default value of 1.
  7. If the previous step does not help, it is necessary to lower the "Minimum confidence" parameter.
  8. Other parameters can then be adjusted. It should be noted that the analysis result may be strongly influenced by these parameters, and the result may therefore not be as desired.
  9. The parameters, their meaning and possible values are described in the documentation.

Error when importing results into the database

Reason: The error may be caused on the SQL server side.

Solution: The error will also contain a more detailed description, which can be followed.

Error when exporting data to CSV

Reason: The error may be caused on the SQL server side or by insufficient permission to write to the analysis directory.

Solution: The error will also contain a more detailed description, which can be followed. If the more detailed description is not sufficient, the necessary permissions can be granted to the system user under which K2 is running.

Book Contents

Book Index

Analysis results

The DataMining.pas script analyses the sales orders and writes the results in the form of combinations of purchased articles. These results are displayed using the DataMining_Results.pas. script.

Script parameters:

Related article type abbreviation (RelatedArticleTypeAbbr)

The selected articles will be inserted into related articles with this type.

Set to "Related" by default.

Overwrite selected related articles (RewriteRelatedArticle)

When enabled, all related article records with the type set in the parameter are deleted on the selected articles. They are thus overwritten.

Display form for sets (ViewResultsAsSets)

By default, the form for 1:1 combinations is displayed, which allows inserting into related articles.

When enabled, the form for N:1 combinations (N articles in a set + 1 recommended article for the set) is displayed. This form does not allow inserting into related articles; it only serves to display possible combinations when creating e.g. gift sets, etc.

pic_7450

Picture: Analysis results - 1:1

For better orientation in the data, we can, for example, move, colour or rename columns in the form.

The analysis results can be sorted by columns or filtered. The article in the basket can be displayed using the Lookup to article in basket button or the Ctrl+Enter keyboard shortcut. The recommended article can be displayed using the Lookup to recommended article button or the Ctrl+Shift+Enter keyboard shortcut.

Description of columns:

Id

Record Id on the row for implicit sorting

LeftArticleId

Id of the article that is in the basket and for which the analysis is processed. The recommended article will be added to this article as a related article.

LeftArticleAbbr

Abbreviation of the article that is in the basket

LeftAtricleAbbr2

Abbreviation 2 of the article that is in the basket

LeftArticleName

Name of the article that is in the basket

RightArticleId

Id of the recommended article. This article is assigned as related to the article that is in the basket.

RightArticleAbbr

Abbreviation of the recommended article

RightArticleAbbr2

Abbreviation 2 of the recommended article

RightArticleName

Name of the recommended article

Support

Support of the article in the basket in percent

Confidence

Confidence of the article combination (article in the basket + recommended article) in percent

Lift

Lift of the article combination (article in the basket + recommended article)

Count

Number of occurrences of the recommended article. The count is directly proportional to the support, so if the support is sorted, the count will also be sorted.

We can work with the analysis results in two ways:

1. The resulting article combinations can be selected and linked as related

pic_7452

Picture: Article card - Related articles

pic_7456

Picture: E-shop - offer of related articles in the article detail and in the pre-basket

2. The analysis can also be used only for listing results, which provide a better overview of sales in the company - e.g. what is often sold with what, where there is room to lower/raise prices, which articles cannot be recommended together with which, which customer often buys which combinations of articles, etc.

When the "ViewResultsAsSets" (Display form for sets) parameter is enabled, an alternative form is displayed, which is intended only for displaying set combinations; however, these sets cannot be added as related.

pic_7451

Picture: Analysis results - form for sets (N:1)

The upper table displays the recommended article, the lower table displays the articles that are currently in the set.

The columns are very similar to those in the previous form. There is only a new column "Set size", which indicates how many items are currently in the set (i.e. in the lower table), and the columns for the article in the basket are moved to the lower table.

Lookups to articles can also be displayed here using the Lookup to article in basket and Lookup to recommended article buttons or the Ctrl+Enter and Ctrl+Shift+Enter keyboard shortcuts.

Book Contents

Book Index

Sale to multiple countries

Do you want to expand abroad and sell online to multiple countries, but do not want to manage 2 or more different e-shops?

The K2 e-shop allows you to sell to multiple countries under one domain. Selling to different countries within a single e-shop greatly simplifies administration: on the e-shop you just use different language versions and sell in different currencies. You offer users a country of delivery, and other properties of the e-shop are set accordingly (the choice of carriers and the correct VAT rates).

Sale to multiple countries on the e-shop includes three basic points:

  1. Option to select the country of delivery in the header of the e-shop page
  2. Recalculation of prices according to valid VAT rates based on the legislation of the given country
  3. Filtering of shipping methods for the given country.

Sale to multiple countries has its specifics:

Book Contents

Book Index

Settings in K2

If you want to sell to different countries on the e-shop, you need to set the supported countries, deal with the legislation, set the correct tax rates on articles and define shipping methods for the given countries.

First part - Web and e-shop settings

In Web and e-shop settings, on the Basic Settings / Default values tab, you need to define the countries to which articles can be delivered from the e-shop. Each country must be assigned a book of sale with the corresponding legislation, see Second part - Books of sale settings. Similarly, we can set countries for invoicing addresses.

Note: The legislation is determined primarily by the country of the Delivery address. If there is no delivery address, the country of the invoicing address is used.

pic_7802_2024

Picture: Web and e-shop settings - Basic Settings - Countries for delivery addresses tab

pic_7842_2024

Picture: Web and e-shop settings - Countries for delivery addresses

On the Function tab, we set the Sale to multiple countries mode.

pic_7803_2024

Picture: Web and e-shop settings - Function tab - Sale to multiple countries

Description of fields:

Mandatory selection of delivery country

Enables the Sales to multiple countries mode. Checking this option makes available a menu in the e-shop page header for selecting the country and at the same time activates a mode in which VAT rates change and delivery and payment methods are filtered.

Keep amounts without tax (calculate the amount with tax)

When this option is checked, the amount without tax is retained and the amount with tax is recalculated. If it is not checked, the price with tax is retained and the amount without tax is recalculated.

Use Tax payer mode

The Tax payer mode is typically used when selling to business customers (B2B e-shop). It is described in more detail in the chapter VAT payer mode.

Second part - Books of sale settings

Since orders with different tax rates (according to the country of delivery) will be created on the e-shop and then transferred to sales orders in K2, it is advisable to create sales orders in different books according to the country of delivery. Individual books can have their own settings corresponding to the legislation of the given country. The meaning of legislations is important so that the e-shop knows which tax rate to use.

pic_7804_2024

Picture: Books of sale - legislation

pic_7805_2024

Picture: Books of sale - tax type

Third part - Setting tax rates on the Article card

A necessary condition for correct functioning on the e-shop is setting the tax rates for the legislation of the given country on the article cards. This is done either on a particular article card via the Fields by legislation button, or for multiple articles in bulk via Bulk action / Set fields for legislation. First, we select from the code list the legislation for which we want to set the VAT rates, then we check VAT rate and select a particular rate for all selected articles.

Note: The tax rate also needs to be set on the article card for shipping and payment.

pic_7806

Picture: Article card - Fields by legislation

pic_7807

Picture: Bulk change - Set fields for legislation

Fourth part - Shipping method

The last step is setting the Shipping method, book Webs and e-shops, tab Shipping methods and payments. On the particular shipping method, we fill in the Country field. In the basket on the e-shop, only the shipping methods defined for the given country of delivery will then be offered. If the country is not filled in, the shipping method will be offered for all countries.

pic_7808

Picture: E-shop shipping methods - Country field

Book Contents

Book Index

VAT payer mode

The VAT payer mode is intended primarily for B2B e-shops, i.e. selling articles to other companies. If the customer proves during the purchase that they are a tax payer (by entering their VAT Reg. No. in the invoicing details in the basket), we can issue documents without VAT to them. When using the tax payer mode, it is necessary to distinguish whether the sale is within the EU or outside the EU, because from the VAT return point of view, different tax types must be distinguished on these documents.

Note: The e-shop does not automatically verify the validity of the VAT Reg. No. The validity of the entered VAT Reg. No. should always be verified by the seller, for example via the VIES system.

The mode is activated in Web and e-shop settings / Function, by checking the Use Tax payer mode option in the Sale to multiple countries section. After checking it, fields become available for setting:

The settings for tax payers are applied only to sales orders with a delivery address in another country. If the country of delivery is the same as the country of the own company, the tax payer mode is not used and sales orders are always created:

pic_7810_2024

Picture: Web and e-shop settings - Function tab - Sale to multiple countries

Description of fields:

Book of sale for tax payers' documents

Book of sale in which documents for Tax payers will be created. The book must be in the legislation of the company, i.e. the domestic legislation.

Type of tax within the EU

Usually the type VE - Delivery of goods to the EU is used.

Non-EU tax type

Usually the type VZ - Export of goods is used.

Group of countries for EU countries

This is a link to the group code list, which is filled in on the Basic data tab for the individual countries in the Countries code list. Using this field, we can distinguish which countries belong to the EU and which do not.

Book Contents

Book Index

Examples of sales to Slovakia

Below are 2 examples of sales to Slovakia, first a sale to an end customer and then to a business customer under the VAT payer mode.

The examples are based on the settings (books of sale, tax rates, legislation, shipping method) described in the chapters Settings in K2 and VAT payer mode.

Book Contents

Book Index

Sale to an end customer

1. Example of a sale to an end customer in Slovakia (with the gross price retained)

First, in the e-shop header, we select the country of delivery - Slovakia.

pic_7811

Picture: Selecting the country of delivery

After selecting the country, the prices without VAT are reloaded according to the tax rate within the SK legislation.

pic_7812

Picture: VAT rate according to SK legislation

The sales order was created in the ESSK book, with tax type OG and rate ZS 20.

pic_7813

Picture: Sales order in the ESSK book with tax type OG and rate ZS 20

Book Contents

Book Index

Sale to a business customer - Tax payer

2. Example of a sale on a B2B e-shop in the VAT payer mode within the EU (with the gross price retained)

First, in the e-shop header, we select the country of delivery - Slovakia.

pic_7811

Picture: Selecting the country of delivery

After selecting the country, the prices without VAT are reloaded according to the tax rate within the SK legislation.

pic_7812

Picture: VAT rate according to SK legislation

The sales order was created in the ES book, with tax type VE.

In the VAT payer mode, the sales order and invoice are issued without VAT (VAT is not checked in the header); the document items show VAT rates according to the domestic legislation.

pic_7814

Picture: Sales order in the ES book with tax type VE - Basic data

pic_7823

Picture: Sales order in the ES book with tax type VE - VAT rate on the item

Book Contents

Book Index

Complaints in the e-shop

If the customer receives defective goods, the goods do not meet their expectations, or a problem appears during the warranty period, they can submit a complaint directly from the e-shop. The complaint process is available to both registered and unregistered customers.

To be able to submit a complaint, the following conditions must be met:

Book Contents

Book Index

Complaint settings

Settings in K2:

1. In Web and e-shop settings / Function, the "Allow complaints" option must be checked.

pic_10556

Picture: Web and e-shop settings - "Allow complaints" option

2. In Web and e-shop settings / Basic Settings , books for service orders and returns must be set for each country for the delivery address. Complaints submitted from the e-shop will then be created in these books.

3. In Web and e-shop settings / Documents, records, tab Settings of email actions, the action for Sending a claim confirmation must be filled in if we want to send an e-mail confirming receipt of the complaint.

Settings on the e-shop:

If we want to use complaints on the e-shop, the following text pages need to be created and placed on the e-shop:

Book Contents

Book Index

Complaint procedure on the e-shop

1. Access to the complaint form

pic_10553

Picture: Order detail - link to the complaint form

2. Filling in the complaint form

On the complaint form, the customer is obliged to describe the defect and enter a bank account number. In addition, the reason for the complaint and the preferred way of handling the complaint can be selected, or photos of the defect can be attached. Pre-filled contact details can be changed with the Edit button.

pic_10554

Picture: Complaint form

After the complaint is submitted, a service order and a service sheet are created in IS K2, and an e-mail confirming receipt of the complaint is sent to the customer's e-mail address.

3. Monitoring the complaint status

The customer can monitor the status of the complaint in their user profile, in the List of complaints section, where the current status of the complaint is also shown.

pic_10555

Picture: Complaint detail

Book Contents

Book Index

Withdrawal from the contract

The Withdrawal from contract function allows customers to exercise their statutory right to withdraw from the purchase contract directly from the e-shop. The function is available to both registered and unregistered customers.

Withdrawal from the contract is only possible within the statutory period, which is counted from the day the customer received the goods. After this period expires, the button is no longer available.

To be able to withdraw from the contract, the following conditions must be met:

Book Contents

Book Index

Withdrawal from contract settings

1. In Web and e-shop settings / tab Function / Withdrawal from contract section, it is necessary to:

pic_1703759

Picture: Web and e-shop settings - Withdrawal from contract settings

2. In Web and e-shop settings / Basic Settings , books for service orders and returns need to be set for each country of the delivery address. Records of withdrawal from the contract will be created in these books.

3. For correct functioning on the e-shop, text pages with the following templates need to be created and placed on the e-shop:

Book Contents

Book Index

Service settings for Withdrawal from contract
1. Service configuration

For the Withdrawal from contract process to work correctly, we need to set data in the Service configuration module, which is opened in the tree menu Complaints/Service › Administration and settings › Service configuration. Here we create or edit the Service preset that we will use for service orders arising from withdrawal from the contract. On the individual tabs we set the following data:

2. Service documents book settings

We set the created Service preset on the service documents book in which service orders for withdrawal from the contract will be created. We then set this book for the relevant country in Web and e-shop settings › Basic data › Countries of delivery address. This determines in which book the service orders created from the e-shop will be recorded.

3. Service order and service sheets

After completing the settings, we can create service orders. A service order represents one customer request for withdrawal from the contract and may contain one or more service sheets, which represent the individual items to be processed.

The individual service sheets can be found on the service order on the Service sheets tab. For each item, we record the information needed for its processing, for example:

Book Contents

Book Index

Withdrawal from contract procedure on the e-shop

1. Access to the form

pic_1703760

Picture: Registered customer - "Withdraw from contract" button

pic_1703763

Picture: Unregistered customer - order search

2. Filling in and submitting the request for withdrawal from the contract

In the form, the customer fills in the bank account number for the refund. They can edit the pre-filled contact details as needed using the Edit button.

pic_1703762

Picture: Withdrawal from contract form

3. Confirmation of receipt of the withdrawal request

After the form is submitted, an e-mail confirming receipt of the request for withdrawal from the contract is sent to the customer.

After the request has been successfully submitted, it is no longer possible to withdraw from the order again. The Withdraw from contract button is hidden after the request is submitted.

Book Contents

Book Index

Withdrawal from contract procedure in IS K2

1. After the form is submitted from the e-shop, a Service order and a Service sheet are automatically created in IS K2. A separate Service sheet. is created for each article item that is subject to withdrawal from the contract.

2. The e-shop operator then assesses whether the request is justified. If the request is approved, the customer returns the goods, and after they are received and checked, the financial settlement takes place.

3. The refund is made from the Service order. On the Service sheets tab, we run the Refund action from the ribbon, either for all or only for the selected service sheets. The system displays a confirmation question asking whether the return of goods to the warehouse should be performed together with the refund: "Do you want to return the goods from the selected service sheets?" (Yes / No)

Note: In the Service preset, the option "Display form when creating corrective tax documents" must be checked on the Service phases presets tab.

pic_1703767

Picture: Service order - Refund

Book Contents

Book Index

User roles for B2B e-shops

Companies often need to have full control over the access rights of individual users - for example, to separate a buyer from the purchasing manager.

The User roles for B2B e-shops function enables efficient setting of permissions for individual users according to their company role and provides the administrator with tools for managing registrations, assigning roles and creating new permissions – all directly from the e-shop interface, without the need for intervention from the ERP system.

The function is aimed mainly at business customers, where several persons with different responsibilities (e.g. buyer, purchasing manager, administrator) may act within one company. Each of these persons may have different rights to display data or to make purchases on the e-shop (e.g. the ability to send an order, access to invoices, etc.).

The function makes it possible to:

Book Contents

Book Index

Settings in IS K2

To use user roles on the e-shop, the following steps need to be performed in K2:

  1. Activate the use of rights from user registration.
  2. Create user roles.
  3. Set the default role (for new registrations and registrations without an assigned role)
  4. Assign roles to individual registrations.
  5. Create text pages for managing users and roles on the e-shop.

1. Activation of rights from user registration

We activate the use of user roles in Web and e-shop settings / Function (User accounts) section by checking the option "Rights from user registration".

In the Default role for rights field, we can define a default role that will be automatically assigned to:

If we do not set a default role, all registrations without an assigned role will have the default rights settings.

pic_107293

Picture: Web and e-shop settings - Activation of user roles

pic_1703782

Picture: User role - default rights settings

2. Definition of user roles

User roles are created in the Default role for rights book. A new role is created with the Insert. key.

pic_107294

Picture: User role

Description of fields:

Name

Name of the user role

Web and e-shop

E-shop for which the role is defined.

Partner

Partner for which the role is defined. Without an assigned partner, it will not be possible to manage the role on the e-shop afterwards.

Description

A more detailed description of the role. It will also be displayed in Role management on the e-shop.

E-shop user rights

In the E-shop user rights table, we define which rights are granted to or, conversely, removed from the given role. It is enough to enter only the rights that differ from the default state.

Default rights values

Overview of all predefined rights and their default settings. The default state corresponds to the behaviour of the system without using roles.

By default, the following rights are allowed:

  • displaying the status and using the loyalty programme,
  • entering and editing the delivery address,
  • sending an order.

3. Assigning a role to a user

Roles are assigned to users on the Registration, record, section Roles for user. If a user has multiple partners assigned, a role must be assigned separately for each partner. Roles can also be assigned to users directly from the e-shop.

Note: Registrations that have no role assigned (e.g. registrations created before the activation of user roles) automatically have the Default role set. If it is not defined, the default rights settings are assigned to them.

pic_107295

Picture: Registration - assigning user roles

4. Creating text pages

To make User management and Role management accessible from the e-shop, the following text pages need to be created:

Book Contents

Book Index

Administration of user roles on the e-shop

After logging in, a user with the Administrator role sees the User management and Role management. buttons in their profile.

pic_107296

Picture: Administrator profile - access to User management and Role management

User management button

The User management button shows a list of all registrations of the given partner. For clarity, the currently logged-in user is shown separately in the upper table. The list of registrations can be sorted and filtered by status (All, Active, Blocked, To be authorized, To be activated).

In User management , the administrator can:

pic_107297

Picture: User management

Role management button

The Role management button shows a list of all available roles of the given partner + a list of all roles without a partner (these cannot be edited).

In Role management, the administrator can:

pic_107300png

Picture: Role management

pic_107298

Picture: Editing the Buyer role

Example of the shopping basket display without the "Send order" right.

pic_107299

Picture: Shopping basket - user with the "Buyer" role without the right to send an order

Book Contents

Book Index

Logging in to the e-shop using a Google account

Signing in with a Google account allows customers to sign in quickly and conveniently without having to create a new password. All they need is a Google account – the sign-in then takes place via the secure Google OAuth service.

To use this function, it is necessary to:

pic_1703784

Picture: Login window - option to sign in with a Google account

Book Contents

Book Index

Settings in K2

In Web and e-shop settings, tab Function, section User accounts , we enable sign-in with a Google account by checking the "Allow Google Account sign-in" option. Then we enter the ClientID and ClientSecret. The login credentials are created in Google Cloud Console.

pic_1703783

Picture: Web and e-shop settings - Allow Google Account sign-in

Book Contents

Book Index

Creating login credentials in Google Cloud Console

A prerequisite for using sign-in with Google is creating a project in Google Cloud Console.

  1. We open Google Cloud Console and sign in with our Google account.
  2. In the top bar, we click the project list (next to the Google Cloud logo) and select New Project.
  3. We enter the project name (e.g. Prihlaseni-MujWeb) and click Create.

    Configuring the OAuth consent screen

In this step, we set the information that will be displayed to users when they first sign in with Google.

  1. In the left menu, we open APIs & Services › OAuth consent screen.
  2. We fill in the basic details:
    • App name – name of the e-shop.
    • User support email – contact e-mail for users.
  3. We click Next.
  4. As the user type, we select:
    • External – if all users with a Google account will be able to sign in.
  5. We click Next.
  6. We fill in:
    • Developer contact information – contact e-mail of the application administrator.
  7. We click Next.
  8. We confirm our agreement with the terms and click Create.

Test users

If the application is still in testing mode, we open Audience in the left menu and in the Test users section we add the e-mail addresses of the users who will be able to test the sign-in.

Creating OAuth credentials

In this step, we create the Client ID and Client Secret, which are used to connect the e-shop with the Google service.

  1. We open APIs & Services › Credentials.
  2. We click Create Credentials › OAuth client ID.
  3. As the Application type , we select Web application.
  4. We fill in the addresses:
    • Authorized JavaScript origins – the address of your e-shop (e.g. https://www.vasedomena.cz).
    • Authorized redirect URIs – the exact return address to which Google redirects the user after successful sign-in (e.g. https://vasedomena.cz/googleauth).
  5. We click Create.

Book Contents

Book Index

E-shop variants

We distinguish 2 variants of the e-shop:

K2 e-shop

The optimal business/sales variant of the K2 e-shop, configured so that it can handle a common small to medium-sized B2B / B2C e-shop (the number of K2 API threads is adjusted according to traffic). The e-shop has a broad standard set of functions and allows customizations and a tailor-made design.

Properties of the K2 e-shop:

K2 e-shop Premium

A "tailor-made" e-shop or B2B portal with maximum speed and security. All services run on separate Linux servers, including the Redis caching server.

Properties of the premium e-shop:

pic_10329

Picture: Differences between K2 e-shop and Premium e-shop