"Beginning PHP and MySQL E-Commerce: From Novice to Professional, Second Edition"
com'); define('ORDER_PROCESSOR_EMAIL', 'OrderProcessor@example.com'); define('SUPPLIER_EMAIL', 'Supplier@example.com'); ?– Note The values of ADMIN_EMAIL and SUPPLIER_EMAIL will actually be used to send e-mails to. In other words, these must be real e-mail addresses that you can verify. You can leave CUSTOMER_SERVICE_EMAIL and ORDER_PROCESSOR_EMAIL as they are because they??™re used in the FROM field of the e-mails, and they don??™t need to be valid e-mail addresses. 9. Add the highlighted lines to admin.php: // Load Business Tier ... require_once BUSINESS_DIR . 'customer.php'; CHAPTER 18 ?– IMPLEMENTING THE ORDER PIPELINE: PART 1 579 require_once BUSINESS_DIR . 'i_pipeline_section.php'; require_once BUSINESS_DIR . 'ps_dummy.php'; require_once BUSINESS_DIR . 'order_processor.php'; 10. Modify presentation/templates/admin_order_details.tpl by adding the highlighted line: {if ! $obj->mEditEnabled} disabled="disabled" {/if} />
Order contains these products:
11. Modify presentation/admin_order_details.php as highlighted here: // 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); 12.