Prev | Current Page 534 | Next

Emilian Balanescu and Cristian Darie

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

More precisely,
we??™ll add a Place Order button to the shopping cart page that creates a PayPal order containing
the products in the shopping cart (remember, at this stage, we still don??™t handle
financial transactions ourselves).
??? Next, we??™ll implement a simple order administration page, so the site administrator can
view and handle pending orders.
The code for each part of the site will be presented in the usual way, starting with the
database tier, continuing with the business tier, and finishing with the presentation tier (user
interface).
Implementing an Order-Placement System
The entire order-placement system is related to the Place Order button mentioned earlier.
Figure 14-1 shows how this button will look after you update the cart_details componentized
template in this chapter.
431
C H A P T E R 1 4
Figure 14-1. The shopping cart with a Place Order button
Yes, this button looks quite boring for something that we can honestly say is the center
of this chapter??™s universe. However, a lot of logic is hidden behind it, so let??™s talk about what
should happen when the customer clicks that button. Remember that, at this stage, we don??™t
care who places the order, but we do want to store the order details in our database. This will
allow us to implement the cross-selling (???customers who bought this also bought???) feature in
Chapter 15.


Pages:
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
ciekawe zdania spa nad morzem nia sitemap 7 biustonosze Everest Poker