Skip to main content
With direct ordering, the buyer can add one or more products directly to the basket by entering product numbers. The prerequisite is that the customer has the product numbers, e.g., from a catalog. Note: still being tested. The function does not require additional scripts.

Persisting direct order entries during a session

Already included. No additional scripts are required. The products checked during a direct order that have not yet been added to the basket are stored in a session-related cookie. If the direct order form is called up again later, the product data stored in the cookie is automatically transferred into the corresponding input fields. This avoids having to re-enter the product number and quantity if the shop visitor has not yet added their selection to the basket but has visited other pages of the shop.

Actions

The following actions are available:

DirectOrderAdd

This action creates a new basket item from the order form.

DirectOrderDelete

This action removes a basket item from the order form.

Integration of the direct order

Create template

Create a new file directOrder.htm in the views directory. In this file, several rows are generated for the respective order items.

Error messages

The error messages can be placed either before or inside the form element. In this example, error messages for the entry of the quantity of an item are displayed.
In this example, error messages for adding an item are displayed.
You can integrate the link to the direct order in any template. It is: