[ Index ] |
|
Code source de Zen Cart E-Commerce Shopping Cart 1.3.7.1 |
1 <?php 2 /** 3 * page for Customer to change Payment Address(bill to) 4 * 5 * @package page 6 * @copyright Copyright 2003-2006 Zen Cart Development Team 7 * @copyright Portions Copyright 2003 osCommerce 8 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 9 * @version $Id: header_php.php 4793 2006-10-20 05:25:20Z ajeh $ 10 */ 11 12 // This should be first line of the script: 13 $zco_notifier->notify('NOTIFY_HEADER_START_CHECKOUT_PAYMENT_ADDRESS'); 14 15 // if there is nothing in the customers cart, redirect them to the shopping cart page 16 if ($_SESSION['cart']->count_contents() <= 0) { 17 zen_redirect(zen_href_link(FILENAME_SHOPPING_CART)); 18 } 19 20 // if the customer is not logged on, redirect them to the login page 21 if (!$_SESSION['customer_id']) { 22 $_SESSION['navigation']->set_snapshot(); 23 zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL')); 24 } else { 25 // validate customer 26 if (zen_get_customer_validate_session($_SESSION['customer_id']) == false) { 27 $_SESSION['navigation']->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SHIPPING)); 28 zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL')); 29 } 30 } 31 32 require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php')); 33 $addressType = "billto"; 34 require(DIR_WS_MODULES . zen_get_module_directory('checkout_new_address')); 35 // if no billing destination address was selected, use their own address as default 36 if (!$_SESSION['billto']) { 37 $_SESSION['billto'] = $_SESSION['customer_default_address_id']; 38 } 39 40 $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); 41 $breadcrumb->add(NAVBAR_TITLE_2); 42 43 $addresses_count = zen_count_customer_address_book_entries(); 44 45 // This should be last line of the script: 46 $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_PAYMENT_ADDRESS'); 47 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 16:45:43 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |