Name | Description |
---|---|
abs |
Getting the absolute value of number |
avatar_url |
Returns URL of user's photo (User type) or customer (Customer type) If the photo is not specified or the object has different type, an empty string will be returned. |
batch |
Conversion of list to the two-dimensional list with equal elements quantity |
capitalize |
Getting string, first letter of which is converted to uppercase |
date |
Conversion of date to string in the specified format Examples
|
date_modify |
Date changing (for example, increasing on one day) |
default |
Returns transmitted value in case, if the variable is not defined or empty |
escape |
Displaying of symbols in the specified format |
first |
Getting the first element in array |
format |
Replaces the symbols %s in string with transmitted values |
join |
Generates the string from the array by combining array elements and adding a separator between them |
json_encode |
Creates JSON from the variable |
is_subscribed |
Returns the customers's subscription flag (type Customer ) to the specified channel (email , sms or waba ).Example
You can also check subscription to a specific category in the channel by passing the subscription category code as the second argument.
Example
|
keys |
Returns array keys |
last |
Getting the last element in array |
length |
Getting the length of array or string |
lower |
Conversion of all string symbols to lowercase |
merge |
Merging of array and another array |
nl2br |
Replaces the line breaks with html-tag <br> |
number_format |
Formatting of number |
raw |
Getting the value as is (without displaying) |
replace |
Replaces some substings with other |
reverse |
Inverts the values ordering in array or symbols in the string |
round |
Rounds a number to a given precision |
slice |
The array slice in specified frame |
sort |
The array sorting |
split |
Splits the string by substrings using transmitted separator |
striptags |
Removing of html-tags |
title |
Getting the string, each word of which begins with the capital letter |
trim |
Removing of space symbols (or another) from the beginning and the end of string |
upper |
Changes all string symbols to uppercase |
url_encode |
Encodes a given string as URL segment |
ru_currency |
Converts number to currency format Examples
|
custom_field |
Displays value of the specified order custom field or customer custom field Examples
|
international_phone |
Converts strings to telephone format with symbol + and international code in the beginning with removing of unnecessary symbols Example
|
price |
Converts number to currency format, substituting the currency symbol. Filter parameters: classes - the class, which will be added to the block with currency symbol code - the currency code; if not specified, an attempt is made to determine the currency of the field to which the filter is applied, otherwise the default currency is used stripZero - if false, there will be displayed zeros in kopeks |
price_range |
Converts the range of numbers to currency format, substituting the currency symbol |
numeric_declension |
Displays the word in the desired declension in accordance with the number (actual only for russian version) Examples
|
number_to_words |
Displays the number by words Example
|
buying_with |
Returns the recommended trading offers (Offer ) of series "Also purchased".
Allows to get up to 30 trading offers (6 by default).Examples
It is possible to transmit the name of recomendation service as the second parameterIf the parameter is not specified, default service can be used, which displays recommendations based on data of the system. Example
|
analogs |
Returns trading offers (Offer ) of series "Analogues".
Allows to get up to 30 trading offers (6 by default).Examples
It is possible to transmit the name of recomendation service as the second parameterIf the parameter is not specified, default service can be used, which displays recommendations based on data of the system. Example
|
accompanying |
deprecated Use buying_with(3, 'retailrocket') instead
|
recommendations |
Returns recommended SKUs (Offer ) from the series specified by the first parameter.
Allows to get up to 30 SKUs (6 by default).Examples
The number of SKUs can be passed by the second parameter.Examples
|
quantity |
Formats quantity according to system settings (integer/fractional) |
offer_properties |
Returns array of trading offer properties
|
contains |
If the items array is transmitted by parameter, then function checks that the order contains at least one of them. If the sections array is transmitted by parameter, then function checks that the order contains items of the specified sections. Example
|
looked |
If item(s) is transmitted as the parameter, the function checks that the customer has viewed any of the specified items. If item section(s) is transmitted as the parameter, the function checks that the customer has viewed any items in the specified sections. Example
|
looked_products_count |
Function returns the quantity of items viewed by customer Example
|
country |
Returns country name by ISO code (ISO 3166-1 alpha-2) Examples
|
local_time |
Returns local time by phone number, customer address or delivery address Example
|
file_url |
Returns URL of attachment (type Attachment ) or file (type File )Example
|
qr_code_url |
Returns the URL of the QR code of the specified size (in pixels) for a string Example
If the argument is empty or isn't a string, then an empty string will be returned.
|
barcode_code128_url |
Returns the URL of a barcode with the Code 128 type of the specified size (height in pixels) for a stringExample
If the argument is empty or isn't a string, then an empty string will be returned.
|
barcode_code39_url |
Returns the URL of a barcode with the Code 39 type of the specified size (height in pixels) for a stringExample
If the argument is empty or isn't a string, then an empty string will be returned.
|