Book Contents

Book Index

Web and e-shop

Book Contents

Book Index

K2 e-shop

Book Contents

Book Index

Export XML feed for comparators

Process number: ESH001

Script ID number: FESH001

File: EshopXmlFeedExport.pas

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

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

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

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

Address in the tree:

Script parameters - default value:

AllowZeroPrices - No

Export also articles with zero prices?

AvailabilityFeedFileName - 'AvailabilityFeed.xml'

Name of output XML file for article availability.

Createlog -

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

Currency -

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

CustomerID -

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

ElectronicAddressTypeId -

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

ExportAvailabilityFeed - No

Should a file for article availability be created?

ExportFileNameGoogle - GoodsFeedGoogle.xml

Name of the output XML file for Google Merchant.

ExportFileNameHeureka - ´GoodsFeedHeureka.xml´

Name of the output XML file for Heureka

ExportFileNameZbozi - ´GoodsFeedZbozi.xml´

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

ExportFolder -

Folder to which the file is to be exported.

ExportFolderFTP -

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

ExportFullDescription - No

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

ExportMainGoodsCard - Yes

Yes - the XML feed export will include master cards.

ExportParametrs - No

Yes - an XML file including parameters is exported.

ExportSameProductAndProductname - No

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

ExportVatRate - NO

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

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

 

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

FieldForID -

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

FilterGUID -

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

GiftText -

Name of the article that is displayed as a gift.

HeurekaExportOnlyInStock - No

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

ImageServerRootUrl -

URL address of the root of the image server.

IncludeManufacturerInProductName - No

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

Language -

Language number for the export.

PriceGroupID

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

ShopRID -

Number of the e-shop for the article export.

UploadToFTP - Yes

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

WeightMode -

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

ZeroDaysAsInStock - No

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

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

Book Contents

Book Index

Alza creation of consignment

Process number: ESH005

Script ID number: FESH033

File: DropshipmentAlzaCreateShipment.PAS

Script description: Contains information about the created consignment that will be sent. The consignment contains order items from one supplier branch that are transported to one address.

Address in the tree:

ShopRID

E-shop number for ALZA Dropshipment (optional).

DokumentType

Document type for saving the PDF file with labels for the carrier.

TestScenario

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

Book Contents

Book Index

Alza deletion of consignment

Process number: ESH005

Script ID number: FESH034

File: DropshipmentAlzaDeleteShipment.PAS

Script description: Used to delete a created consignment before it is sent.

Address in the tree:

ShopRID

E-shop number for ALZA Dropshipment (optional).

TestScenario

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

Book Contents

Book Index

Alza cancellation of consignments

Process number: ESH005

Script ID number: FESH035

File: DropshipmentAlzaDeliveryResult.PAS

Script description: It is sent to provide information about the result of the dispatch. The method is used in the following situations (when starting, the option in brackets is selected):

In case of problems with dispatch, the supplier wants to cancel the order (canceled).

The package was returned to the supplier's branch (rejected).

The supplier uses its own transport and reports the delivery result (delivered).

Address in the tree:

ShopRID

E-shop number for ALZA Dropshipment (optional).

TestScenario

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

CreateComment

Create a comment on the delivery note with information about the message – if yes, a comment is created containing the message type, user, date and content.

CommentType

Comment type.

Book Contents

Book Index

Alza sending of consignments

Process number: ESH005

Script ID number: FESH036

File: DropshipmentAlzaShipmentDeparture.PAS

Script description: Contains information about the sent consignment. The consignment contains order items from one supplier branch that are transported to one address.

Address in the tree:

ShopRID

E-shop number for ALZA Dropshipment (optional).

TestScenario

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

Book Contents

Book Index

Testing of Alza methods

Process number: ESH005

Script ID number: FESH038

File: DropshipmentAlzaTesting.PAS

Script description: The script is used to test the functionality of web services for Alza Dropshipment according to the test scenarios sent. In the script, you can choose from 4 messages that Alza is to send to the web services and that are necessary to verify correct functionality and successful completion of the scenarios.

To perform the test correctly, it is necessary to select one message and fill in the name of the test scenario for which the selected message is to be sent. For the Insert Order message, the products to be inserted into the basket are selected on the product list tab.

Message types:

Insert Order – creates a record in the Baskets book.

Cancel Order – cancellation of the order.

Confirm Order – creates a sales order based on the basket that was created from the Order Insert message.

Extend Order – extension of the order reservation (not yet supported in K2; this message does not have to be sent in the test scenarios).

Address in the tree:

ShopRID

E-shop number for ALZA Dropshipment (mandatory).

Book Contents

Book Index

Adding a picture to an article

Script for the e-shop

Process number: ESH001

Script ID number: FESH023

File: NewEshop_AddPicture.pas

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

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

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

Address in the tree:

Script parameters - default value:

AddGallery -

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

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

ConvertGoodsPictK2 - NO.

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

DeleteGallery -

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

DeleteGalleryOnlyEshop -

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

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

DescrFormatString -

Description, formatted text.

FileMask-

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

LanguageId - 0

Determines the language number of the picture link.

 

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

PictureFile -

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

PicturesDirectory -

Directory where the pictures are located.

RIDEshop -

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

TitleFormatString -

Name - formatting text

Book Contents

Book Index

Import of web/e-shop categories

Process number: ESH001

Script ID number: FESH004

File: EshopCategoryImport.pas

The script makes it possible to transfer (import) the category tree between Fastcentrik (or a general interface) and the K2 web/e-shop.

Address in the tree:

Script parameters - default value:

EshopRID -

RID of the e-shop into which the categories are imported.

CreateRootCategory -

The specified root category of the e-shop is created as level zero above the imported categories.

TreeId -

Id of the tree from which the categories are imported.

Book Contents

Book Index

Export of text pages

Process number: ESH001

Script ID No.: FESH007

File: K2ETextPageExp.pas

Script description: The script makes it possible to export the marked text pages in the selected languages (according to the parameter) to an XML file. It also saves their possible "position" in the specific pages in the Web and e-shop settings. This information can then be used when importing the pages into a new web/e-shop.

Address in the tree:

Script parameters:

ExportLanguages - 1;5.

Numbers of the languages whose texts are to be exported.

Book Contents

Book Index

Import of text pages

Process number: ESH001

Script ID No.: FESH008

File: K2ETextPageImp.pas

Script description: The script makes it possible to import an XML file with text pages into the selected e-shop. Depending on the parameter setting, it can also set these pages directly into the specific pages of the given web/e-shop according to their original position.

Address in the tree:

Script parameters:

ShopRID - .

Unique number of the web/e-shop into which the texts are to be imported.

SetSpecificPagesForShop - Yes

Yes - sets the new text pages in Web and e-shop settings - the Specific pages part according to their original form.

Book Contents

Book Index

Import Heureka.cz categories

Process number: ESH001

Script ID No.: FESH010

File: EshopHeurekaCatImport.pas

Script description: The script makes it possible to import into K2 the category code list provided by the Heureka.cz server. Using them is similar if you want to use the services of this server. The categories are then filled in on the individual Article cards on the Eshop tab - Info for price search engines.

Address in the tree:

Script parameters:

InputXMLFile - .

Path to the imported xml file. This file is provided by Heureka.cz.

IsHeurekaSK - .

Import of categories for Heureka SK.

Book Contents

Book Index

Import categories Zboží.cz

Process number: ESH001

Script ID No.: FESH015

File: EshopZboziCatImport.pas

Script description: The script makes it possible to import into K2 the category code list provided by the Zboží.cz server. Using them is similar if you want to use the services of this server. The categories are then filled in on the individual Article cards on the Eshop tab - Info for price search engines.

Address in the tree:

Script parameters:

InputCSVFile - .

Path to the imported csv file. This file is provided by Zboží.cz.

Book Contents

Book Index

Import categories Google Merchant Center

Process number: ESH001

Script ID No.: FESH017

File: EshopMerchantCenterCatImport.pas

Script description: The script makes it possible to import into K2 the category code list provided by the Google merchant Center server. Using them is advisable if you want to use the services of this server.

Address in the tree:

Script parameters:

InputPathFile - .

Path to the imported xls file. This file is provided by Google Merchant Center.

Book Contents

Book Index

Import of email templates

Process number: ESH001

Script ID No.: FESH040

File: ImportWysiwygEmailTemplates.PAS

Script description: The script is used for bulk import of standard WYSIWYG e-mail templates into the client. The script loads the templates from the \SupportFiles\EmailTemplates\WYSIWYG directory and creates them in the E-mail templates book.

During the import, it checks whether a template with the same Description already exists in the system. If so, it does not overwrite the template, skips it and records this fact in the import protocol.

The script is intended primarily for the initial filling of the system with standard WYSIWYG e-mail templates.

Address in the tree:

Script parameters:

ImplicitLanguage - 5

The value determines which language definition of the template is to be used for the Default language.

Book Contents

Book Index

Password reset of a contact person

Process number: ESH001

Script ID number: FESH011

File: CPRESETPASSWORD.PAS

Script description: The script makes it possible to generate a new password or complete login credentials for the selected contact person or the marked contact persons. Depending on the parameter, it can send the newly created data directly to the given contact person - in that case, the e-shop to whose electronic address type the e-mail is to be sent must be entered. The data are also displayed to the user for possible further processing. If the AddressTypeAbbr parameter is filled in, the e-shop is ignored and the login password of the e-shop contact person is reset or newly created. At the end, no e-mail is sent.

Address in the tree:

Script parameters:

AddressTypeAbbr -

Abbreviation of the electronic address type on the contact person.

EshopRID -

RID of the e-shop.

EmailTemplateActionRese -

Action number of the template for password reset; it cannot be combined with sending the password by e-mail (the SendEmail parameter). Using the e-mail template for password reset (the EmailTemplateActionReset parameter) cannot be combined with creating a new login (the GenerateLogin parameter).

GenerateLogin -

False - password reset in K2 if the SendEmail parameter is false.

True - Password reset in K2 and, if the login does not exist, it is created together with the password, if the SendEmail parameter is set to false. If the GenerateLogin parameter is set to true and the SendEmail parameter is also set to true, the password is reset in K2 and, if the login does not exist, it is created together with the password and an e-mail about this action is sent.

SendEmail -

True - Ensures that an e-mail with the new password, or with the new login, is sent.

WebId -

Link to the "web" used for the web services server.

Book Contents

Book Index

Connecting a Contact person to a Customer

Process number: ESH001

Script ID number: FESH012

File: CPCusAttach.pas

A script that is run over a contact person not connected to a partner; it searches the addresses on the 3rd page and tries to find the customer in K2 according to the Comp. Reg. No. given there. If the customer does not exist, it pre-fills a new record in the Suppl./Cust. book using ARES and offers it to the user for saving.

Address in the tree:

Script parameters - default value:

CustCode -

Code for creating a new customer

Custgroup -

Group for creating a new customer

Book Contents

Book Index

Obtaining a link to a file

Process number: ESH001

Script ID number: FESH013

File: LinkUrlPreview.pas

Script for displaying a preview of the full URL of a link to a file from the 9th page (links tab).

The script is added to F9 or to the toolbar above each module where the function is needed, and its only parameter RootURL is set, e.g. <shop address>/Pictures/ , which specifies the root URL address of the file storage.

The script then displays previews of the full URL address of the current record in the Links on the 9th page.

 

Address in the tree:

Script parameters - default value:

RootUrl -

Root URL address of the file storage

Book Contents

Book Index

Deletion of unconnected pictures and links

Process number: ESH001

Script ID number: FESH014

File: UnusedPictures.pas

Script for deleting unconnected pictures from links (Links) that remained as files and, conversely, invalid links to pictures.

 

The script is given the path to the directory where the files for the links are stored (if not entered, the script reads it from the "Configuration of saving picture links"). It searches all files in the directory structure and for each of them tries to find a record on the 9th page in K2.

It displays the list of files that it did not find anywhere on the 9th page and offers the user the option to delete these files. In the opposite mode, it goes through the 9th page and the links and tries to find a picture for each of them according to the path.

 

In the mode with parameter 0, the script searches the whole of K2; in the mode with parameter 1, only the state and the records over which it is run.

 

Address in the tree:

Script parameters - default value:

Inputpath -

Path to the directory with pictures

Mode -

0=search for files without a link

1=search for links without a file

Book Contents

Book Index

Connecting a document to an article

Process number: ESH001

Script ID number: FESH019

File:Eshop_AddDocument.PAS

Script description: The script is intended for connecting a document to an article card. The document is connected on the Attachments page in the Links tab. The file must be physically stored with the e-shop so that only links are copied to the article cards.

Address in the tree:

Script parameters - default value:

DescrFormatString -

Adds a description - formatting text

RIDEshop -

Makes it possible to display the document on a specific e-shop. If not entered, the document is connected only to the article card.

TitleFormatStrig -

Adds a title - formatting text

Book Contents

Book Index

Deletion of article parameters on the Article parameters page

Process number: ESH001

Script ID number: FESH020

File: RemoveUnusedParameters.PAS

Script description: The script is used to delete parameters outside the classification on the Article parameters page.

Address in the tree:

Script parameters - default value:

WithoutValueOnly - NO

Yes - deletes only those article parameters outside the classification that do not have a value set.

No - deletes all parameters except the classification.

Book Contents

Book Index

Import categories (import articles) from Excel

Process number: ESH001

Script ID number: FESH019

File: IMPORTCATEGORY.PAS

Script description: The script allows you to import categories from Excel into the selected website/e-shop. Using a parameter, articles can also be imported from Excel. When importing categories, the e-shop must already have one parent category and one subcategory assigned.

Address in the tree:

Script parameters:

RIDEshop -

E-shop number

RIDCategory -

Number of the parent category

InputhPathFile -

Input path for the file (Excel)

ImportOnlyCategory - YES by default

Yes - import of the category tree only, No - import of categories + adding articles

GroupZBO -

Group of goods

Note

The Excel header must contain the following data:

For categories: Category 1, Category 2, Category 3, ...etc.

For articles: Abbreviation, Name, Short description, Long description, Price, Stock price, Original price, ...etc.

Book Contents

Book Index

Notification of an unpaid advance

Process number: ESH004

Script ID number: FESH022

File: UnpaidAdvanceNotification.PAS

Script description: The script filters all unpaid advances from the e-shop (according to the parameter). For this script, you need to create an email template over the Advance Received data module, which will be sent to customers. A sample of it can be found in the SupportFiles\EmailTemplates directory. It is also advisable to include the script in the task scheduler. If the Number of days of delay is filled in, the email is sent automatically via the task scheduler. If the number of days is not filled in, the email is sent only once and an activity is created. If a responsible person is filled in the parameters, they always receive the email with the due date notification.

Address in the tree:

Script parameters:

RIDEshop -

E-shop number

NumberOfDaysOfDelay -

Number of days overdue

ActivityType -

Type of activity

ActivitySpecification -

Activity specification

EmailResponsiblePerson -

Email of the responsible person

NumberActionEmail -

Action number of the email template

NumberActionOnlineCardEmail -

Action number of the email template for online card payment

LanguageNumber -

Language No.

Book Contents

Book Index

Initialization of web modules

Process number: ESH003

Script ID number: FESH024

File: Eshop_InitWebModules.PAS

Script description:
The script is intended for an easy transition between the older and the new version of the e-shop. After start, the data of the older responsive e-shop are converted to the new version of the template-based e-shop. The conversion transfers all web modules whose settings differ in the new version of the e-shop (e.g. text pages). The script can only be run over the Websites and e-shops book, where we select the website/e-shop for which we want to run the conversion.

Address in the tree:

Script parameters:

CopyTextsToAllLangs -

The script transfers the texts of the default language. If we want to transfer the texts to all languages, this parameter must be set to True.

Book Contents

Book Index

Filling in the name for the e-shop

Process number: ESH001

Script ID number: FESH025

File: EshopFillEsName.PAS

Script description:
The script fills in the article name from the basic product data on the E-shop tab. The script can only be run over a container of articles.

Address in the tree:

Book Contents

Book Index

Setting the New flag

Process number: ESH001

Script ID number: FESH026

File: Eshop_SetNews.PAS

Script description:
The script sets the New flag on the E-shop tab for newly added articles (the parameters let you set how long an article is considered new). It is also possible to clear the New flag on records that have it set. For the script to work correctly, keep in mind that newly created articles must be assigned to the e-shop - otherwise the script will not find these articles.

Address in the tree:

Script parameters:

EshopRID - The script transfers the texts of the default language. If we want to transfer the texts to all languages, this parameter must be set to "True".

Count - Number of articles I want to mark as new.

NoOfLastDays - How old the articles I want to mark as new are (in days - e.g. articles created no more than 30 days ago).

DeleteFlagNew - Delete previous new items from the e-shop

Book Contents

Book Index

Export of web texts

Process number: ESH001

Script ID number: FESH027

File: Eshop_WebText_Export.PAS

Script description:
The script is intended only for the new (template-based) version of the e-shop. It allows you to export website texts including translations to an XML file. This option is especially welcome for those who add their own website texts and do not want to lose them during reinstallation. This way they are preserved in a file that can later be imported using another script, Eshop_WebText_Import.PAS.

Address in the tree:

Script parameters:

FilePath - Output XML file

WithoutTranslations - Do not export translations; if the parameter value is false, the script performs the export including translations.

SelectedOnly - We switch the parameter on (true) if we do not want to export all website texts but only some of them - in that case they must be marked in the list.

Book Contents

Book Index

Import of web texts

Process number: ESH001

Script ID number: FESH028

File: Eshop_WebText_Import.PAS

Script description:
The script is intended only for the new (template-based) version of the e-shop. It allows you to import website texts including translations from an XML file. This option is especially welcome for those who add their own website texts. After reinstallation, you can import an XML file (a new one or one previously exported using the Eshop_WebText_Export.PAS script), which puts the texts where they belong.

Address in the tree:

Script parameters:

FilePath - Path to the XML file

UpdateRecords - If the parameter is set to True, the records found are updated. Otherwise, new ones are created (care must be taken to avoid duplicate records).

WithoutTranslations - If the parameter is set to True, translations are not imported.

Book Contents

Book Index

Reply to a question from the e-shop

Process number: ESH003

Script ID number: FESH029

File: ES_ReportFromEshop.PAS

Script description: The script is intended for easily replying to questions received from the website/e-shop. To run the script, you need to have an email template created, on the basis of which the email will then be sent to the customer. Next, in the Activities book, find the activity you want to reply to and fill in the required parameters. A form then opens in which you can formulate the reply to the question. The action is completed by pressing the Send button.

Address in the tree:

Script parameters:

ActivityTypeAbbr- activity type

Subject - Email subject

EmailTemplateRidParameter - RID number of the template for the email to be sent in connection with the question

LanguageNumber - Number of the language in which the reply is to be sent.

LogoPictureHeaderAM - Email header picture

LogoPictureFooterAM - Email footer picture

Book Contents

Book Index

Initialization of a new e-shop

Process number: ESH001

Script ID number: FESH030

File: InitNewEshop.PAS

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

Address in the tree:

Book Contents

Book Index

Export of sitemap files

Process number: ESH001

Script ID number: FESH037

File: Eshop_ExportSitemap.PAS

Script description:
The script generates one sitemap.xml file that contains both products and categories. Depending on the parameter value set, it can generate products and categories into separate XML files with one overarching sitemap index. In this mode it also observes the maximum limit of 50,000 URLs in one file; if the limit were exceeded, it creates another XML file, etc.
If CreateSitemapIndex = true, the CreateImageSiteMap parameter can also be switched on. In this case, an additional file with links to product pictures will be generated.

Address in the tree:

Script parameters:

CreateBlogSiteMap - Generates files with links to blog articles if the parameter is set to True.

CreateImageSiteMap - Generates files with links to product pictures if the parameter is set to True. The ImageServerRootUrl parameter with the URL of the picture server must be added.

CreateSitemapIndex - Generates one sitemap.xml file that contains both products and categories when the CreateSitemapIndex parameter is set to False. If the parameter is set to True, it generates products and categories into separate XML files.

ExportAllLanguages - Generates sitemaps for all languages. If the CreateSitemapIndex parameter is also set to True, it generates files for each language separately.

ExportFolder - Setting of the target directory for the export of XML files.

ImageServerRootUrl - Assignment of the URL of the picture server.

ShopRID - RID of the shop.

UploadFolderFTP - Entry of the target directory for uploading XML files to FTP.

UploadToFTP - Allows uploading the generated files to FTP. The script takes the FTP settings from the Configuration of document and picture storage.

Book Contents

Book Index

Linking a group of articles by relation type

Process number: ESH001

Script ID number: FESH040

File: RelateArticle.PAS

Script description:
The script is run over defined or marked article cards and links all of them to each other according to the selected relation type (related, alternative, variant).

Address in the tree:

Script parameters:

RelateAll - Depending on the selected value, it also adds the article itself to the related articles.

RelateGoodsTypeToDelete - Abbreviation of the relation type. All articles with this type will be removed.

Book Contents

Book Index

Payment of a sales order from the payment gateway

Process number: ESH005

Script ID number: FESH039

File: CheckEshopPaymentsStatus.PAS

Script description: A script for checking the payment of a sales order from the payment gateway.

The script displays the status of the sales order from the payment gateway, and if the sales order is paid on the payment gateway but not in K2, the function for payment in K2 is run. The method for determining the payment status is implemented for WebPay, ComGate and Heidelpay. It is not implemented for GoPay and PayPal.

Address in the tree:

Book Contents

Book Index

Documents administration (DMS)

Book Contents

Book Index

Export floating stamps to PDF

Process number: DMS004

Script ID number: FDMS001

File: CreateStampAnnotation.PAS

Script description: The script exports floating stamps to PDF. It can be used on Invoice out/in and Other liabilities/receivables documents.

Address in the tree:

Script parameters:

AM_Name -

Name of the report to which the floating stamps are exported. If not specified, the VF_DOK01.AM report is used for an invoice out and the OTHER_RECEIVABLE01.AM report for Other receivables. For Invoices In and Other liabilities, floating stamps can only be exported to an existing PDF.

Create_New_PDF - True

True - If a PDF does not exist yet, it is created. False - If a PDF does not exist yet, no new one is created.

The parameter is valid only for Invoices Out and Other receivables.

DMS_Type -

Only documents of this type will be used for the export of floating stamps. The specified document type will also be used as the document type for newly created PDFs. It must be a "Document server" type.

Open_After_Export - False

True - After the export is finished, the stamped report is opened. False - The stamped report is only saved.

PDF_Export_Path -

Selection of the directory for saving the exported stamped report. If not specified, the report is saved to the user directory.

Stamp_Accounting - False

True - a floating stamp with posting data is exported to the document. False - the floating stamp is not exported.

Stamp_Contract - False

True - a floating stamp with contract data is exported to the document. False - the floating stamp is not exported.

Stamp_InternalNumber - False

True - a floating stamp with the internal document number is exported to the document. False - the floating stamp is not exported.

Stamp_Payment - False

True - a floating stamp with document payment data is exported to the document. False - the floating stamp is not exported.

Stamp_VAT - False

True - a floating stamp with tax data is exported to the document. False - the floating stamp is not exported.

Use_Existing_PDF - True

True - If a PDF already exists, it is used. False - A new PDF is always created.

Book Contents

Book Index

Process documents for OCR

Process number: DMS004

Script ID number: FDMS002

File: DocumentOCRProcessing.PAS

Script description: The script exports the PDF documents intended for processing to the OCR folder (input) and then picks up the processed files with the OCR layer from the import folder (output). The original PDFs are replaced or supplemented with a new version with OCR.

The script can also be run as a scheduled task (Other › Process documents for OCR).

Address in the tree:

Script parameters: