Prev | Current Page 722 | Next

Emilian Balanescu and Cristian Darie

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

00;
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 618
$this->mTotalCost += $this->mOrderInfo['shipping_cost'];
$this->mTotalCost += $this->mTax;
// Format the values
$this->mTotalCost = number_format($this->mTotalCost, 2, '.', '');
$this->mTax = number_format($this->mTax, 2, '.', '');
if ($this->mOrderInfo['status'] == 3)
$this->mProcessButtonText = 'Confirm Stock for Order';
elseif ($this->mOrderInfo['status'] == 6)
$this->mProcessButtonText = 'Confirm Shipment for Order';
// Value which specifies whether to enable or disable edit mode
if (isset ($_GET['submitEdit']))
$this->mEditEnabled = true;
else
$this->mEditEnabled = false;
}
7. Load TShirtShop; place a new order; and then load the order details administration page to test the new
changes. When placing a new order, expect to receive a confirmation message similar to the one shown in
Figure 19-8. The site administrator will be able to confirm stock and shipment, as shown in Figure 19-7. The
order details administration page now displays the audit trail, as shown in Figure 19-9.
Figure 19-8. Confirmation that the order has been placed
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 619
Figure 19-9. The order??™s audit trail
How It Works: Order Details Administration
The init() method found in AdminOrderDetails advances the pipeline to the next section if the Process
button is clicked; the presence of this button on the page depends on the value of the $mProcessButtonText
member.


Pages:
710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734
Bank kredyt hipoteczny Puby sterowniki drukarek płyta drogowa programy