Prev | Current Page 712 | Next

Emilian Balanescu and Cristian Darie

"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"


$processor->mOrderInfo['status'];
}
catch (Exception $e)
{
$this->mOrderProcessMessage = 'Processing error, status now: ' .
$processor->mOrderInfo['status'];
}
}
8. Open the presentation/templates/admin_order_details.tpl file, and add the highlighted code:
{* admin_order_details.tpl *}
{load_presentation_object filename="admin_order_details" assign="obj"}


Editing details for order ID:
{$obj->mOrderInfo.order_id} [
back to admin orders... ]


{if $obj->mOrderProcessMessage}

{$obj->mOrderProcessMessage}


{/if}

9. Load TShirtShop; create a new order; and then open that order in the orders administration page. In the
orders administration page, click the Process Order button.
10. You should get a customer notification e-mail (see Figure 19-1).
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 605
Figure 19-1. A customer order confirmation e-mail
11. Check your supplier e-mail for the stock check e-mail (see Figure 19-2).
Figure 19-2. A stock check e-mail
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 606
12. Continue processing in the administration order details page by clicking the Process Order button again,
calling the Process() method of the OrderProcessor class for the second time.


Pages:
700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
Eric Marienthal teksty pl mapa Christina Milian baseny ogrodowe Marquess