The result of registration is to add a new customer to your database, including username and
password hash information.
To implement this scheme in your application, you??™ll complete the following tasks:
??? Create two new database tables, the first called customer to hold customer details and
the second called shipping_region to store possible shipping regions in which a customer
can reside.
??? Implement the associated methods in data and business tiers that add, modify, and
retrieve information from customer and shipping_region.
??? Modify the cart_details componentized template, which will now redirect the user to
a checkout page that will be implemented in a new componentized template called
checkout_info.
CHAPTER 16 ?– MANAGING CUSTOMER DETAILS 478
??? Create a componentized template for customer login called customer_login.
??? Create a componentized template for customer registration or for editing basic account
details called customer_details.
??? Create a componentized template named customer_credit_card that allows customers
to enter credit card details.
??? Create a componentized template named customer_address for customers to enter
a shipping address.
Creating customer and shipping_region Tables
Now you can build the customer and shipping_region tables by following the steps in the next
exercise.
Exercise: Creating the Database Tables
1.
Pages:
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599