Order storage
To start receiving orders from users in your application, create and configure an order storage. An order storage includes:
- A form for receiving orders
- A payment system
- A list of received orders and tools for working with them
You can create an unlimited number of order storages. This helps you group orders, for example, by type, delivery method, or payment method.
Creating an order storage
To create a new order storage, go to the "Orders" section in the left menu and open the Order Storages tab. This section has a form for creating a new order storage and a list of existing storages.
To create a storage, fill out the form:
- Name: a non-unique string that identifies the order storage in the system interface. Choose a name that is convenient for you to work with.
- Type: the type of orders the storage will contain.
- Marker: a unique string used in your application's code.
Then click "Add". If all data is correct, the new order storage appears in the list of storages.
Configuring an order storage
To open the settings of an order storage, click the edit icon next to it in the list.
Then open the Settings tab.
In the settings, you can change:
- Name and Marker: the name and marker of the order storage.
- Form selection: the order form.
- Selection of payment accounts: the storage's payment accounts. You can select more than one.
- Price retention time: how long the price is retained. Enter an integer with a unit:
ms(milliseconds),s(seconds),m(minutes), orh(hours), for example30m. This field is required: the storage settings won't be saved without a valid value.
In a newly created order storage, the form and payment account settings are empty. These settings are required, so fill them in for checkout to work correctly.
First, create a form of the "Orders" type and add an attribute with the data you need to it. For example, the attribute can contain the user's name, address, delivery type, order comment, and so on.
Before you create a form of the "Orders" type, your project must have an attribute set of the "Products" type that includes an attribute with the price and currency. You don't need to add this attribute to the form, but your products must have an attribute that specifies the price and currency.
If you don't have a payment account yet, create one (opens in a new tab).
Once the form and payment account exist, add them to the order storage in its settings. If everything is done correctly, the changes are saved automatically and the order storage is ready to use.