Name | Description |
---|---|
attribute |
Function is used for an access to "dynamic" object properties |
cycle |
Function cycle passes 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 |
deprecated Use entities_by_ids instead |
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 , LegalEntity Example
|
entity_by_id |
Returns content from the base by id For selecting there are available object types: User , Site , Product , ProductGroup , Customer When selecting the content Product it is possible to specify the identification field. Allowed values: id , externalId , article Example
|
entities_by_ids |
Returns array of contents from the base by ids For selecting there are available object types: Product , ProductGroup When selecting the content Product it is possible to specify the identification field. Allowed values: id , externalId , article Example
|
is_working_time |
Function checks whether the dateTime value is working time and returns result (true or false ). As a dateTime the function can take DteTime object or string, whose format corresponds to php format of strtotime function. 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 User type) 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 User type) passed as an argument to the function (true or false ).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 LoyaltyAccountInfo typeExample:
|