Prev | Current Page 655 | Next

Emilian Balanescu and Cristian Darie

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

Also in the init() method of the AdminOrderDetails class, add a line that reads the data of the customer
who made the order:
$this->mOrderInfo = Orders::GetOrderInfo($this->mOrderId);
$this->mOrderDetails = Orders::GetOrderDetails($this->mOrderId);
$this->mCustomerInfo = Customer::Get($this->mOrderInfo['customer_id']);
// Value which specifies whether to enable or disable edit mode
if (isset ($_GET['submitEdit']))
7. Modify presentation/templates/admin_order_details.tpl as highlighted:

Status:





Authorization Code:

value="{$obj->mOrderInfo.auth_code}"
{if ! $obj->mEditEnabled} disabled="disabled" {/if} />



Reference Number:

value="{$obj->mOrderInfo.reference}"
{if ! $obj->mEditEnabled} disabled="disabled" {/if} />


CHAPTER 17 ?–  STORING CUSTOMER ORDERS 557

Comments:

value="{$obj->mOrderInfo.comments}"
{if ! $obj->mEditEnabled} disabled="disabled" {/if} />



Customer Name:
{$obj->mCustomerInfo.


Pages:
643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667
wyciągarki wróżby miłosne cukiernia-stykowscy.pl salon kosmetyczny kraków pompy ciepła