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).

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 |
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 Shift+F8 deleting the e-shop on the tab Article flags for e-shops The function is active with the right: Webs and e-shops / Administration / Delete data of website, e-shop. Note |
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 |
|
|
|
ZERO WAREHOUSE TEXT |
If the article is not in stock, the text entered by the user is displayed, e.g.:
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.:
|
ALTERNATIVE TEXT |
The alternative text is not taken into account and only these standard texts are displayed:
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.:
|
The text entered by the user that corresponds to the stock level is displayed. Examples:
|
Set as Not for sale in the article flags for e-shops |
|
|
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.

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:
- Have the same Classification defined on the Parameters tab for the article cards that we want to link.
- The classification must include at least one parameter with the property "Parameter to differ the variant" and it must be filled in.
- 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.
- 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.

Picture: Article book - Parameters page
Editing parameter values
Parameter values can be changed in three ways:
- When inserting a free parameter, we enter the value directly in the parameter selection form.
- 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.
- 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.

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.

Picture: Parameter book
The Basic data tab is intended for defining the properties of the parameter.

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. |
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.

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.

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.

Picture: Classification book
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.

Picture: E-shop - product detail with configuration

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:
- In Web and e-shop settings on the Function tab, we set the field "Layout variant identifier".
- 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.

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

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.

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.

Picture: Basket - display and modification of the product configuration
Only parameters that meet the following conditions are displayed in the configuration overview:
- the parameter in the Configuration definition has the value Display or Display based on a condition, set in the Display in listing section
- the parameter has the Title field filled in on the User interface tab.
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.
AI functions
IS K2 offers the possibility to use artificial intelligence to support work with e-shop content, especially for:
- translations of texts and fields,
- generating product descriptions,
- suggesting article categories,
- filling in parameters from the article description,
- unifying parameter values,
- suggesting filters on the e-shop.
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:
- Set up access to the AI service in the AI login, module
- In Multi company administration, fill in the field Default AI login, which determines the AI model used.
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.

Picture: AI login - list of models

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/.
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.

Picture: Multi company – Default AI login
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:
- Generate description - based on the name and parameters of the article, it creates meaningful, readable and SEO-optimized texts.
- 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:
- article name,
- article parameters (all from the Article parameters page).
For suggesting a category, the following is sent:
- article name,
- article parameters,
- list of available categories on the e-shop,
- e-shop names.
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:
- in the ribbon on the Function tab. - the action is run in Change mode or in bulk on marked records.
- on the E-shop tab, the functions can also be run using the icon
next to the Short description field and on the Category for articles tab.

Picture: Article card - AI functions
Generating the Short description

Picture: Generating the short description
Generating the Long description

Picture: Generating the long description
Category suggestion

Picture: Category suggestion
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:
- obtain parameter values from article descriptions,
- unify how they are written
- and suggest filters for individual categories.
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
- 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.
- 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.
- 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.
- We suggest category filters. Using the Suggest filters function, we prepare filters according to the article parameters in the individual categories.
- 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.
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.

Picture: Article card - Fill in parameters from description function
The following are essential for processing:
- Long description on the Eshop tab, from which the function obtains values;
- Classification on the Parameters tab, which determines the parameters to be filled in;
- the existing filled-in parameter values on the article card.
Procedure of use
- In the Article book, we open the card in Change mode, or select multiple cards for bulk processing.
- We check that the article has a long description filled in and the corresponding Classification assigned.
- We run the function Fill in parameters from description.
- 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.
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.

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:
- conversion of numerical data written as text into numbers in a uniform unit;
- unification of word variants and synonyms by means of the code list of parameter values (PPV).
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:
- Selection from code list of values;
- the possibility to enter multiple values for the parameter (Possible enumeration of values).
Procedure of use
- We open the Parameters book.
- We select one parameter or mark multiple parameters.
- We run the function Unify values (AI).
- We check the suggested assignment of the original values to the resulting values.
- For numerical data, we verify the conversions and the target unit. For word values, we verify the correctness of merging the individual variants.
- As needed, we select the offered changes to the parameter settings.
- We confirm the suggestion. Without confirmation, the changes are not made.
- In the processing log, we check any skipped parameters and the reasons why they were skipped.
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.

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:
- parameters used as filters;
- their order;
- the filter type for the individual parameters.
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
- We open the Article category book.
- We select a specific category or multiple categories for bulk processing.
- We check the Filtering parameters field and the relevant Classification.
- We run the function Suggest filters.
- We assess the suggested parameters, their order and filter types.
- We also check the parameters that are to be removed from the target Classification.
- We confirm the suggestion. Without confirmation, the changes are not made.
- We check the resulting settings in the Classification used for filtering.
Translations of fields and texts
The K2 system offers several ways of working with translations:
- Translate fields (Ctrl+F11) – manual entry of translations,
- Automatic translation of texts – using the DeepL service or AI models.
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:
- Translate fields (Ctrl+F11) is supported by a specific data module and is available in view mode.
- Automatic translation of texts must be enabled in Multi company settings and is run in Change mode or also from the Translate fields. function
Translation functions are available in the following modules:
- Article,
- Article (e-shop),
- Categories,
- Text pages,
- Web menu (Translate fields only),
- Promotions (Automatic translation of texts only),
- Loyalty programs,
- Discount coupons,
- Subscriptions,
- Payments,
- and all web modules.

Picture: Web news - translation functions in the ribbon
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:
|
|

Picture: Fields translations form

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.
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:
- article names,
- product descriptions,
- marketing texts,
- other content elements of the e-shop.
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:
- use various language models,
- modify the instructions (prompt),
- experiment with the wording of the outputs.
This approach is particularly suitable in cases where it is necessary to:
- take into account the specifics of the field,
- work with slang expressions or marketing language,
- achieve stylistically more natural texts.
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.

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:
- switch the translation method (DeepL / AI model),
- for DeepL, modify the complete translation configuration,
- for an AI model, select a different AI login, choose a different prompt template or modify the prompt loaded from the template.

Picture: Text translation configuration form
After the translation is started, the translated text is automatically written to the relevant fields.
1. Translate fields form (Ctrl+F11)
- allows translation of individual fields or their parts.

Picture: Fields translations - Automatic translation of texts
2. Data modules
- the function is available in the ribbon (Function tab) in all modules that contain fields intended for the web/e-shop,
- the module must be in Change mode.

Picture: Article (e-shop) - Automatic translation of texts
3. Web texts module
- the function can only be run on marked records,
- after selecting the target language, all marked records are translated,
- the translated texts are automatically written to the items of the relevant records.
- if a translation for the given language already exists › it will be overwritten,
- if it does not exist › a new record will be created.

Picture: Web texts - Automatic translation of texts
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:
- DeepL – translation using the DeepL API service,
- AI – translation using language models.
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.

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).
In the AI translation configuration, it is possible to set:
- AI login - if it is not filled in, the default AI login for the given Multi company is used.
- Prompt template, which determines how the translation is generated.
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:
- use uniform settings for all languages,
- define different parameters for selected languages.

Picture: AI translation configuration

Picture: AI translation configuration - Configuration for target language
The DeepL configuration includes:
- setting the DeepL API key,
- global configuration of text translation,
- 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

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.)
.
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.

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:
- if a configuration exists for the specific selected target language, this configuration is used,
- if a configuration for the target language does not exist, the global configuration is used,
- the global configuration can still be modified just before the translation is performed.
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.
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:
- page title
- page description
- preview picture
- URL address
- content type
The implementation of Open Graph ensures:
- correct generation of the preview when sharing a link,
- consistent presentation of the page outside the website itself,
- control over how the content is interpreted by external services (e.g. Facebook, X/Twitter).
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.

Picture: OG preview
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:
- correctly set the OG type for text pages,
- set appropriate pictures for products, articles and other important pages,
- define a default OG picture for the given e-shop in the Webs and e-shops module.
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:
- product detail › product
- article / blog detail › article
- branch detail › place
- other pages › website.
For text pages that do not have a Page type defined, the OG type field must be filled in manually.

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:
- If the page has a picture set in the category Picture: Open Graph, this picture is used.
- If it is a product or category without an OG picture, the main picture of the product or category is used.
- 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:
- dimensions: 1200 × 628 px,
- aspect ratio: approximately 1.91:1,
- maximum file size: approx. 5 MB,
- format: .png or .jpg (the .svg format is not supported)
- publicly accessible URL,
- without blocking by robots.txt or authentication.

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

Picture: Webs and e-shops - setting the Open Graph category picture on the website
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.

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
or New item (Ins)
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:
- FTPUpload Root
- File System Root
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.

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.

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.

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:
- Publish the folder with pictures under a URL address so that it is accessible to the e-shop (the e-shop requires this address during installation).
- Settings in K2 so that, when a picture is uploaded, K2 copies the given file to the storage that the e-shop sees. This is the function "document and picture storage configuration", where a shared folder or FTP server (recommended) can be set, see above.
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 |
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. |
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
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:
![]()
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:
|
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. |
|
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. |
|
A button that refreshes only the pictures that have been changed on this page. |
|
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.

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.

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:
|
Back |
Used if we want to go one step back. |
|
Forward |
Used if we want to move one step forward. |
|
Pen style |
Used to change the heading style. The user has several levels as well as normal text available. |
|
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. |
|
Text colour |
Changes the text colour. The user has a colour palette available from which they can select predefined colours. |
|
Remove formatting |
Removes all formats that have been set (e.g. font size or text colour). Returns the text to its original form. |
|
Bold |
The selected text is converted to bold. |
|
Italics |
The selected text is converted to italics. |
|
Underline |
The selected text is underlined. |
|
Strikethrough |
The selected text is struck through. |
|
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. |
|
Superscript |
The selected text is converted to superscript. |
|
Subscript |
The selected text is converted to subscript. |
|
Align left |
The selected text is aligned to the left. |
|
Align centre |
The selected text is aligned to the centre. |
|
Align right |
The selected text is aligned to the right. |
|
Numbered list |
The selected text is converted to a numbered list. Each paragraph will be marked with a sequence number. |
|
List |
The selected text is converted to a list. Each paragraph will be marked with a predefined bullet. |
|
Remove indent |
The indent is removed from the selected text. |
|
Add indent |
An indent is added to the selected text. |
|
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. |
|
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. |
|
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. |
|
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
, or the editing mode can be ended with the red cross
.
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.
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.

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.

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.

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\
- This is the ConfirmNewsletter template, which is available by default in 5 language versions (0 = default lang., 1 = English, 2 = German, 3 = Slovak, 5 = Czech)
- The .Body.txt file is the body of the e-mail; .Subject.txt is the template for the subject and .RequestedFields.txt are the fields used within the template.
- It is enough to open these files and copy their content into the corresponding fields of the newly created template in K2 - working with the E-mail templates book is described in more detail here.
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.

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).

Picture: Registered emails book
Initialization of a new e-shop
Process number: ESH001 |
Script ID number: FESH030 |
File: InitNewEshop.PAS |
Script description: |
||
Address in the tree: |
||
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:
- Setting the analysis parameters (DataMining_Parameters.pas)
- Running the analysis (DataMining.pas)
- Listing the analysis results (DataMining_Results.pas)
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

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 %.
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 %.
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
If the value is equal to 1
If the value is less than 1
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:
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.

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.

Picture: Parameter settings - Suppliers/Customers tab
Article settings

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:

Picture: Error message - non-existent database
After pressing OK, we will be prompted to display the SQL script for creating the database:

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.

Picture: Message about successful generation of parameters
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.). |
Error during data initialization – R was not installed
Reason:
- The analysis parameters were not saved,
- an error may have occurred during the installation of the R language program extension
- or the K2 directory may have been moved elsewhere.
Solution:
- Run the Analysis parameter settings form, set the parameters and confirm the form, which starts the process of saving the parameters.
- During saving, the installation of the R language program extension starts. If an error occurs during the installation, an error message with a description of the error will be displayed, which can then be dealt with.
Error when connecting to the analysis database
Reason:
- An error may have occurred while connecting to the database server,
- the analysis database does not exist, or
- the database login is set incorrectly.
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:
|
Solution: Make sure that the connection is online and the database server is available. |
|
Solution: Run the Analysis parameter settings form again, set the parameters and confirm the form. |
|
Solution: The authorized person responsible for SQL server administration must verify this and correct it if necessary. |
Error when creating database tables
Reason:
- The error may be caused on the SQL server side,
- the user running the analysis may not have access to the analysis database
- or may not have rights to create tables.
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:
|
Solution: Run the analysis under a user who has access to the database. |
|
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:
- 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.
- First, it is recommended to lower the "Minimum support" parameter by one decimal place.
- Then click "OK" and the parameters are updated.
- Nothing else needs to be restarted or modified; the updated parameters will be loaded the next time the analysis runs.
- 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.
- 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.
- If the previous step does not help, it is necessary to lower the "Minimum confidence" parameter.
- 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.
- 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.
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. |

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
- We mark the article combinations that we want to link as related with an asterisk. After confirming the form with the OK button, the recommended article is assigned to the card of the article in the basket as a related article (Sale tab, bottom table Related articles). This related article will then be offered on the e-shop as recommended for article A.

Picture: Article card - Related articles

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.

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.
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:
- Option to select the country of delivery in the header of the e-shop page
- Recalculation of prices according to valid VAT rates based on the legislation of the given country
- Filtering of shipping methods for the given country.
Sale to multiple countries has its specifics:
- Translations into the given language - the texts of the products and of the whole website need to be translated into the given language, and a keyword analysis should be done of what users in the given country search for most often, so that they find your e-shop
- Solve logistics in the given country
- Customer support - it is advisable to provide customer support in the language of the given country
- Marketing – how to make the e-shop visible in the given country
- Legislation - deal with different VAT rates, VAT/OSS registration.
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.

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

Picture: Web and e-shop settings - Countries for delivery addresses
On the Function tab, we set the Sale to multiple countries mode.

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.

Picture: Books of sale - legislation

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.

Picture: Article card - Fields by legislation

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.

Picture: E-shop shipping methods - Country field
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 book of sale for documents of tax payers,
- the tax type within the EU,
- the tax type outside the EU
- and the group of EU countries.
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:
- in the book defined on the record for the country of the delivery address (Basic Settings tab),
- with the domestic tax type (usually TU),
- and with the VAT option checked.

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. |
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.
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.

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.

Picture: VAT rate according to SK legislation
The sales order was created in the ESSK book, with tax type OG and rate ZS 20.

Picture: Sales order in the ESSK book with tax type OG and rate ZS 20
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.

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.

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.

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

Picture: Sales order in the ES book with tax type VE - VAT rate on the item
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:
- the goods are paid - a confirmed and paid invoice exists for the order
- the goods are delivered - a confirmed release note and delivery note exist for the order
Complaint settings
Settings in K2:
1. In Web and e-shop settings / Function, the "Allow complaints" option must be checked.

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:
- Goods complaint (pageComplaintGuest template) - link to the complaint form for unregistered users
- List of complaints (pageComplaintList template) - list of complaints in the user account
- Complaint detail (pageComplaintDetail template) - detail of the complaint
Complaint procedure on the e-shop
1. Access to the complaint form
- Registered user - a registered user finds the relevant invoice or order in their profile. For each paid and delivered article on the invoice/order, there is a link for creating a complaint. After clicking the Claim goods link, the user is redirected to the complaint form.
Picture: Order detail - link to the complaint form
- Unregistered user - an unregistered user has to go through the Goods complaint page, where they enter their e-mail address, order number and the gross amount of the invoice. After verification, they are redirected 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.
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.

Picture: Complaint detail
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:
- the goods are delivered - a delivery note exists for the order
- the statutory period for withdrawal from the contract has not expired.
Withdrawal from contract settings
1. In Web and e-shop settings / tab Function / Withdrawal from contract section, it is necessary to:
- check the "Allow withdrawal from contract" option,
- set the required values for withdrawal - the individual fields are described in the chapter Web and e-shop settings / Function,
- in the Action for confirming receipt of withdrawal from contract field, select the "Withdrawal" action, which ensures that a confirmation e-mail is sent to the customer automatically.

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:
- (pageComplaintGuest template) - order search for unregistered customers,
- (pageComplaintDetail template) - form for withdrawal from the 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:
- Basic presets - We set the implicit values corresponding to the normal operation of the company (customer, method of handling, warranty length).
In the Books and warehouses section, we also set the book of sale, the warehouse book, the production book, the purchase book, the warehouse for receiving own goods and the warehouse for receiving third-party goods. Setting the books and warehouses is important for the correct creation of follow-up documents from the service, such as receipt cards, release notes and invoices. If the books and warehouses are not set correctly, the service documents may not be created correctly. Without setting the relevant warehouses, the return of goods cannot be performed correctly either.
- Advance payments - To process advance payments, we set the advance book, the currency and the VAT rate.
- Service phases presets - We enable the option "Display form when creating corrective tax documents". We also fill in the warehouse for receiving goods into the service.
- E-shop - To process requests from the e-shop, we enable the option "Create service sheet to sales order". If we want to process multiple items within one service order, we also enable the option "Allow multiple items for complaint within one service order".
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:
- which goods the customer is returning,
- how the order was paid,
- how the shipping was handled,
- the method of handling the request.
Withdrawal from contract procedure on the e-shop
1. Access to the form
- Registered customer
The registered customer opens the order detail in their user account. For each delivered order that is still within the period for withdrawal from the contract, the Withdraw from contract button is available. After pressing it, the form for withdrawal from the contract is displayed.

Picture: Registered customer - "Withdraw from contract" button
- Unregistered customer
The unregistered customer opens the order search page (a text page with the pageComplaintGuest template), where they enter their e-mail address, order number and the gross amount of the order. After successful verification, the order detail is displayed with the option to withdraw from the contract.

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.

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.
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)
- Yes – the goods are received into the warehouse defined in the service preset (see chapter Service settings for Withdrawal from contract) and at the same time a money return document (corrective tax document) is created.
- No – only the refund is made without any stock movement (e.g. for items of the "Cash payment" or "Free shipping" type, which are not physical goods).
Note: In the Service preset, the option "Display form when creating corrective tax documents" must be checked on the Service phases presets tab.

Picture: Service order - Refund
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:
- create custom user roles according to your own needs
- assign roles to specific users
- manage users and their permissions directly from the e-shop.
Settings in IS K2
To use user roles on the e-shop, the following steps need to be performed in K2:
- Activate the use of rights from user registration.
- Create user roles.
- Set the default role (for new registrations and registrations without an assigned role)
- Assign roles to individual registrations.
- 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:
- new registrations created by the administrator from the e-shop,
- to registrations that have no role assigned (e.g. registrations created before user roles were activated).
If we do not set a default role, all registrations without an assigned role will have the default rights settings.

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

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.

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:
|
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.

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:
- User management - template pageUserManagement
- Role management - template pageUserRoleManagement
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.

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:
- create new registrations,
- assign and change user roles - after selecting a role from the code list, the role needs to be saved with the Save role button,
- block/unblock, approve and enable accounts.

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:
- create new roles,
- edit existing roles - only roles of the given partner can be edited. The exception is the "Warehouse" right, which can be assigned/removed only from IS K2.

Picture: Role management

Picture: Editing the Buyer role
Example of the shopping basket display without the "Send order" right.

Picture: Shopping basket - user with the "Buyer" role without the right to send an order
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:
- use PHP 8.1 or newer (in older versions, sign-in with Google is not supported),
- create an application in Google Cloud Console,
- obtain the Client ID and Client Secret,
- enter these details in the e-shop settings.

Picture: Login window - option to sign in with a Google account
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.

Picture: Web and e-shop settings - Allow Google Account sign-in
Creating login credentials in Google Cloud Console
A prerequisite for using sign-in with Google is creating a project in Google Cloud Console.
- We open Google Cloud Console and sign in with our Google account.
- In the top bar, we click the project list (next to the Google Cloud logo) and select New Project.
- 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.
- In the left menu, we open APIs & Services › OAuth consent screen.
- We fill in the basic details:
- App name – name of the e-shop.
- User support email – contact e-mail for users.
- We click Next.
- As the user type, we select:
- External – if all users with a Google account will be able to sign in.
- We click Next.
- We fill in:
- Developer contact information – contact e-mail of the application administrator.
- We click Next.
- 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.
- We open APIs & Services › Credentials.
- We click Create Credentials › OAuth client ID.
- As the Application type , we select Web application.
- 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).
- We click Create.
E-shop variants
We distinguish 2 variants of the e-shop:
- K2 e-shop
- K2 e-shop Premium
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:
- Linux web server for the K2 API located in the DMZ
- Apache web server (Linux) for the e-shop, image server and SFTP located in the DMZ
- Smart search server (Linux) for efficient searching and filtering in categories
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:
- Redis server – for efficient caching - serves as a cache of data obtained from the live K2 API and a cache of parts of web page templates. Most of the data needed to build a page (categories, product information, text content, etc.) is thus read by the e-shop from Redis when building the page.
- Each application on a separate server for reasons of performance, stability, high availability and scalability.
- Reverse proxy for security reasons - handles HTTPS communication and distributes communication between the web server and the image server.
- Contains the shopping basket analysis module - based on historical purchases, K2 calculates combinations of the best-selling products and can then offer customers on the e-shop further personalized products according to the contents of their basket.
- Active monitoring of e-shops

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