Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

why?


frank1002us

Recommended Posts

Why would you need a phone or fax number for someone other than the customer? It's one thing to keep various addresses in the address book (for shipping to other locations) but why would you need the delivery phone or fax number?

Chris Sullivan

Link to comment
Share on other sites

if delivery is to be done to a diffrent address and you need to contact the reciver.

it is obvious than in real life every address has a phone number here it can not.

actually i am trying to make a site for a restaurant and they would need the phone#for delivery address

 

i would appreciate any help

Link to comment
Share on other sites

All you have to do is add the field in the address_book table, and edit the address_book files to allow the input of the numbers, as well as the ability to view the numbers when the customer is looking at the address book.

 

HTH,

-Chris

Chris Sullivan

Link to comment
Share on other sites

hi

i added the two fields to the form and table i have done some limited testing and it seems that i can modify the values in the db

but still i cant get the phone# and fax# to display in the checkout and probably it wont show up inthe email either. haven't tested that yet.

it seems that it is not getting the values from the table

i think i need to find $billto and$shipto. do you have any idea where are they.

thx

Link to comment
Share on other sites

ok i guess my last question was stupid

i am not a programmer at all just trying a little cut and past

i managed to add the phone and fax numbers added to the address book table in db

i did some changes to the files and i can add and edit the other addresses and tel and fax

i also added $fax and$telephone to the values in address format table

i only have one more problem that if you can give me a little advice i would greatly appreciate.

the phone number and fax are not showing in shipping address table i get blank space i used the fields names as value and i get this

company

first last

 

 

street address

suburb

city, NY post code

United States

 

in checkout_shipping php

i have found

  $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");
     while ($addresses = tep_db_fetch_array($addresses_query)) {
       $format_id = tep_get_address_format_id($address['country_id']);
?>

and changed it to

      $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id, entry_telephone as telephone, entry_fax as fax  from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");
     while ($addresses = tep_db_fetch_array($addresses_query)) {
       $format_id = tep_get_address_format_id($address['country_id']);

i don't know if this is where the problem or it is somewhere else

any idea?

Link to comment
Share on other sites

The fax and telephone would be $addresses['fax'] and $addresses['telephone'] from the query you show. Is that what you are using?

 

Hth,

Matt

Link to comment
Share on other sites

hi thanks for taking the time and answering my question.i am not a programer so probably my mistake is very elementry.

i can now add to the table address_book since i can see them in my phpmyadmin in all screens.

but i can not read from the file i mean in any place that the phone and fax number are supposed to be read from db it does not show the numbers.

not in checkout_shipping.php checkout_payment.php and address_book_process.php and the emails . i am probably not doing a single step

that controls all of them since they all show blank spaces where they are supposed to be. i did not declare anything since i was using existing fax and phone number.

i made changes in lines 45 and 46 151 and 152 and line 449 i would appreciate any help

<?php
/*
 $Id: checkout_payment_address.php,v 1.7 2003/02/13 04:23:22 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
 }

 $error = false;
 $process = false;
 if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'submit')) {
// process a new billing address
   if (tep_not_null($HTTP_POST_VARS['firstname']) && tep_not_null($HTTP_POST_VARS['lastname']) && tep_not_null($HTTP_POST_VARS['street_address'])) {
     $process = true;

     $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);
     $company = tep_db_prepare_input($HTTP_POST_VARS['company']);
     $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
     $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);
     $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);
     $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);
     $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);
     $city = tep_db_prepare_input($HTTP_POST_VARS['city']);
     $country = tep_db_prepare_input($HTTP_POST_VARS['country']);
     $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);
     $state = tep_db_prepare_input($HTTP_POST_VARS['state']);
//added next two line frank
     $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);
     $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);
     if (ACCOUNT_GENDER == 'true') {
       if (($gender == 'm') || ($gender == 'f')) {
         $gender_error = false;
       } else {
         $gender_error = true;
         $error = true;
       }
     }

     if (ACCOUNT_COMPANY == 'true') {
       if (strlen($company) < ENTRY_COMPANY_MIN_LENGTH) {
         $company_error = true;
         $error = true;
       } else {
         $company_error = false;
       }
     }

     if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
       $firstname_error = true;
       $error = true;
     } else {
       $firstname_error = false;
     }

     if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {
       $lastname_error = true;
       $error = true;
     } else {
       $lasttname_error = false;
     }

     if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {
       $street_address_error = true;
       $error = true;
     } else {
       $street_address_error = false;
     }

     if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {
       $postcode_error = true;
       $error = true;
     } else {
       $postcode_error = false;
     }

     if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {
       $city_error = true;
       $error = true;
     } else {
       $city_error = false;
     }

     if (strlen($country) < 1) {
       $country_error = true;
       $error = true;
     } else {
       $country_error = false;
     }

     if (ACCOUNT_STATE == 'true') {
       if ($entry_country_error == true) {
         $entry_state_error = true;
       } else {
         $zone_id = 0;
         $entry_state_error = false;
         $check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($country) . "'");
         $check_value = tep_db_fetch_array($check_query);
         $entry_state_has_zones = ($check_value['total'] > 0);
         if ($entry_state_has_zones == true) {
           $zone_query = tep_db_query("select zone_id from " . TABLE_ZONES . " where zone_country_id = '" . tep_db_input($country) . "' and zone_name = '" . tep_db_input($state) . "'");
           if (tep_db_num_rows($zone_query) == 1) {
             $zone_values = tep_db_fetch_array($zone_query);
             $zone_id = $zone_values['zone_id'];
           } else {
             $error = true;
             $entry_state_error = true;
           }
         } else {
           if (!$state) {
             $error = true;
             $entry_state_error = true;
           }
         }
       }
     }

     if ($error == false) {
       $next_id_query = tep_db_query("select max(address_book_id) as address_book_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");
       if (tep_db_num_rows($next_id_query)) {
         $next_id = tep_db_fetch_array($next_id_query);
         $entry_id = $next_id['address_book_id']+1;
       } else {
         $entry_id = 1;
       }

       $sql_data_array = array('customers_id' => $customer_id,
                               'address_book_id' => $entry_id,
                               'entry_firstname' => $firstname,
                               'entry_lastname' => $lastname,
                               'entry_street_address' => $street_address,
                               'entry_postcode' => $postcode,
                               'entry_city' => $city,
                               'entry_country_id' => $country,
//added next two line frank
                                'entry_telephone' => $telephone,
                                'entry_fax' => $fax);

       if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;
       if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;
       if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;
       if (ACCOUNT_STATE == 'true') {
         if ($zone_id > 0) {
           $sql_data_array['entry_zone_id'] = $zone_id;
           $sql_data_array['entry_state'] = '';
         } else {
           $sql_data_array['entry_zone_id'] = '0';
           $sql_data_array['entry_state'] = $state;
         }
       }

       if (!tep_session_is_registered('billto')) tep_session_register('billto');

       tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

       $billto = $entry_id;

       if (tep_session_is_registered('payment')) tep_session_unregister('payment');

       tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
     }
// process the selected billing destination
   } elseif (isset($HTTP_POST_VARS['address'])) {
     $reset_payment = false;
     if (tep_session_is_registered('billto')) {
       if ($billto != $HTTP_POST_VARS['address']) {
         if (tep_session_is_registered('payment')) {
           $reset_payment = true;
         }
       }
     } else {
       tep_session_register('billto');
     }

     $billto = $HTTP_POST_VARS['address'];

     $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "' and address_book_id = '" . $billto . "'");
     $check_address = tep_db_fetch_array($check_address_query);

     if ($check_address['total'] == '1') {
       if ($reset_payment == true) tep_session_unregister('payment');
       tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
     } else {
       tep_session_unregister('billto');
     }
// no addresses to select from - customer decided to keep the current assigned address
   } else {
     if (!tep_session_is_registered('billto')) tep_session_register('billto');
     $billto = $customer_default_address_id;

     tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
   }
 }

// if no billing destination address was selected, use their own address as default
 if (!tep_session_is_registered('billto')) {
   $billto = $customer_default_address_id;
 }

 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT_ADDRESS);

 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript"><!--
var selected;

function selectRowEffect(object, buttonSelect) {
 if (!selected) {
   if (document.getElementById) {
     selected = document.getElementById('defaultSelected');
   } else {
     selected = document.all['defaultSelected'];
   }
 }

 if (selected) selected.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selected = object;

// one button is not an array
 if (document.checkout_address.address[0]) {
   document.checkout_address.address[buttonSelect].checked=true;
 } else {
   document.checkout_address.address.checked=true;
 }
}

function rowOverEffect(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}

function check_form() {
 var error = 0;
 var error_message = "<?php echo JS_ERROR; ?>";

 var firstname = document.checkout_address.firstname.value;
 var lastname = document.checkout_address.lastname.value;
 var street_address = document.checkout_address.street_address.value;
 var postcode = document.checkout_address.postcode.value;
 var city = document.checkout_address.city.value;

 if (firstname == '' && lastname == '' && street_address == '') {
   return true;
 }

<?php
if (ACCOUNT_GENDER == 'true') {
?>
 if (document.checkout_address.elements['gender'].type != "hidden") {
   if (document.checkout_address.gender[0].checked || document.checkout_address.gender[1].checked) {
   } else {
     error_message = error_message + "<?php echo JS_GENDER; ?>";
     error = 1;
   }
 }
<?php
}
?>
 if (firstname == "" || firstname.length < <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?>) {
   error_message = error_message + "<?php echo JS_FIRST_NAME; ?>";
   error = 1;
 }

 if (lastname == "" || lastname.length < <?php echo ENTRY_LAST_NAME_MIN_LENGTH; ?>) {
   error_message = error_message + "<?php echo JS_LAST_NAME; ?>";
   error = 1;
 }

 if (street_address == "" || street_address.length < <?php echo ENTRY_STREET_ADDRESS_MIN_LENGTH; ?>) {
   error_message = error_message + "<?php echo JS_ADDRESS; ?>";
   error = 1;
 }

 if (postcode == "" || postcode.length < <?php echo ENTRY_POSTCODE_MIN_LENGTH; ?>) {
   error_message = error_message + "<?php echo JS_POST_CODE; ?>";
   error = 1;
 }

 if (city == "" || city.length < <?php echo ENTRY_CITY_MIN_LENGTH; ?>) {
   error_message = error_message + "<?php echo JS_CITY; ?>";
   error = 1;
 }
<?php
 if (ACCOUNT_STATE == 'true') {
?>
 if (document.checkout_address.state.value == "" || document.checkout_address.state.length < <?php echo ENTRY_STATE_MIN_LENGTH; ?> ) {
    error_message = error_message + "<?php echo JS_STATE; ?>";
    error = 1;
 }
<?php
 }
?>

 if (document.checkout_address.country.value == 0) {
   error_message = error_message + "<?php echo JS_COUNTRY; ?>";
   error = 1;
 }

 if (error == 1) {
   alert(error_message);
   return false;
 } else {
   return true;
 }
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
   </table></td>
<!-- body_text //-->
   <td width="100%" valign="top"><?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'), 'post', 'onSubmit="return check_form();"'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
           <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 if ($process == true) {
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS_PROBLEM; ?></b></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
         <tr class="infoBoxNoticeContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main" width="100%" valign="top"><?php echo TEXT_NEW_PAYMENT_ADDRESS_PROBLEM; ?></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
 }

 if ($process == false) {
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo TABLE_HEADING_PAYMENT_ADDRESS; ?></b></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main" width="50%" valign="top"><?php echo TEXT_SELECTED_PAYMENT_DESTINATION; ?></td>
               <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">
                 <tr>
                   <td class="main" align="center" valign="top"><?php echo '<b>' . TITLE_PAYMENT_ADDRESS . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?></td>
                   <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                   <td class="main" valign="top"><?php echo tep_address_label($customer_id, $billto, true, ' ', '<br>'); ?></td>
                   <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   $addresses_count_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "' and address_book_id != '" . $billto . "'");
   $addresses_count = tep_db_fetch_array($addresses_count_query);

   if ($addresses_count['total'] > 0) {
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?></b></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_OTHER_PAYMENT_DESTINATION; ?></td>
               <td class="main" width="50%" valign="top" align="right"><?php echo '<b>' . TITLE_PLEASE_SELECT . '</b><br>' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
<?php
     $radio_buttons = 0;
// added the phone and fax to nect line
     $addresses_query = tep_db_query("select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id,entry_telephone as telephone,entry_fax as fax, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");
     while ($addresses = tep_db_fetch_array($addresses_query)) {
       $format_id = tep_get_address_format_id($address['country_id']);
?>
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
      if ($addresses['address_book_id'] == $billto) {
         echo '                  <tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
       } else {
         echo '                  <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')">' . "\n";
       }
?>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                   <td class="main" colspan="2"><b><?php echo $addresses['firstname'] . ' ' . $addresses['lastname']; ?></b></td>
                   <td class="main" align="right"><?php echo tep_draw_radio_field('address', $addresses['address_book_id'], ($addresses['address_book_id'] == $billto)); ?></td>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 </tr>
                 <tr>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                   <td colspan="3"><table border="0" cellspacing="0" cellpadding="2">
                     <tr>
                       <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                       <td class="main"><?php echo tep_address_format($format_id, $addresses, true, ' ', ', '); ?></td>
                       <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                     </tr>
                   </table></td>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 </tr>
               </table></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
<?php
       $radio_buttons++;
     }
?>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
<?php
   }
 }
?>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b><?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS; ?></b></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main" width="100%" valign="top"><?php echo TEXT_CREATE_NEW_PAYMENT_ADDRESS; ?></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
             <tr>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                 <tr>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                   <td>
<?php require(DIR_WS_MODULES . 'checkout_new_address.php'); ?>
                   </td>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 </tr>
               </table></td>
               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
               <td class="main"><?php echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>
               <td class="main" align="right"><?php echo tep_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
               <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
<?php
 if ($process == true) {
?>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>'; ?></td>
     </tr>
<?php
 }
?>
     <tr>
       <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
               <td width="50%" align="right"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
               <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
             </tr>
           </table></td>
           <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
               <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
               <td><?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?></td>
               <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
             </tr>
           </table></td>
           <td width="25%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
           <td width="25%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
             <tr>
               <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?></td>
               <td width="50%"><?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?></td>
             </tr>
           </table></td>
         </tr>
         <tr>
           <td align="center" width="25%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
           <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>
           <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
           <td align="center" width="25%" class="checkoutBarTo"><?php echo CHECKOUT_BAR_FINISHED; ?></td>
         </tr>
       </table></td>
     </tr>
   </table></form></td>
<!-- body_text_eof //-->
   <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
   </table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

any suggestion or help would be greatly appriciated

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...