chrometweaks.org

Is iPage.com down? Can anyone else access the site?

Click Here To View All Answers...


My first question is Is iPage.com down? Can anyone else access the site? Looking forward for any answer or 2. Second question.. Hi I m getting this error on my checkout_process.php page. it's very annoying for some users. please anyone help. I get this error in the middle of the page as popup.



"problem with page might prevent it to be displayed properly.........

Line: 442.

Char: 1.

Error: object expected.

Code:0..".

This is the code of the file. please help...

<?php.

/*.

 $Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 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));.

 }.

// if no shipping method has been selected, redirect the customer to the shipping method selection page.

 if (!tep_session_is_registered('shipping')) {.

   tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

 }.

// avoid hack attempts during the checkout procedure by checking the internal cartID.

 if (isset($cart->cartID) && tep_session_is_registered('cartID')) {.

   if ($cart->cartID != $cartID) {.

     tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

   }.

 }.

// Stock Check.

 if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) {.

   $products = $cart->get_products();.

   for ($i=0, $n=sizeof($products); $i<$n; $i++) {.

     if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {.

       tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));.

       break;.

     }.

   }.

 }.

// if no billing destination address was selected, use the customers own address as default.

 if (!tep_session_is_registered('billto')) {.

   tep_session_register('billto');.

   $billto = $customer_default_address_id;.

 } else {.

// verify the selected billing address.

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

   $check_address = tep_db_fetch_array($check_address_query);.

   if ($check_address['total'] != '1') {.

     $billto = $customer_default_address_id;.

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

   }.

 }.

 require(DIR_WS_CLASSES'order.php');.

 $order = new order;.

 if (!tep_session_is_registered('comments')) tep_session_register('comments');.

 $total_weight = $cart->show_weight();.

 $total_count = $cart->count_contents();.

// load all enabled payment modules.

 require(DIR_WS_CLASSES'payment.php');.

 $payment_modules = new payment;.

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

 $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

 $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', '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_payment.payment[0]) {.

   document.checkout_payment.payment[buttonSelect].checked=true;.

 } else {.

   document.checkout_payment.payment.checked=true;.

 }.

}.

Function rowOverEffect(object) {.

 if (object.className == 'moduleRow') object.className = 'moduleRowOver';.

}.

Function rowOutEffect(object) {.

 if (object.className == 'moduleRowOver') object.className = 'moduleRow';.

}.

//begin cvv contribution.

Function popupWindow(url) {.

Window.open(url,'popupWindow','toolbar=no,location=no,directories=no status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,heigh.

T=450,screenX=150,screenY=150,top=150,left=150').

}.

//end cvv contribution.

//></script>.

<?php echo $payment_modules->javascript_validation(); ?>.

</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_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', '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 (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {.

?>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

         <tr>.

           <td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></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 tep_output_string_protected($error['error']); ?></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.

 }.

?>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

         <tr>.

           <td class="main"><b><?php echo TABLE_HEADING_BILLING_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_BILLING_DESTINATION; ?><br><br><?php echo '<a href="'tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')'">'tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS)'</a>'; ?></td>.

               <td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">.

                 <tr>.

                   <td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo 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>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

         <tr>.

           <td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></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">.

<?php.

 $selection = $payment_modules->selection();.

 if (sizeof($selection) > 1) {.

?>.

             <tr>.

               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>.

               <td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES'arrow_east_south.gif'); ?></td>.

               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

<?php.

 } else {.

?>.

             <tr>.

               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

               <td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>.

               <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

             </tr>.

<?php.

 }.

 $radio_buttons = 0;.

 for ($i=0, $n=sizeof($selection); $i<$n; $i++) {.

?>.

             <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 ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {.

     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="3"><b><?php echo $selection[$i]['module']; ?></b></td>.

                   <td class="main" align="right">.

<?php.

   if (sizeof($selection) > 1) {.

     echo tep_draw_radio_field('payment', $selection[$i]['id']);.

   } else {.

     echo tep_draw_hidden_field('payment', $selection[$i]['id']);.

   }.

?>.

                   </td>.

                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                 </tr>.

<?php.

   if (isset($selection[$i]['error'])) {.

?>.

                 <tr>.

                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                   <td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>.

                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                 </tr>.

<?php.

   } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {.

?>.

                 <tr>.

                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                   <td colspan="4"><table border="0" cellspacing="0" cellpadding="2">.

<?php.

     for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {.

?>.

                     <tr>.

                       <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                       <td class="main"><?php echo $selection[$i]['fields'][$j]['title']; ?></td>.

                       <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                       <td class="main"><?php echo $selection[$i]['fields'][$j]['field']; ?></td>.

                       <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                     </tr>.

<?php.

     }.

?>.

                   </table></td>.

                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

                 </tr>.

<?php.

   }.

?>.

               </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>.

     <tr>.

       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

         <tr>.

           <td class="main"><b><?php echo TABLE_HEADING_COMMENTS; ?></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_textarea_field('comments', 'soft', '60', '5'); ?></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"><b><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE'</b><br>'TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></td>.

               <td class="main" align="right"><?php echo 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>.

     <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></table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

<br>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

Please help..

Thanks..

Comments (6)

Of course! but you might wanna make sure and wait for another member here to confirm my answer as I am not very confident. Better yet, why don't you contact the iPage guys because they can assist you better...

Comment #1

I know. these messages keep changing. I mean line no. keep changes each time I refresh etc... anyone plz plz help. ray your help is highly regraded. checkout_confirmation.php is fine...

Comment #2

Hmmm..... I should look at the error before replying.

This is a browser/javascript error - view the source of your web page to find the error on line 442..

Most likely to do with the CVV contribution you have added..

Matti.

This post has been edited by.

Johnson.

: 11 May 2004, 03:44..

Comment #3

Hi Matti,.

Thanks fo reply. AS I mentioned I am getting this error in checkout_payment.php and checkout_shipping.php..

Both codes are here now. I am using sts. the problem I sthat in that error, line keep changes or tell me a line where it is </table></td> code or some html code etc....

This is fresh errors just now.:.

Checkout_shipping.php page:.

Line: 418.

Char:1.

Error: object required.

Code: 0.

Url: .......

This error I also on line 400 and 425.

Code for checkout_shipping.php:.

<?php.

/*.

$Id: checkout_shipping.php,v 1.16 2003/06/09 23:03:53 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');.

Require('includes/classes/http_client.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));.

}.

// if no shipping destination address was selected, use the customers own address as default.

If (!tep_session_is_registered('sendto')) {.

Tep_session_register('sendto');.

$sendto = $customer_default_address_id;.

} else {.

// verify the selected shipping address.

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

$check_address = tep_db_fetch_array($check_address_query);.

If ($check_address['total'] != '1') {.

$sendto = $customer_default_address_id;.

If (tep_session_is_registered('shipping')) tep_session_unregister('shipping');.

}.

}.

Require(DIR_WS_CLASSES'order.php');.

$order = new order;.

// register a random ID in the session to check throughout the checkout procedure.

// against alterations in the shopping cart contents.

If (!tep_session_is_registered('cartID')) tep_session_register('cartID');.

$cartID = $cart->cartID;.

// if the order contains only virtual products, forward the customer to the billing page as.

// a shipping address is not needed.

If ($order->content_type == 'virtual') {.

If (!tep_session_is_registered('shipping')) tep_session_register('shipping');.

$shipping = false;.

$sendto = false;.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

$total_weight = $cart->show_weight();.

$total_count = $cart->count_contents();.

// load all enabled shipping modules.

Require(DIR_WS_CLASSES'shipping.php');.

$shipping_modules = new shipping;.

If ( defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ) {.

$pass = false;.

Switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {.

Case 'national':.

If ($order->delivery['country_id'] == STORE_COUNTRY) {.

$pass = true;.

}.

Break;.

Case 'international':.

If ($order->delivery['country_id'] != STORE_COUNTRY) {.

$pass = true;.

}.

Break;.

Case 'both':.

$pass = true;.

Break;.

}.

$free_shipping = false;.

If ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {.

$free_shipping = true;.

Include(DIR_WS_LANGUAGES$language'/modules/order_total/ot_shipping.php');.

}.

} else {.

$free_shipping = false;.

}.

// process the selected shipping method.

If ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {.

If (!tep_session_is_registered('comments')) tep_session_register('comments');.

If (tep_not_null($HTTP_POST_VARS['comments'])) {.

$comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);.

}.

If (!tep_session_is_registered('shipping')) tep_session_register('shipping');.

If ( (tep_count_shipping_modules() > 0) || ($free_shipping == true) ) {.

If ( (isset($HTTP_POST_VARS['shipping'])) && (strpos($HTTP_POST_VARS['shipping'], '_')) ) {.

$shipping = $HTTP_POST_VARS['shipping'];.

List($module, $method) = explode('_', $shipping);.

If ( is_object($$module) || ($shipping == 'free_free') ) {.

If ($shipping == 'free_free') {.

$quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;.

$quote[0]['methods'][0]['cost'] = '0';.

} else {.

$quote = $shipping_modules->quote($method, $module);.

}.

If (isset($quote['error'])) {.

Tep_session_unregister('shipping');.

} else {.

If ( (isset($quote[0]['methods'][0]['title'])) && (isset($quote[0]['methods'][0]['cost'])) ) {.

$shipping = array('id' => $shipping,.

'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module']' ('$quote[0]['methods'][0]['title']')'),.

'cost' => $quote[0]['methods'][0]['cost']);.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}.

} else {.

Tep_session_unregister('shipping');.

}.

}.

} else {.

$shipping = false;.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));.

}.

}.

// get all available shipping quotes.

$quotes = $shipping_modules->quote();.

// if no shipping method has been selected, automatically select the cheapest method..

// if the modules status was changed when none were available, to save on implementing.

// a javascript force-selection method, also automatically select the cheapest shipping.

// method if more than one module is now enabled.

If ( !tep_session_is_registered('shipping') || ( tep_session_is_registered('shipping') && ($shipping == false) && (tep_count_shipping_modules() > 1) ) ) $shipping = $shipping_modules->cheapest();.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_CHECKOUT_SHIPPING);.

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', '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.shipping[0]) {.

Document.checkout_address.shipping[buttonSelect].checked=true;.

} else {.

Document.checkout_address.shipping.checked=true;.

}.

}.

Function rowOverEffect(object) {.

If (object.className == 'moduleRow') object.className = 'moduleRowOver';.

}.

Function rowOutEffect(object) {.

If (object.className == 'moduleRowOver') object.className = 'moduleRow';.

}.

//></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_SHIPPING, '', 'SSL'))tep_draw_hidden_field('action', 'process'); ?><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_delivery.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>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo TABLE_HEADING_SHIPPING_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_CHOOSE_SHIPPING_DESTINATION'<br><br><a href="'tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL')'">'tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS)'</a>'; ?></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_SHIPPING_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, $sendto, 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.

If (tep_count_shipping_modules() > 0) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo TABLE_HEADING_SHIPPING_METHOD; ?></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">.

<?php.

If (sizeof($quotes) > 1 && sizeof($quotes[0]) > 1) {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" width="50%" valign="top"><?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?></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.

} elseif ($free_shipping == false) {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?></td>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

}.

If ($free_shipping == true) {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td colspan="2" width="100%"><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" colspan="3"><b><?php echo FREE_SHIPPING_TITLE; ?></b>&nbsp;<?php echo $quotes[$i]['icon']; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" width="100%"><?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER))tep_draw_hidden_field('shipping', 'free_free'); ?></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.

} else {.

$radio_buttons = 0;.

For ($i=0, $n=sizeof($quotes); $i<$n; $i++) {.

?>.

<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">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" colspan="3"><b><?php echo $quotes[$i]['module']; ?></b>&nbsp;<?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

If (isset($quotes[$i]['error'])) {.

?>.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" colspan="3"><?php echo $quotes[$i]['error']; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

} else {.

For ($j=0, $n2=sizeof($quotes[$i]['methods']); $j<$n2; $j++) {.

// set the radio button to be checked if it is the method chosen.

$checked = (($quotes[$i]['id']'_'$quotes[$i]['methods'][$j]['id'] == $shipping['id']) ? true : false);.

If ( ($checked == true) || ($n == 1 && $n2 == 1) ) {.

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" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td>.

<?php.

If ( ($n > 1) || ($n2 > 1) ) {.

?>.

<td class="main"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>.

<td class="main" align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id']'_'$quotes[$i]['methods'][$j]['id'], $checked); ?></td>.

<?php.

} else {.

?>.

<td class="main" align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']))tep_draw_hidden_field('shipping', $quotes[$i]['id']'_'$quotes[$i]['methods'][$j]['id']); ?></td>.

<?php.

}.

?>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

$radio_buttons++;.

}.

}.

?>.

</table></td>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

}.

}.

?>.

</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_COMMENTS; ?></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_textarea_field('comments', 'soft', '60', '5'); ?></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_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>.

<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_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%"><?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="checkoutBarCurrent"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>.

<td align="center" width="25%" class="checkoutBarTo"><?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'); ?>.

Now checkout_payment.php:.

Same error but only in line 442.

Now code for checkout_payment.php:.

<?php.

/*.

$Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 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));.

}.

// if no shipping method has been selected, redirect the customer to the shipping method selection page.

If (!tep_session_is_registered('shipping')) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

}.

// avoid hack attempts during the checkout procedure by checking the internal cartID.

If (isset($cart->cartID) && tep_session_is_registered('cartID')) {.

If ($cart->cartID != $cartID) {.

Tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

}.

}.

// Stock Check.

If ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) {.

$products = $cart->get_products();.

For ($i=0, $n=sizeof($products); $i<$n; $i++) {.

If (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {.

Tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));.

Break;.

}.

}.

}.

// if no billing destination address was selected, use the customers own address as default.

If (!tep_session_is_registered('billto')) {.

Tep_session_register('billto');.

$billto = $customer_default_address_id;.

} else {.

// verify the selected billing address.

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

$check_address = tep_db_fetch_array($check_address_query);.

If ($check_address['total'] != '1') {.

$billto = $customer_default_address_id;.

If (tep_session_is_registered('payment')) tep_session_unregister('payment');.

}.

}.

Require(DIR_WS_CLASSES'order.php');.

$order = new order;.

If (!tep_session_is_registered('comments')) tep_session_register('comments');.

$total_weight = $cart->show_weight();.

$total_count = $cart->count_contents();.

// load all enabled payment modules.

Require(DIR_WS_CLASSES'payment.php');.

$payment_modules = new payment;.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_CHECKOUT_PAYMENT);.

$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));.

$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', '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_payment.payment[0]) {.

Document.checkout_payment.payment[buttonSelect].checked=true;.

} else {.

Document.checkout_payment.payment.checked=true;.

}.

}.

Function rowOverEffect(object) {.

If (object.className == 'moduleRow') object.className = 'moduleRowOver';.

}.

Function rowOutEffect(object) {.

If (object.className == 'moduleRowOver') object.className = 'moduleRow';.

}.

//begin cvv contribution.

Function popupWindow(url) {.

Window.open(url,'popupWindow','toolbar=no,location=no,directories=no status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,heigh.

T=450,screenX=150,screenY=150,top=150,left=150').

}.

//end cvv contribution.

//></script>.

<?php echo $payment_modules->javascript_validation(); ?>.

</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_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', '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 (isset($HTTP_GET_VARS['payment_error']) && is_object(${$HTTP_GET_VARS['payment_error']}) && ($error = ${$HTTP_GET_VARS['payment_error']}->get_error())) {.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo tep_output_string_protected($error['title']); ?></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 tep_output_string_protected($error['error']); ?></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.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo TABLE_HEADING_BILLING_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_BILLING_DESTINATION; ?><br><br><?php echo '<a href="'tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')'">'tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS)'</a>'; ?></td>.

<td align="right" width="50%" valign="top"><table border="0" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main" align="center" valign="top"><b><?php echo TITLE_BILLING_ADDRESS; ?></b><br><?php echo 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>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main"><b><?php echo TABLE_HEADING_PAYMENT_METHOD; ?></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">.

<?php.

$selection = $payment_modules->selection();.

If (sizeof($selection) > 1) {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" width="50%" valign="top"><?php echo TEXT_SELECT_PAYMENT_METHOD; ?></td>.

<td class="main" width="50%" valign="top" align="right"><b><?php echo TITLE_PLEASE_SELECT; ?></b><br><?php echo tep_image(DIR_WS_IMAGES'arrow_east_south.gif'); ?></td>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

} else {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" width="100%" colspan="2"><?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?></td>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

}.

$radio_buttons = 0;.

For ($i=0, $n=sizeof($selection); $i<$n; $i++) {.

?>.

<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 ( ($selection[$i]['id'] == $payment) || ($n == 1) ) {.

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="3"><b><?php echo $selection[$i]['module']; ?></b></td>.

<td class="main" align="right">.

<?php.

If (sizeof($selection) > 1) {.

Echo tep_draw_radio_field('payment', $selection[$i]['id']);.

} else {.

Echo tep_draw_hidden_field('payment', $selection[$i]['id']);.

}.

?>.

</td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

If (isset($selection[$i]['error'])) {.

?>.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td class="main" colspan="4"><?php echo $selection[$i]['error']; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

<?php.

} elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) {.

?>.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td colspan="4"><table border="0" cellspacing="0" cellpadding="2">.

<?php.

For ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {.

?>.

..... and rest of the code..

This post has been edited by.

211655.

: 11 May 2004, 04:03..

Comment #4

After doing some research I guess it's javascriot that I dont know at all..

Check this line plz..

<tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)">.

It appears 2 times in shipping page. it's function is bening called in the above code..

May be it's the error. plz check both of them and I think possible bith files have the problem due to that...

Comment #5

Sorry to bother all. thanks Matti and all:.

I finally fixed it. I did search for "moduleRowSelected" in both pages and deleted two lines in each..

Both started with <tr id= .......

Dont delete <tr> just take the rest of the stuff between <tr and > out in all places..

Dirty fix but worked for me...

Comment #6

I took that off from all pages.. the rollover color thing for selected etc... that was the error...

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.