Update presentation/templates/store_front.tpl by adding the following:
{include file=$obj->mLoginOrLoggedCell}
{include file="search_box.tpl"}
{include file="departments_list.tpl"}
{include file=$obj->mCategoriesCell}
19. Add the following styles to the tshirtshop.css file, from the styles folder:
.customer-table td {
border: none;
padding-left: 0;
vertical-align: top;
}
20. You can now load the web site to check that the functionality shown in Figures 16-4 through 16-7 works.
CHAPTER 16 ?– MANAGING CUSTOMER DETAILS 529
Creating the Checkout Page
You are now ready to create the checkout page. This page looks similar to the shopping cart (the
cart_details componentized template) because it displays the ordered items, but it also displays
information such as the shipping address and the type of the credit card. The checkout
page is accessible through the Checkout link that we??™ll add to the shipping cart. This button will
be disabled if the visitor doesn??™t have the shipping and credit card data on record.
Let??™s take a look now at what you??™ll be doing (see Figure 16-8).
Figure 16-8. The checkout page
If the user tries to check out without entering all their personal data, the Place Order button
won??™t be active, and the user will be notified through an error message such as the one shown in
Figure 16-9.
Pages:
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641