Prev | Current Page 721 | Next

Emilian Balanescu and Cristian Darie

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

audit_id}
{$obj->mAuditTrail[j].created_on}
{$obj->mAuditTrail[j].code}
{$obj->mAuditTrail[j].message}
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 617

{/section}


4. Open the presentation/admin_order_details.php file, and remove the definition of the
$mOrderProcessMessage member of the AdminOrderDetails class shown here:
public $mOrderProcessMessage;
5. Also, in admin_order_details.php, add two new members in the AdminOrderDetails class:
public $mProcessButtonText;
public $mAuditTrail;
6. In the same file, update the init() method of the AdminOrderDetails class as highlighted:
// Initializes class members
public function init()
{
if (isset ($_GET['submitUpdate']))
{
Orders::UpdateOrder($this->mOrderId, $_GET['status'],
$_GET['comments'], $_GET['authCode'], $_GET['reference']);
}
if (isset ($_GET['submitProcessOrder']))
{
$processor = new OrderProcessor($this->mOrderId);
$processor->Process();
}
$this->mOrderInfo = Orders::GetOrderInfo($this->mOrderId);
$this->mOrderDetails = Orders::GetOrderDetails($this->mOrderId);
$this->mCustomerInfo = Customer::Get($this->mOrderInfo['customer_id']);
$this->mTotalCost = $this->mOrderInfo['total_amount'];
$this->mAuditTrail = Orders::GetAuditTrail($this->mOrderId);
if ($this->mOrderInfo['tax_percentage'] !== 0.0)
$this->mTax = round((float)$this->mTotalCost *
(float)$this->mOrderInfo['tax_percentage'], 2)
/ 100.


Pages:
709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733
Biuro księgowe Lublin nawierzchnie sportowe fotele i krzesła biurowe Prywatny Ośrodek Terapii uzależnień poker