Creating and putting a web/e-shop into operation
Installation of the necessary programs and add-ons
To install the AS and the K2 API, we need to have the IIS (Internet Information Services) feature version 6.0 or higher enabled, as well as its IIS URL Rewrite add-on (it is part of the installation program - in Other installations). Furthermore, K2 with the same version and release must be installed. For the e-shop, PHP 7.4.3 to 8.3.0 (for 64bit) for IIS must be installed (it is part of the installation program - in Other installations). Note: In the PHP.ini file, the time zone date.timezone = "Europe/Prague" must be set, unless the web server is operated in another country. If this setting is different, time shifts occur (e.g. when working with dates, where after filling in the Requested delivery date the date in K2 is shifted by the different time zone).
A detailed description of the installation process of the application server, the web services server and the K2 Eshop is given in the K2 Installer methodology.
List of rights for the anonymous user
List of rights that must be assigned to the anonymous user for the e-shop to work correctly.
Module |
Function |
Name |
Number |
Code Lists |
Analytical dimensions |
View officers |
1648 |
Code Lists |
Suppliers and customers |
View customers |
234 |
Code Lists |
General |
View general code lists |
1695 |
Marketing |
Contact persons |
Browse web, e-shop |
941 |
Marketing |
Quotations |
View quotations |
1258 |
Sale |
Sales Orders |
View sales orders |
63 |
Administrator |
Reports and functions (F9) |
Create new and edit automatic reports |
1651 |
Administrator |
Changes |
Change types of electronic addresses |
1632 |
Web sites, e-shops |
Banners |
View banners |
1443 |
Web sites, e-shops |
Category |
View e-shop categories |
1437 |
Web sites, e-shops |
Modules |
View module |
1815 |
Web sites, e-shops |
Purchase orders |
View e-shop orders |
1583 |
Web sites, e-shops |
Registration |
New registration |
1688 |
Web sites, e-shops |
Registration |
View registrations |
1687 |
Web sites, e-shops |
Registration |
Change registration |
1689 |
Web sites, e-shops |
Text pages |
View text pages |
1440 |
Web sites, e-shops |
Web sites, e-shops |
View webs and e-shops |
1434 |
Web sites, e-shops |
Articles |
View e-shop article groups |
1450 |
Web sites, e-shops |
Articles |
View the ES page in Articles |
1448 |
Web sites, e-shops |
Articles |
View e-shop articles |
1706 |
Methodology - Creating a web/e-shop
For the web and e-shop to work correctly, web services must be installed and put into operation. Thanks to them, data directly from K2 (or their interpretation) are displayed on the web/e-shop or loaded at regular intervals. A customer of the web/e-shop can register (a record is created in K2), and the purchase they make is also immediately saved to K2 as a sales order. Sales orders created in this way are then processed in the usual way.
How to start with a new e-shop
This section is intended to help you with the first steps in a new e-shop. You will learn what basic settings are needed, what you can use to attract your customers and how to start cooperation with comparison portals so that your sales grow even faster.
First of all, it is advisable to have the following records prepared, as we will need them when creating the new record in the Webs and e-shops book.
- Creating an anonymous customer – this customer will be filled in the sales order when articles are ordered by an unregistered user. It also determines the prices that will be displayed on the e-shop (they are based on the price category that this customer has set). The anonymous customer is created in the Suppliers-Customers code list.
- Creating warehouses - they are used to display the stock of articles on the e-shop and also release notes or reserving cards (if the article is not in stock) are created for them. A new warehouse can be created in the tree menu in the Logistics – Basic data – Warehouses folder.
- Creating a book of sales orders – all orders that are completed on the e-shop will be recorded in this book. A new book is created in the tree menu in the System – Administration of books – Sale tab. folder
Then we can proceed to creating the new record in the Webs and e-shops book itself. All fields are specified in the section Webs and e-shops - Basic data.
Other important e-shop settings are located under the button of the same name: Web and e-shop settings, which is located in the Basic data. The individual tabs determine what the e-shop will look like in the end. At the beginning, it is certainly necessary to perform:
- Settings of languages, currencies and price groups
- Document display settings – if it is a B2B e-shop, it is necessary to consider which documents are to be displayed to the user. On the e-shop, it is possible to set that only the documents of the given contact person are displayed to the logged-in user; another variant is displaying the documents for the company (or partner). It is also possible to specify whether only the documents created on the e-shop are to be displayed, or all of them, i.e. also those created in K2.
- Creating text pages – will be described in more detail in the next step. These text pages must then be included in specific pages.
- Setting the tabs on the homepage – e.g. Clearance sale, Hot sales, etc.
- Search settings – we recommend setting up full-text search.
- Transport and payment settings - it is necessary to create articles with the Transport or Payment flags and include them in the service category of the e-shop. Furthermore, it is necessary to set the collection methods and payment methods. For personal collection, it is necessary to define the branches including their addresses. We also recommend adding a picture.
- Email template settings.
- E-mail settings in the Mail book – the settings must be made in K2 under the user under which the application server runs.
- Notification settings – e.g. when an order is created, a registration, etc.
After the basic settings, it is also necessary to consider the following options offered by the e-shop:
- Using online payment via one of the payment gateways (the test environment and the settings of the payment gateways as such are in the Web and e-shop settings).
- Displaying article availability in branches – can be configured in the Web and e-shop settings on the Catalogue of articles tab.
- Using discount coupons.
- Using promotions.
- Using recommended sorting on the e-shop – if we want to sort by recommended on the e-shop, it is necessary to fill in the display priority after assigning the articles to the e-shop
We must also not forget the Document and picture saving settings; documents and pictures can be uploaded to FTP or Saved as file copies. This setting is specified in more detail in the chapter Configure saving of documents and images.
The e-shop installation is described step by step in the technical documentation. The steps described above (primarily creating a new record for the web/e-shop, creating an anonymous customer and setting the saving of pictures and files) must be gone through, because they are required during the installation.
For the new version of the e-shop (template e-shop), the InitNewEshop.PAS script has been created, which helps generate the basic text pages, including their settings in the e-shop configuration. At the same time, these pages are assigned to the individual menu types.
We then recommend checking all menus to see whether they are as you want them, or modifying them, either in terms of text or items. Working with menus is described in more detail in the chapter Web menu.
The next step is setting up the categories (working with categories is described in more detail in the Article category book or in the Category – tree book):
- Creating the category tree – it is necessary to create a root and a service category. The root category is the basic category for all other categories that are to be displayed on the e-shop. The service category is intended for cards that are necessary for the e-shop (such as transport, payment) but are not offered articles.
- Assigning pictures to categories - External Documents and Documents page (link type: Picture: Main picture - preview)
- Setting the parameters by which filtering will be done in the given category.
The penultimate step is creating or modifying the articles themselves that are to be sold on the e-shop and classifying them into categories. The following steps must be kept in mind:
- Filling in the E-shop page on the selected article cards.
- Filling in the article parameters – especially those by which filtering will then be possible.
- Filling in alternative and related articles – the Sale page on the article card
- Attaching pictures, documents, videos
- Considering whether master cards will be used. If so, it is necessary to create article variants and set their display in the article detail.
- Consider advertising products via price comparison portals (Heureka, Zboží.cz, Google Merchant Center). If we want to use these services, the information for price search engines must also be filled in. More information in the chapter: How to get started with XML feeds for price comparison sites.
After classifying articles into categories, it is important to run the article recalculation so that the articles are loaded to the e-shop. This is done in the tree menu in the folder Web and e-shop – Administration and settings – Recalculation – Article recalculation for e-shop.
E-mails clearly belong to an e-shop. They accompany us from registration, through the purchase, all the way to a forgotten account password. It is therefore advisable to use the E-mail templates book, which will certainly make the whole communication process easier. Sample e-mail templates are part of the IS K2 standard and are located in the K2 installation directory (SupportFiles\EmailTemplates). Each of the sample e-mails consists of 3 files – for the e-mail subject, the required fields and the e-mail body. 5 language versions are available.
An important part that is also worth focusing on is the appearance of the e-shop – specifically the banners. Working with them is described in more detail in the Banners book. We recommend always placing 2 pictures – one for the background and the second for the product, i.e. the foreground. If we want text on the banner, 4 text layers are intended for this, each of them having a different size. The text layer style allows it to be aligned as desired. We strongly advise against placing everything into one banner because of picture distortion, which could occur on devices with different resolutions, and consequently distortion of the information conveyed by the banner as such.
Tasks before launching the web/e-shop
Before the web/e-shop itself is launched, the following steps must be taken care of:
- Test whether e-mails are sent and have the correct content for each language defined on the e-shop.
- Verify data collection in Google Analytics or Heureka.
- Start monitoring of the e-shop operation.
- In the scheduled tasks administration, set up Sending of watchdog e-mails, if the function is to be active.
- Set up XML feeds for search engines (Zboží.cz, Heureka, Google Merchant Center).
- Set up notifications for reporting possible errors in the run of scheduled tasks or alerts about the registration of a new customer waiting for approval.
- In the Internet Information Services (IIS) Manager, set up redirection to HTTPS - purchase and install a certificate on the web server, change the path to pictures.
- In the testing phase of the e-shop, indexing by robots must be disabled. The e-shop is being prepared and it is therefore not recommended for it to appear in search results. When we complete the testing phase and are satisfied with the result, indexing by robots must be allowed. This is done in the file config.php CONFIG['robots'] = true.
- Before the launch itself, it is advisable to delete the cache files so that old files from the testing phase are not carried over. We must also not forget the cache settings, i.e. how these files are to be saved and loaded.
- Before launch, we recommend checking the correctness of the e-shop settings using the page web-checker.k2.cz. For a more detailed description see the chapter Checking the correctness of the e-shop settings.
- When using the sitemap file update in IS K2, it is good to run the script Eshop_exportSitemap.pas in scheduled tasks so that the page content is updated regularly and the web or e-shop is more accessible to search engines. First, a text file robots.txt must be created in the folder where the e-shop is installed; the form of the file may differ depending on the needs and size of the e-shop:
ad1) Variant with a sitemap index (split into multiple XML files, script parameter CreateSitemapIndex=true).
User-agent: *
Disallow: /standard/
Disallow: /special/
Disallow: /system/
Sitemap: https://demo.k2.cz/sitemap-index.xml
ad2) Variant where only the URL addresses of the pages are in one file (for smaller e-shops).
User-agent: *
Disallow: /standard/
Disallow: /special/
Disallow: /system/
Sitemap: https://demo.k2.cz/sitemap.xml
Verification of basic functions before launching the e-shop
Before launching the e-shop, it is necessary to verify that everything is set up correctly. Below is a list of basic functions that need to be verified before launching the e-shop.
- Display of the homepage with basic elements:
- configured banners
- category tree
- menu in the header and footer
- search field
- button for the basket and user profile
- Category listing:
- Display of the correct description
- Display of filters according to the configuration
- Display of subcategories
- Display of the correct article cards
- Product detail
- The name, short description and long description of the product are displayed
- Display of the picture gallery, including opening the full-size picture
- Display of the Buy button
- Display of the price and availability
- Display of parameters
- Verify the correct display of prices in the category listing as well as in the product detail
- Verify the correct display of stock availability in the category as well as in the product detail
- Inserting articles into the basket
- Works from the product detail as well as the category listing
- Verify the display in the basket preview and in the first step of the basket
- Editing basket items (always verify the resulting price)
- Change the amount
- Removing an item
- Emptying the basket
- Second step of the basket
- Offer of transport methods, including the correct price
- Offer of payment methods, including the price (e.g. for cash on delivery)
- Verification of allowed transport methods and weight limits, if set
- Free shipping, if set
- Entering details and the delivery or billing address
- Send order
- Display of the order confirmation (all items, document number)
- Transfer to the payment gateway if card payment was selected
- Payment check – the payment information is written back to K2
- Check of the sales order in K2
- Check of the order confirmation e-mail
- Searching
- Autocomplete displays correct results
- In the case of Smartsearch, it also searches in categories, brands or the blog
- Full search results display correct results
- In the case of Smartsearch, also verify the results from categories, brands or the blog
- User registration
- Possibility to fill in all details
- After registration, a confirmation e-mail arrives, or an e-mail for double opt-in (e-mail address confirmation)
- Log in/log out
- Password reset
- User profile
- Display and change of personal details
- Password change
- Adding/editing the delivery/billing address
- Favourites function – adding a product or category, display in the user profile
- Display of previous orders, invoices, delivery notes (parcels)
- Test the whole purchase also as a logged-in user
- Other functions:
- Watchdog – adding a watch
- Newsletter subscription
- General enquiry in the footer
- Adding a question about a product
- Display of ratings, adding a rating.
Cache settings
Cache is temporarily stored auxiliary data. It helps speed up the loading of the website because it remembers what has already been read from K2 once. Each piece of data on the page has a setting for when it may be deleted from the cache memory and when it needs to be read again from K2.
A special page has been created for the new template-based e-shop which allows the e-shop administrator to optimize the cache. Optimization means reducing the number of requests sent between the e-shop and the K2 API. An example can be a request for All categories of articles. These are changed rarely on the e-shop, so they can be stored in memory for a longer time without the e-shop having to request them often. In contrast, Article availability can change at any moment, and therefore the cache needs to be updated as often as possible.
We strongly advise against the cache optimization settings being handled by a person who is not fully familiar with their meaning, as this can significantly damage the functioning of the e-shop itself.
The page for cache optimization is accessed via the URL address of the e-shop with an added query in the form ?KEY=___________&CMD=cache.settings. In the empty space for the KEY query, the RID number of the e-shop (e.g. 123456789456) from K2 must be inserted. The URL path for working with the cache can then look like this: http://vaseshop.k2.cz?KEY=123456789456&CMD=cache.settings.
For individual services that allow it, it is possible to set whether they depend on:
- User – the currently logged-in user,
- Currency – the currently selected currency,
- Language – the currently selected language,
- Partner – the currently selected partner.
The default state of unset sharing is YES, i.e. all caches depend on all parameters. E.g. config. It is the same for everyone, so it can be switched to "NO" in all fields.
Custom time – custom setting of the cache validity time. It is entered in seconds. An empty value means that the default time is used. The value 0 means that the given service always reads data directly from K2.
Default time – default setting of the cache validity time.
The Count link at the end of the table counts the number of cache files for the individual services as well as the total number of files.
Below the table of ws services there are 2 fields for exporting the currently saved cache settings and for importing them to another website. To simplify the setup of common cache scenarios, two templates have been created:
- Default sharing for B2B (Default sharing for B2B) – the user can change the language, currency, different prices for customers.
- Full sharing (Full sharing) – the same articles and prices for all users, the user can change the language and currency, typical for B2C.
E-shop update
If any special customizations are deployed on the new e-shop (e.g. recolouring of the template, modifications of the article detail, etc.), it must be kept in mind that after any update of the e-shop, an update must also be performed via the URL address of the e-shop, the key, which is the e-shop number from K2 KEY=RID of the e-shop, and the command system/less/convert.php. The resulting URL can look like this, for example: https://demo.k2.cz/system/less/convert.php?KEY=000000000000
How to attract your customers
For several years now, marketing experts have agreed that the first seconds decide whether a customer buys on your website or not. Below are the functions that can be used on the new e-shop to capture the customer's attention.
The new e-shop has 4 standard templates, which can be modified according to special requests if needed. Thanks to the well-thought-out colour design, the customer is guided step by step through the entire ordering process. An inseparable part of the e-shop are banners, which make it possible to capture attention and thus convey important information. To make it easier to modify the appearance of the e-shop, the page content editor can be used, which allows graphic modifications directly on the website.
The new e-shop also allows online payment, which is becoming more and more popular among consumers. We support 4 payment gateways: PayPal, GoPay, WebPay and HeidelPay. You thus have a range of options available from which you will surely choose the right one.
On the new e-shop, it is also possible to use discount coupons or promotions, which are, as is well known, great marketing tricks. K2 supports several types of promotions: Special price list, Gift to item, Aut. free gift to item, Gift based on the amount spent, Discount based on the amount spent and Starter kit.
Watchdog is one of the practical functionalities you will find on our e-shop. It notifies registered as well as unregistered users of a possible price drop or stock availability of the desired product.
Price comparison portals - how to get started?
Price comparison sites are very popular among customers, not only because they can compare the prices of products from various online shops in one place, but also because they allow customers to examine the quality of the shop as such.
For your e-shop to be listed among the others that sell the given product, several steps need to be taken.
- Price comparison portals use a data file called an XML feed. Each price comparison portal has its own individual category tree, to which we must adapt the category tree of our e-shop. The XML feed file contains the article name, description, price, but also stock availability, parameters and other information. All information is organized according to the fixed structure of the given portal so that the products can be easily classified and found. For the K2 e-shop to know the current structure of the categories, we must first import the files (category import for Zboží.cz, Google Merchant Center, Heureka) that are shared by the given comparison site. For Google Merchant Center, this information can be found here: https://support.google.com/merchants/answer/6324436?visit_id=637212536160624388-3030263402&rd=1
- Subsequently, the categories of the given comparison site must be assigned to the article cards, on the E-shop tab, sub-tab Information for price search engines. There, the relevant fields must be filled in, i.e. Name and Description for comparison sites, and then you select the relevant category of the chosen comparison site.
- The last step is to create an XML feed of the articles that are on your e-shop and share it with the selected comparison site. The script EshopXmlFeedExport.PAS will certainly serve for the export of this file.
Preparing the website and e-shop for AI assistants and generative search
This methodology defines key procedures and standards for managing digital solutions. It is designed to provide full value both to our existing customers operating a K2 website or e-shop and to customers using a website or e-shop connected to K2. The aim is to prepare a file that tells AI tools what your website offers and shows them where to find key information.
LLMS.txt is a short text file placed in the root of the domain (vasweb.cz/llms.txt) which briefly summarizes for AI tools what your website offers and where to find more important information — without having to crawl the whole website first.
Unlike robots.txt it does not control access, but points AI to the important content of the website — and unlike sitemap.xml it is not a complete list of all URLs, but a selection of key pages supplemented with a brief description.
Note: This is an informal convention that is gradually being adopted by some websites and tools — it is not an official standard. Google explicitly states in its documentation that it does not use llms.txt in Search or in its generative features and that its existence neither helps nor harms ranking; nor has any other major AI provider publicly confirmed that it reads the file automatically. Therefore, treat it as preparation for a wider range of AI tools (chatbots, AI assistants), not as an SEO tool with an immediate effect.
- The website operator decides which pages and information are important.
- The website operator is responsible for the correctness and currency of the content, such as prices, terms or availability.
- The technical upload of the file is handled by your IT, hosting provider or our K2 consultant.
- Regular checking and updating of the content is the responsibility of the website operator.
A supplier or agency can help with writing and the technical upload, but the content and its currency are always confirmed by the customer.
Step No. 1 - Listing the key pages
Select the pages that carry the greatest information value for the visitor (and AI). Typically:
- About us / Company
- Offer, product categories or price list
- Trade terms
- Transport and payment
- Article returning / Complaints
- FAQ
- Contact
- Blog / News, promotions and discounts (if the website has them)
Step No. 2 - Write a one-sentence description for each page
The description should say what the visitor will find on the page. Not just the name of the section.
- Wrong: [About us](https://...): About us.
- Correct: [About us](https://...): Company history, team and client references.
Step No. 3 – Checking links
- Use canonical URLs, i.e. the preferred addresses of the individual pages.
- Link to publicly accessible pages.
Step No. 4 – Compiling the file
Use the template below, fill in your details and save it in the *.txt format with UTF-8 encoding.
Step No. 5 – Uploading and verification
- Upload the file to the root of the domain as /llms.txt.
- Verify that the address returns HTTP 200 and contains clean Markdown.
- Try asking your AI tool (chatbot, assistant) about the content of your website — however, this is not reliable proof that it actually used `llms.txt`; adoption among AI providers has not yet been officially confirmed.
```markdown
# Company name
> A brief summary in 1–3 sentences of what the company does, whom it serves and what sets it apart from the competition.
## About the company
- [About us](https://vasweb.cz/o-nas): History, team, references.
- [Contact](https://vasweb.cz/kontakt): Address, phone, e-mail, contact form.
## Offer
- [Product categories](https://vasweb.cz/kategorie): Overview of all categories.
- [Price list](https://vasweb.cz/cenik): Service prices and rate tables.
## For customers
- [Trade terms](https://vasweb.cz/obchodni-podminky)
- [Transport and payment](https://vasweb.cz/doprava-platba)
- [Article returning and complaints](https://vasweb.cz/vraceni-zbozi)
- [FAQ](https://vasweb.cz/faq)
## Current information
- [Blog / News](https://vasweb.cz/blog): Articles and current news.
- [Promotions and discounts](https://vasweb.cz/akce): Ongoing campaigns.
```
Real example: A sample of a deployed file: https://www.k2.cz/llms.txt.
- Typically, link to categories, not to individual products - the list of products changes too often. The exception are e-shops without categories (e.g. single-product ones), where you link directly to the key pages of the offer.
- Always include: trade terms, transport/payment, article returning.
- Do not state specific prices - prices change and the file would quickly become outdated. Instead, link to the price list or categories.
1. Only a list of links without descriptions
- Why it is a problem: AI does not get the context of what it will find on the page.
- How to solve it: Add a sentence to each link.
2. Specific prices in the file
- Why it is a problem: Prices become outdated, the file will be misleading.
- How to solve it: Link to the price list, do not state the price.
3. File too long
- Why it is a problem: Important information gets lost in the amount of less essential content.
- How to solve it: Stick to the key pages.
4. Forgotten update
- Why it is a problem: The file points to non-existent or changed pages.
- How to solve it: Schedule a regular review, as well as a review after a major change to the website.
- [ ] I have selected the key pages of the website
- [ ] Each page has a one-sentence description
- [ ] All links lead to correct and publicly accessible pages
- [ ] The file is saved as UTF-8
- [ ] The file is uploaded to `/llms.txt` and returns HTTP 200
- [ ] The content corresponds to the current state of the website
- [ ] I have set a reminder for a regular review
"Out of service" page
There are various situations in which the web/e-shop cannot connect to IS K2. If it is an intended outage (e.g. in the case of a reinstallation), the following parameter can be switched on manually in the configuration file config.php (in the folder where the web/e-shop is installed): $CONFIG['force503'] = true (the default setting is false). On the next lines, we set the date and time ($CONFIG['force503date']), or the language ($CONFIG['force503default']) in which this page is to be displayed.
The content of the "Out of service" page can be modified on the Text pages tab, where, apart from the mandatory and recommended fields, the Name of template for this page must be filled in: Template for closing of eshop (pageClosed).

Picture: Default appearance of the "Out of service" page
E-shop reinstallation
Reinstallation is one of the cases where an intended outage of the e-shop occurs. Since we know in advance when the installation will take place, we can also communicate this information to our customers. The setup of the Out of service page is described in more detail here. For this page, it is possible to set both the time when the e-shop maintenance will take place and the language in which it is to be displayed. The page itself can of course be edited in the Text pages book.
When reinstalling the e-shop, it must be kept in mind that the other K2 products should also have the same version number so that they communicate with each other correctly in case any changes have taken place.
We start the reinstallation process via the K2 installer on the Installed tab. In the list of products, we find the installation package K2 E-shop, company websites, where we update the relevant item with the Execute command. Then we proceed according to the instructions of the installer.

Picture: E-shop reinstallation
After the reinstallation is completed, the configured Out of service page must be switched off in the configuration file. An automatic update of the e-shop is part of the reinstallation process. If an error occurs during the reinstallation, the e-shop update can be run manually.