Table des matières
The Purchase Sequence
Moodle Shop
The purchase sequence designates a succession of steps (and screens) presented to the buyer to have them carry out a purchase act. The purchase sequence can be partly reshaped (order of the screens), although some rules must be respected.
The purchase sequence is divided into two main parts:
- The part BEFORE placing an order.
- The part AFTER placing the order.
See the general settings of the local-shop plugin
Order placement is the operation that formally and durably records all the order data in the database. Before placement, order data is volatile and managed in the current PHP session (cart session). It is therefore possible at any time to go back and forth between screens to reconfigure the collected data. Once the order is placed, it is frozen and only the payment (or abandonment) phase is possible.
The steps of the purchase sequence
Pre-payment
- SHOP: Product selection
- PURCHASEREQUS: Customer parameters collection (if products in the order require parameters)
- USERS: Seat information collection (if products in the order are in seat mode)
- CUSTOMER: Customer information collection
- ORDER: order confirmation / placement
Post-payment
Clearing the cart session
The cart session can be cleared:
- Explicitly by the user, using the “Reset” button of the Cart Total block.
- Implicitly, after complete execution of an order.
An order whose payment fails is not immediately cleared, so that the buyer can retry it with another payment method.
Pre-feeding a cart session
In non-logged-in mode it is possible to redirect to a shop while pre-feeding the cart with sales units.
Back to the structure summary - Back to setting up and running a commercial offer - Back to the Local Shop component summary - Back to the catalogue
