Book Contents

Book Index

Sales and customer support
Orders from the e-shop

After an order is submitted, an XML Order is automatically created in K2, independently of the creation of the Sales order. If the creation of the Sales order fails, the Order can be used to create the sales order subsequently, without the customer noticing or dealing with any failure.

Orders from the web/e-shop can be displayed in K2 through the Orders from the e-shop book (available from the tree menu - the Sales and customer support node, or function number for a desktop button: 901).

Sales orders from the e-shop

The sales order is created immediately when the order is submitted in the book, with data according to the web/e-shop settings. If it is an order for a company (i.e. the registered user has an assigned partner), the sales order is created for this company. Depending on the Display selection of invoicing partner (company) parameter, the sales order is created for the basic partner › customer of the given contact person or for the partner › customer that the user currently has set (and whose data are visible in the e-shop header next to the data of the logged-in user). Both the delivery and the invoice address (including Comp. Reg. No. and VAT Reg. No.) are set according to the order.

If it is a customer who has no assigned partner, the sales order is created for an anonymous customer. The contact person who created the order will always be attached to the sales order. If it is an unregistered customer, K2 tries to find an already existing contact person without registration by e-mail, name and surname. If such a person is found, they are added to the sales order. Otherwise, a new contact person record is created.

Addresses are always saved as simple addresses, except for personal collection at a branch - in this case, the branch address is saved in the delivery address as a link to the Customer card of the selected branch. Comp. Reg. No. and VAT Reg. No. are saved in the corresponding fields on the sales order. If the contact data (i.e. e-mail and phone) of the address are also changed compared to the registration, these data are added directly to the address (the Contact tab).

If possible in terms of stock, an unconfirmed Release note is automatically created for the items. If it cannot be created, a Reserving card is created. If we do not want a release note or reserving card to be created, it is enough not to fill in the Warehouse in the Basic data of the given web and e-shop. If the payment is successfully made through a payment gateway, an Invoice and a Cash voucher are automatically created for the sales order according to the Web and e-shop settings - the Payment gateways section, and these documents are paired (i.e. the invoice "is paid").

Contact persons

The book of contact persons is also used in connection with the web/e-shop. This mainly concerns the records of users who have registered on the web/e-shop (login data are recorded here) or have created an order in it (the person is then stated on the sales order).

Records of login and other data from the web/e-shop

In connection with the web/e-shop, the creation of a new contact person or the pairing of an existing one depends on the e-shop Registration settings. The contact person is used as the carrier of the information that the user enters when registering in the e-shop, for saving and updating login data for various e-shops (login and password), and for linking the user with the customer and with the orders created from the web/e-shop.

The login e-mail and password are recorded on the Web and e-shop tab (the K2 API, i.e. the web services server, is saved in the Web field). If a specific web/e-shop is filled in the Web, e-shop field, these login data apply only to this web/e-shop (always during registration).

pic_4870

Picture: Contact persons book - Web and e-shop tab

The name and surname are saved in the contact person header, the contact e-mail and phone are saved in electronic addresses (type according to the web, e-shop record). Delivery and invoice addresses are saved in the Registration module in the Addresses table with the address type Delivery or Invoice address for e-shop, respectively. One or more partners can be assigned to a contact person. If a partner is attached to the contact person, the given user also sees in the address lists on the web/e-shop the addresses of the Customer card linked to their Partner card. They can then also select these addresses in an order, but cannot edit or delete them.

pic_4871

Picture: Registration book - Basic data tab

Creating and attaching a contact person to a sales order from the e-shop

If a new order is created by an unregistered user, the system searches for a contact person with the same name, surname and e-mail (without an assigned partner). If such a person exists in K2, it is attached to the newly created sales order. Otherwise, for the purpose of attaching a contact person to the sales order, a new Contact person record is created.

Web comments

The K2 e-shop includes a function for asking about information related to individual products. If the K2 settings allow questions to be asked for individual articles, a form can be opened in the article detail on the questions tab, where a question can be asked to the e-shop administrator, who can then fully answer it in K2 and display the question on the e-shop.

pic_5652

Picture Ask a question

pic_5653

Picture Display of questions with answers in the article detail

Settings in K2

If the administrator decides to display questions on individual article details, it is necessary to check Display comments/questions. in the tree menu - Web and e-shop - General modules – Webs and e-shops – Web and e-shop settings on the Function tab

pic_9868

Picture Web and e-shop settings – Display comments/questions

If the Display comments/questions without approval field is checked, newly inserted questions are displayed directly on the product detail without a check by the administrator. If this field is not checked, each newly added question must be reviewed and approved in K2 in the web comments module, where in the tree menu – Web and e-shop – Sales and customer support – Web comment the administrator must uncheck the Do not show on web field.

Web comment in K2

In the tree menu – Web and e-shop – Sales and customer support – Web comment, the list automatically displays all questions that customers add to products on the e-shop.

pic_5655

Picture Web comments

On the Basic data tab, it is possible to edit questions or set the option Do not show on web. In the module, it is also possible to manually create a new question, which is then to be displayed with products on the e-shop.

pic_5656

Picture Web comment - Basic data

On the Function tab, there is a function that allows the administrator to answer a question by opening the Answer the question form.

pic_5657

Picture Answer the question

On the Function tab, there is an option of bulk publishing on the web, where the administrator can approve the marked questions in bulk and publish them on the web.

Book Contents

Book Index

Dropshipping and marketplace

Alza dropshipment is a form of business cooperation between the Alza online store and a K2 customer, where the K2 user is considered the supplier of goods, i.e. has a warehouse, and the Alza online store has no warehouse but sells goods that are located in the supplier's warehouse. The supplier sends the shipments directly to the customers, so it handles the dispatch itself. If a K2 user wants to sell on the internet through Alza, it is necessary to have their own K2 API licence, with which they can also set up their own e-shop and have two options of selling over the internet. Thanks to K2 API and the direct connection with the Alza system, all sales processes are fully automated.

First of all, it is necessary to conclude a business agreement with Alza, which, according to the agreed conditions, will provide the necessary identifiers for the configuration in the K2 system. Furthermore, it is necessary to settle the invoicing conditions for the sold goods between the K2 user and Alza.

How dropshipping works

1. The K2 system updates the prices and stock availability of products sold on Alza.

2. The customer adds goods to the cart in the Alza online store, a cart is created in the K2 system via the K2 API function and the stock availability information is confirmed to Alza.

3. When the customer creates an order, an order is created in the K2 system and a confirmation is sent to Alza, confirming the dispatch method and the delivery time.

4. Further handling of the order, i.e. of the goods, is on the supplier's side. When the dispatch takes place and all necessities such as the shipment number, the issue of the delivery note, etc. are created... K2 API passes all information to Alza, which informs the customer accordingly. The expected situations during the sale, such as completion of the order or cancellation, are handled using methods that are solved by functions in K2 thanks to the data connection (see below – list of scripts).

5. The dispatch has taken place and Alza issues documents to the end customer to complete the accounting case. K2 users invoice the sold goods according to the business agreement with Alza.

See the communication diagram here: https://dropadraft.docs.apiary.io/#/introduction

Configuration of Alza dropshipment in K2

In the tree menu, on the Web and e-shop tab, then the Dropshipping and marketplace tab, open the Alza book. A list of configurations is displayed, which offers the option to have multiple warehouses or e-shops configured, according to the needs of the K2 user. In the initial setup, a new configuration is created using the insert key.

pic_5731

Picture: List of configurations

In the Alza dropshipment configuration form, it is necessary to fill in the e-shop name and identifiers such as ID, private key, server address and API URL. These identifiers will be provided by Alza on the basis of the business agreement. The customer ID is created by the K2 user themselves, but again this information should be in accordance with the agreement with Alza.

pic_5732

Picture: Alza dropshipment configuration

The next step is the definition of the collection methods, where the dispatch methods are defined using the insert key. The code list already has all the supported methods that Alza has agreed with the carriers. Therefore, it is again important that the settings in K2 are compatible and exactly defined according to the agreement with Alza. (Note: Check the collection methods set for the existing online store and add them if necessary.)

pic_5733

Picture: Transport configuration

The assortment agreed with Alza must be included under the selected e-shop header in IS K2, and the DropshipmentAlzaAvailability script must be added to the task scheduler so that prices and stock availability are automatically updated from K2 to Alza. According to Alza's recommendation, this task should be performed every 10–30 minutes.

Feedback on the course of the dispatch is provided by standard scripts on individual records in the book of sales orders – they must be run manually. Another option is to implement special scripts handling the dispatch process.

Calling the CreateShipment function also generates a PDF file with parcel labels on the Alza side.

Alza sends the URL addresses of the PDF files in the response, and the standard DropshipmentAlzaCreateShipment script saves these PDF files as attachments to the parcels in Documents. For the document download to work correctly, it is necessary to set a whitelist of IP addresses from which these PDF files will be downloaded in the logistics settings on the Alza portal.

pic_10287

Picture: Whitelist IP address setting

List of scripts that need to be configured for the function:

Alza update and filling of values

Process number: ESH005

Script ID number: FESH032

File: DropshipmentAlzaAvailability.PAS

Script description: Used to update and fill in product values for Alza Dropshipment.

Address in the tree:

ShopRID

E-shop number for the export of articles.

CustomerID

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

Language

Language number for the export.

Currency

Currency for the price export.

ImportType

Determines the import type FULL (used to insert new articles and fill in values), UPDATE (used mainly to update prices and availability).

FilterGUID

GUID for the filter identification. Used to filter the articles that are to be exported.

TestScenario

Identification of the test scenario (used only when testing scenarios before going live).