Prev | Current Page 720 | Next

Emilian Balanescu and Cristian Darie

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


??? In the third section, a table shows the audit trail for the order.
Figure 19-7. The new order details administration page
We implement the new functionality in the following exercise.
CHAPTER 19 ?–  IMPLEMENTING THE ORDER PIPELINE: PART 2 616
Exercise: Modifying the Order Details Admin Section
1. Remove the following lines from presentation/templates/admin_order_details.tpl:
{if $obj->mOrderProcessMessage}

{$obj->mOrderProcessMessage}


{/if}
2. Also, in presentation/templates/admin_order_details.tpl, replace the Process Order button
code with the highlighted code:
{if ! $obj->mEditEnabled} disabled="disabled" {/if} />
{if $obj->mProcessButtonText}
value="{$obj->mProcessButtonText}" />
{/if}


Order contains these products:



3. In the same file, add the following highlighted code:
{section name=i loop=$obj->mOrderDetails}







{/section}
{$obj->mOrderDetails[i].product_id}
{$obj->mOrderDetails[i].product_name}
({$obj->mOrderDetails[i].attributes})
{$obj->mOrderDetails[i].quantity}${$obj->mOrderDetails[i].unit_cost}${$obj->mOrderDetails[i].subtotal}

Order audit trail:









{section name=j loop=$obj->mAuditTrail}

Audit IDCreated OnCodeMessage
{$obj->mAuditTrail[j].


Pages:
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
Pozycjonowanie centrum medyczne biuro rachunkowe łódź Odżywki Zasady pokera