Prev | Current Page 631 | Next

Emilian Balanescu and Cristian Darie

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


{else}


Shipping address:

 {$obj->mCustomerData.address_1}

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

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

 {$obj->mCustomerData.region}

 {$obj->mCustomerData.postal_code}

 {$obj->mCustomerData.country}


Shipping region: {$obj->mShippingRegion}


{/if}
{$obj->mOrderButtonVisible} /> |
Edit Shopping Cart |
Continue Shopping

2. Create the presentation/checkout_info.php file, and fill it with the following code:
// Class that supports the checkout page
class CheckoutInfo
{
// Public attributes
public $mCartItems;
public $mTotalAmount;
public $mCreditCardNote;
public $mOrderButtonVisible;
public $mNoShippingAddress = 'no';
public $mNoCreditCard = 'no';
public $mPlainCreditCard;
public $mShippingRegion;
CHAPTER 16 ?–  MANAGING CUSTOMER DETAILS 532
public $mLinkToCheckout;
public $mLinkToCart;
public $mLinkToContinueShopping;
// Class constructor
public function __construct()
{
$this->mLinkToCheckout = Link::ToCheckout();
$this->mLinkToCart = Link::ToCart();
$this->mLinkToContinueShopping = $_SESSION['link_to_last_page_loaded'];
}
public function init()
{
// Set members for use in the Smarty template
$this->mCartItems = ShoppingCart::GetCartProducts(GET_CART_PRODUCTS);
$this->mTotalAmount = ShoppingCart::GetTotalAmount();
$this->mCustomerData = Customer::Get();
// If the Place Order button was clicked, save the order to database .


Pages:
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643
willa karmazyn międzyzdroje www.books61.hobbitstory.com terapia magnetyczna Informacje o hostingu asus netbooki