Orders
The macro is designed to work with orders of users.
- Get orders by id's of users
macro_getOrdersForUsers(params)"params" is an object that can contain the following keys:
- ids (required) - id's of users (array of numbers)
- groups - text id's of groups, information about which, must be selected (array of strings)
- props - text id's of fileds, information about which, must be selected if value doesn't empty (array of strings)
- Set order
macro_setOrder(params)"params" is an object where keys are the names of the order template fields.
Example:
params = { name_customer: 'Michael', phone_customer: '1234567' }If the user is not authorized, the order will be recorded in the browser's cookies.
- Get last order in the online store
macro_getLastOrder()
