Jump to content

Webshop-07-Checkout-and-Orders

From MediawikiCIT
Revision as of 13:00, 6 March 2026 by Justinaquino (talk | contribs) ("Add all 14 Frappe ERPNext Webshop chapter pages from wikitext-upload")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

07 - Checkout & Orders

Parent: [Webshop-Index Webshop Index] Previous: [Webshop-06-Pricing-and-Discounts 06 - Pricing & Discounts] Next: [Webshop-08-Templates-and-Frontend 08 - Templates & Frontend] Source: Comfac Webshop Wiki - Chapter 07


Place Order Flow

When user clicks "Place Order":

1. cart.place_order() called
2. Validations:
   - Cart not empty
   - Items in stock (if stock check enabled)
   - Valid shipping/billing addresses
3. Quotation.submit() - converts to Sales Order
4. If payment required:
   - Create Payment Request
   - Redirect to payment gateway
5. Order confirmation page

Order Pages

Files: templates/pages/order.html, order.js, order.py - Shows order details, status, tracking - Payment status - Linked documents (Sales Order, Payment Entry)

Wishlist

Files: templates/pages/wishlist.html, wishlist.py - User's saved items - Add to cart from wishlist - Remove items
Navigation: [Webshop-Index Webshop Index] | [Webshop-06-Pricing-and-Discounts Previous: 06 - Pricing & Discounts] | [Webshop-08-Templates-and-Frontend Next: 08 - Templates & Frontend]