| Function | Description | 
|---|---|
| attribute | Function is used for an access to "dynamic" object properties | 
| cycle | Function cyclepasses in cycle the array of values | 
| random | Function allows to get the random value | 
| range | Returns the arithmetic progression of integers in the specified range | 
| price_symbol | Displays the symbol of the base currency | 
| preview_image_tag | Generates tag <img/>for item image of the specified sizeExamples  | 
| min | Finds the minimum value in the set or array of numbers | 
| max | Finds the maximum value in the set or array of numbers | 
| crm_settings_get | Allows to get value of defined system setting | 
| products_by_ids | DEPRECATEDUseentities_by_idsinstead | 
| new_products | Returns array of items with mark "New". Accepts the parameters: groups- groups, of which the items are selectedcount- maximum quantity of selected items (20 by default)properties- filter by item propertiesExample  | 
| best_selling_products | Returns array of the best selling items Accepts the parameters: groups- groups, of which the items are selectedcount- maximum quantity of selected items (20 by default)exclude- items excluded of selectionfrom- filter by dateto- filter by datemargin- minimum threshold of margin in absolute or relative values, items with lower margin will not be included in selectionproperties- filter by item propertiescustomer- filter by customerExample  | 
| most_visited_products | Returns array of the most viewed items Accepts the parameters: groups- groups, of which the items are selectedcount- maximum quantity of selected items (20 by default)exclude- items excluded of selectionfrom- filter by dateto- filter by datemargin- minimum threshold of margin in absolute or relative values, items with lower margin will not be included in selectionproperties- filter by item propertiescustomer- filter by customerExample  | 
| most_long_viewed_products | Returns array of the most long-viewed items Accepts the parameters: groups- groups, of which the items are selectedcount- maximum quantity of selected items (20 by default)exclude- items excluded of selectionfrom- filter by dateto- filter by datemargin- minimum threshold of margin in absolute or relative values, items with lower margin will not be included in selectionproperties- filter by item propertiescustomer- filter by customerExample  | 
| product_groups | Returns the item groups array of the specified store up to a specified level of nesting (1 level by default). If the level value more than 3 is transmitted, then returns 3 levels. Array elements are sorted hierarchically | 
| entity_by_code | Returns value of reference book by symbolic code For selecting there are available object types: DeliveryType,DeliveryService,OrderMethod,OrderProductStatus,OrderType,PaymentStatus,PaymentType,Site,Status,StatusGroup,Store,LegalEntityExample  | 
| entity_by_id | Returns content from the base by id For selecting there are available object types: User,Site,Product,ProductGroup,CustomerWhen selecting the content Productit is possible to specify the identification field. Allowed values:id,externalId,articleExample  | 
| entities_by_ids | Returns array of contents from the base by ids For selecting there are available object types: Product,ProductGroupWhen selecting the content Productit is possible to specify the identification field. Allowed values:id,externalId,articleExample  | 
| is_working_time | Function checks whether the dateTimevalue is working time and returns result (trueorfalse). As adateTimethe function can takeDteTimeobject or string, whose format corresponds to php format ofstrtotimefunction. By default the current date and time is used.Example  | 
| hash | Executes a one-way hashing of data with usage of specified hash-function ( md5,sha1,sha256). The value returns as hex-tring lower case.Example  | 
| yandex_maps_api | Generates a link to load API of Yandex.Maps Accepts parameters: version- Versionparameters- Array of additional parametersExample  | 
| payment_link | Returns a link to pay an invoice of integration payment To use the function, an integration payment type must be added in order Accepts the parameters: order- order with integration payment which use for creating payment invoice linkor payment- integration payment which use for creating payment invoice linkExamples  | 
| user | Returns the current user | 
| user_status | Returns the status of the user (the object of the Usertype) passed as an argument to the function.Returns the status of the current user when called without arguments. Example  | 
| user_online_status | Returns the online status of the user (the object of the Usertype) passed as an argument to the function (trueorfalse).Returns the online status of the current user when called without arguments. Example  | 
| loyalty_account_info | Returns information about the bonus account of the participation in the Loyalty Program passed as an argument of the function Returns an object of the LoyaltyAccountInfotypeExample:  | 
| offer_inventories | Returns an array of inventories (array of Inventoryobjects) of the offer by storesAccepts parameters: Offer offer- offer objectSite|null site = null- store object, optional (only inventories for the store's warehouses will be returned)Store[]|Store|null store = null- warehouse object or array of warehouse objects, optional (only inventories for the specified warehouses will be returned)Examples  | 
| integration_module_http_call | Executes an HTTP request to the backend of the JS module and returns an object of type HttpCallResponseAccepts parameters: moduleCode- module instance codepath- path to which the request will be sent to the module's backendpayload- value of the optional POST-parameterpayloadin the form of a string or a json objectWhen calling the function, the system sends a POST request with Content-Type: application/x-www-form-urlencodedto the{baseUrl}/{path}backend of the module.For example, if the module has set baseUrlequal tohttps://some-module.techand specifiedpathequal to/get-promocode, the request will be sent tohttps://some-module.tech/get-promocode .The request may contain 2 form-encodedparameters:clientId=<clientIdForAccount>- required parameter with the valueclientIdthat the module has set in this system accountpayload=<payload>- optional parameter ifpayloadwas passedExamples  |