Function | Description |
---|---|
date(date)
|
Creates object DateTime on the basis of transmitted string, the format matches php function strtotime Examples
|
time_interval(from, to, custom)
|
Creates TimeInterval object based on transferred string values of timeWhen only parameter from is specified the interval with exact value of time will be createdIt`s possible to specify only one interval limit When parameter custom is transferred other parameters will be ignored and the interval will be with arbitrary string valueExamples
|
length(value)
|
Returns length of transmitted string Examples
|
unique(entity, field)
|
Checks the uniqueness of the object by definite field Example
|
custom_field(entity, code)
|
deprecated Returns the typified value of customer field |
entity_by_code(entityName, 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 Example
|
entity_by_id(entityName, id, idField)
|
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(entityName, array ids, idField)
|
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
|
order_contains(order, array items)
|
Takes order and items/item groups list and returns true if any item or item of any group is in order |
customer_looked(customer, items)
|
Takes customer and items/item groups/order products list and returns true if customer has seen any item or item of any group |
customer_looked_products_count(customer)
|
Function returns total quantity of items seen by the customer |
replace(subject, placeholders)
|
Replaces all occurrences in the original subject string according to the placeholders array.Examples
|