
Sales Handlers
This page provides low level details of individual handling functions that operate on sales. It is primarily intended for developers
Handler: sale_request
Handler: sale_request » sendorderdispatched
Invoked when an order is marked as ready for dispatch, ie it has been packed, and is ready for courier pickup or delivery. This handler requires a specific call from web pages, it does not automatically occur
Sale Created | » | Items Picked | » | Items Packed | » | Order "complete" | » | sendorderdispatched called |
Pre Logic
- If the sale has the property PROPERTY_SALE_HAVE_SENT_ORDER_DISPATCHED, no action is undertaken.
Default Handler Logic
- Get Target Email
- Get Template for email body, and for sale receipt if that is to be attached
- Generate email body and PDF for receipt
- Queue email to customer
Post Logic
- The property PROPERTY_SALE_HAVE_SENT_ORDER_DISPATCHED is added to the sale to indicate this email was sent