Prev | Current Page 656 | Next

Emilian Balanescu and Cristian Darie

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

name}


Shipping Address:

{$obj->mCustomerInfo.address_1}

{if $obj->mCustomerInfo.address_2}
{$obj->mCustomerInfo.address_2}

{/if}
{$obj->mCustomerInfo.city}

{$obj->mCustomerInfo.region}

{$obj->mCustomerInfo.postal_code}

{$obj->mCustomerInfo.country}




Customer Email:
{$obj->mCustomerInfo.email}


8. Update admin.php by adding a reference to the symmetric crypt, secure card, and customer business tier
classes:
require_once BUSINESS_DIR . 'shopping_cart.php';
require_once BUSINESS_DIR . 'orders.php';
require_once BUSINESS_DIR . 'symmetric_crypt.php';
require_once BUSINESS_DIR . 'secure_card.php';
require_once BUSINESS_DIR . 'customer.php';
9. Load the web site to make sure our newly added code works as shown in Figures 17-1, 17-2, and 17-3.
How It Works: Presentation Tier Changes
This was a long exercise, and yet, to get the most out of it, we still need to go through a few more exercises to
implement tax and shipping charges. At that moment, our entire customer handling functionality will be completed,
and we??™ll be left with adding only an order pipeline and credit card processing support. Let??™s now proceed to adding
support for tax and shipping charges.
CHAPTER 17 ?–  STORING CUSTOMER ORDERS 558
Handling Tax and Shipping Charges
One feature that is common to many e-commerce web sites is the need to add charges for tax
and shipping.


Pages:
644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
nocleg lodz pompy ciepła kasta.brene.pl Wczasy nad morzem Prince lion