Order Storage
To start receiving orders from users in your application, you need to create and configure an order storage. Order storage includes:
- A form for receiving orders
- A payment system
- A list of received orders and tools to work with them
You can create an unlimited number of order storages. This will help 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. This section contains a form for creating a new order storage and a list of already existing storages.
To create a storage, fill out the form by specifying:
- Name - A non-unique string that is used in the system interface to identify the order storage. Name it in a way that makes it convenient for you to work.
- Type - The type of orders that will be contained in the order storage.
- Marker - A unique string that is used within the code of your application.
After filling out the form, click the "Add" button. If all data is filled out correctly, the new order storage will be added to the general list of storages.
Configuring the Order Storage
You can go to the order storage settings by clicking the edit icon on the selected storage from the list.
Next, open the settings tab.
In the settings, you can change the name and marker of the order storage, as well as modify the form and payment system.
If you opened the settings of the newly created order storage, the form and payment account configuration blocks will be empty. Since these settings are mandatory, they must be filled out for the order processing mechanism to work correctly.
First, create a form with the type "For Orders". Pass the necessary set of data as an attribute to this form. For example, the attribute may contain the username, address, delivery type, order comment, etc.
Before creating a form with the type "For Orders", your project must have a set of attributes with the type "For Products", which includes an attribute for price and currency. This attribute does not need to be added to the form, but your products must contain an attribute indicating the price and currency.
Also, if you do not have a payment account yet, it is necessary to create one.
After the form and payment account are created, add them in the settings to the created order storage. If everything is done correctly, the changes will be saved automatically, and the order storage will be ready for use.
.