Book Contents

Book Index

Creating and putting a web/e-shop into operation

Book Contents

Book Index

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.

Book Contents

Book Index

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

Book Contents

Book Index

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.

Book Contents

Book Index

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.

Creating an e-shop in IS K2

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.

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:

After the basic settings, it is also necessary to consider the following options offered by 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.

E-shop installation

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.

Creating basic text pages and menus

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.

Creating categories

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

Specification of articles for the e-shop and assignment to categories

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:

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-mail template settings

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.

Web/e-shop appearance

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:

  1. Test whether e-mails are sent and have the correct content for each language defined on the e-shop.
  2. Verify data collection in Google Analytics or Heureka.
  3. Start monitoring of the e-shop operation.
  4. In the scheduled tasks administration, set up Sending of watchdog e-mails, if the function is to be active.
  5. Set up XML feeds for search engines (Zboží.cz, Heureka, Google Merchant Center).
  6. 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.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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

Book Contents

Book Index

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.

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:

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:

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

Book Contents

Book Index

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.

Graphics and clarity

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.

Payment and delivery

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.

Gifts, discounts, promotions

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

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.

  1. 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
  2. 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.
  3. 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.

Book Contents

Book Index

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.

Book Contents

Book Index

LLMS.TXT

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.

Book Contents

Book Index

Responsibility

A supplier or agency can help with writing and the technical upload, but the content and its currency are always confirmed by the customer.

Book Contents

Book Index

Procedure

Book Contents

Book Index

Partial steps for creating the file
Step No. 1 - Listing the key pages

Select the pages that carry the greatest information value for the visitor (and AI). Typically:

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.

Step No. 3 – Checking links

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

Book Contents

Book Index

LLMS.TXT template

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

Book Contents

Book Index

E-shop specifics

Book Contents

Book Index

Common mistakes

1. Only a list of links without descriptions

2. Specific prices in the file

3. File too long

4. Forgotten update

Book Contents

Book Index

Checklist

Book Contents

Book Index

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

pic_4918

Picture: Default appearance of the "Out of service" page

Book Contents

Book Index

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.

pic_5313

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.