Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Basket, checkout and orders

The shop's visitor path in detail - add to basket forms, the basket, customer registration, confirmation, the checkout workflow triggers, order statuses, receipts, order mails and the order administration.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/creators/website-creators/basket-checkout-and-orders.md

On this page

Basket, checkout and orders

This page is for website creators who build the buying path of a shop, from the add-to-basket button to the order the shop staff process.

Contents

  1. Add to basket
  2. The basket
  3. Checkout
  4. Workflow triggers
  5. Orders
  6. Test order checklist

Add to basket

The product's full template posts to content/action with the button ActionAddToBasket (the form of the ezwebin and simple themes' product templates):

<form method="post" action={'content/action'|ezurl}>
  <input type="hidden" name="ContentNodeID" value="{$node.node_id}">
  <input type="hidden" name="ContentObjectID" value="{$node.object.id}">
  <input type="hidden" name="ViewMode" value="full">
  <button type="submit" name="ActionAddToBasket">{'Add to basket'|i18n( 'design/mysite' )}</button>
</form>

Options are posted along with it when the product has option fields.

The basket

shop/basket (renamable with [BasketSettings] BasketViewName, see Shop basket view name) lists the items; shop/updatebasket changes quantities. The pagelayout can show a basket count from fetch( shop, basket ), as the simple theme does. Old baskets are removed by the basket_cleanup cron part.

Checkout

StepViewTemplate
Customer datashop/register (or shop/userregister)shop/register.tpl, shop/userregister.tpl
Confirmation with shipping and VATshop/confirmordershop/confirmorder.tpl
Checkout and paymentshop/checkoutthe gateway's pages
The ordershop/orderview or shop/orderreceipt/<token>shop/orderview.tpl

How customer data is handled is decided by the shop account handler (shopaccount.ini).

Workflow triggers

settings/workflow.ini offers shop operations as triggers: shop_addtobasket, shop_updatebasket, before_shop_confirmorder and shop_checkout. A payment gateway event goes on shop_checkout (before); shipping cost on before_shop_confirmorder (Workflows).

Orders

  • Store opens the dashboard; the order list (shop/orderlist) and order view (shop/orderview) are one click away.
  • Each order has a status; the release with the dashboard added a status for every stage (Store dashboard and order statuses).
  • Orders can be archived (shop/archiveorder) and removed.
  • Permanent receipts: with [OrderViewSettings] OrderLinkView=orderreceipt in shop.ini, the confirmation page and mail link to shop/orderreceipt/<token> instead of shop/orderview (Permanent order receipts).
  • Customers: shop/customerlist; statistics: shop/statistics.

Test order checklist

  • To do: Add to basket from a product page, change the quantity, remove an item.
  • To do: Check out as a visitor and as a logged-in customer.
  • To do: VAT and shipping on the confirmation page are right for two countries.
  • To do: Payment in the gateway's test mode succeeds and fails as expected.
  • To do: The order appears in Store with the right status; the mail arrives.
  • To do: The receipt link works for the customer and not for others.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x