Warning: You are browsing the documentation for PrestaShop 1.7, which is outdated.

You might want to read an updated version of this page for the current version, PrestaShop 8. Read the updated version of this page

Learn how to upgrade to the latest version.

Order creation

Orders can be created from a cart either in Front Office (FO) by the customer or in Back Office ( BO) Sell -> Orders -> "Add new order" by the shop admin. See Add new order page.


In FO by default, a new empty cart is created everytime a customer signs in - this behavior can be adjusted in BO Configure -> Shop parameters -> Customer settings. If customer is not signed in (guest) - the cart is created once first product is being added into it. If guest already has a cart and signs in, the cart is assigned to him instead of creating a new one.

When creating an order in the BO, a new empty cart is created once the customer is selected. An existing cart can also be selected, or existing order can be used to create a new cart.

In FO, browser cookies are used to determine if current guest has a cart. This way guest can still see his previous cart if he is visiting the shop from the same browser in a short period of time (the time depends on cookie settings, which can be adjusted in BO Configure -> Administration -> General "lifetime of front office cookies").

Filling the cart and creating the order

To create the order, the cart has to be filled with the following information:

  1. Personal information - details like name, email, birthday etc. In FO you can either fill this information manually as guest (and optionally create new customer account) or login with existing customer. In BO order creation you will be asked to select an existing customer before you can modify the existing cart or create a new one.

  2. Addresses - provide the shipping and invoice addresses information. Shipping (a.k.a. delivery) address is where the ordered products should be sent while the invoice address is where the invoice is sent. In FO, you can provide one address to be used as both - shipping and invoice. In BO, you must select shipping and invoice addresses (the same address can also be selected for both - shipping and invoices). After this step is complete you will need to select available carriers (carriers are searched by delivery address and can be modified by shop admin in Improve -> Shipping -> Carriers page). Note - carrier will not be available if selected country or zone is disabled (in BO International -> Locations) or carrier shipping and locations settings are not configured.

  3. Payment - choose how to pay for the order. Shop admin can configure payment methods in BO Payment -> Payment methods. All payments are handled by payment modules. Prestashop comes with 2 payment modules by default:

    • ps_checkpayment - allows check payments.
    • ps_wirepayment - allows wire payments (bank transfers).
    Payment restrictions for currency, country, group and carrier can be configured in BO Improve -> Payment -> Preferences.
  4. Once the order is submitted, a unique order reference is generated and certain records from a cart and related entities are added into following database tables:

    • orders
    • order_history
    • order_detail
    • order_carrier
    • order_cart_rule (if any discounts were applied)
    • order_detail_tax (if any taxes are applied)
  5. After order is successfully created, an email with the order information is sent to the customer.

Email sending settings can be found in BO Configure -> Advanced parameters -> E-mail. Email translations and templates in Improve -> International -> Translations.

When order is being created in BO, email with the link to a prefilled cart can be sent before creating the order (so the customer can finish up the checkout process). To do that click More actions -> Send pre-filled order to the customer by email in summary block.

Order status

When creating order from the FO, the initial order status will differ depending on selected payment method. For example, if “Payment by check” is selected, then order will be created with the “Awaiting check payment” status, or if “Bank transfer” is selected, the status will be “Awaiting wire payment”.

Order status changing cycle depends on payment module. Some modules (like the default ones provided above) will require shop admin to control the order status manually, which can be done in BO Sell -> Orders -> Orders. Other more complicated payment modules, which integrates online payments in checkout process, will control the order status automatically (e.g. when payment is done, the order status automatically changes to “Payment accepted”).

Order statuses can be configured in BO Shop parameters -> Order settings -> Statuses.

When creating order from the BO, the initial order status must be selected manually.