Prev | Current Page 707 | Next

Emilian Balanescu and Cristian Darie

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

= "\n\n";
$body.= $this->_mProcessor->GetOrderAsString(false);
$body.= "\n\n";
$body.= 'Please ship to:';
$body.= "\n\n";
$body.= $this->_mProcessor->GetCustomerAddressAsString();
$body.= "\n\n";
$body.= 'When goods have been shipped, please confirm via ' .
Link::ToAdmin();
$body.= "\n\n";
$body.= 'Order reference number: ';
$body.= $this->_mProcessor->mOrderInfo['order_id'];
return $body;
}
}
?>
When this pipeline stage finishes, processing pauses. Later, when the supplier confirms
that the order has been shipped, processing moves on to PsShipOk.
PsShipOk
This pipeline section is very similar to PsStockOk, although it has slightly more to do. Because
we know that items have shipped, we can add a shipment date value to the orders table. Technically,
this isn??™t really necessary, because all audit entries are dated. However, by adding the
entry directly to the orders table, we will have all the information easily accessible in one table.
Add the following code to a new file in the business folder named ps_ship_ok.php:
class PsShipOk implements IPipelineSection
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 600
{
public function Process($processor)
{
// Audit
$processor->CreateAudit('PsShipOk started.', 20600);
// Set order shipment date
$processor->SetDateShipped();
// Audit
$processor->CreateAudit('Order dispatched by supplier.


Pages:
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
drukarki fiskalne kraków willa karmazyn międzyzdroje www.books61.hobbitstory.com terapia magnetyczna Informacje o hostingu