chrometweaks.org

My iPage hosting account is down again,can't access my website,representative told me to wait?

Click Here To View All Answers...


First question I have is My iPage hosting account is down again,can't access my website,representative told me to wait? Thanks for any answer. Second question.. I want to replace the stock image on the checkout_success.php page, but I cannot seem to do so. I know where the image is store, and I actully deleted it by mistake. NOw I get the red 'x' box instead of an image. Can someone please point me where I should insert the image I want?..

Comments (70)

I would like to know the answer too. Anyone here know what is the answer to your question. I'll do some research in Google and get back to you if I got an decent answer. You should email the people at iPage as they probably know..

Comment #1

I do not seem to have that code on my page. Here is what I have:.

<?php.

/*.

 $Id: checkout_success.php,v 1.12 2003/04/15 17:47:42 dgw_ Exp $.

 osCommerce, Open Source E-Commerce Solutions.

 http://www.oscommerce.com.

 Copyright (c) 2002 osCommerce.

 Released under the GNU General Public License.

*/.

Define('NAVBAR_TITLE_1', 'Checkout');.

Define('NAVBAR_TITLE_2', 'Success');.

Define('HEADING_TITLE', 'Your Order Has Been Processed!');.

Define('TEXT_SUCCESS', 'Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days.');.

Define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');.

Define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="'tep_href_link(FILENAME_ACCOUNT, '', 'SSL')'">\'My Account\'</a> page and by clicking on <a href="'tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL')'">\'History\'</a>.');.

Define('TEXT_CONTACT_STORE_OWNER', 'Please direct any questions you have to the <a href="'tep_href_link(FILENAME_CONTACT_US)'">store owner</a>.');.

Define('TEXT_THANKS_FOR_SHOPPING', 'Thanks for shopping with us online!');.

Define('TABLE_HEADING_COMMENTS', 'Enter a comment for the order processed');.

Define('TABLE_HEADING_DOWNLOAD_DATE', 'Expiry date: ');.

Define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining');.

Define('HEADING_DOWNLOAD', 'Download your products here:');.

Define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\'');.

?>..

Comment #2

Why edit the code? Just rename your image to the default...

Comment #3

Well, the default was a .gif, and when I save mine as anything other than a .jpg, it looks like poo...

Comment #4

You're displaying the code from /catalog/includes/languages/english/checkout_success.php..

The code that I quoted is from /catalog/checkout_success.php..

HTH,.

Terry.

This post has been edited by.

TerryK.

: 06 February 2004, 19:56..

Comment #5

Well, it seems that nothing is as easy as it should be for me. I thought I could do this without bothering my developer, who is gone for a few days, but apparently not. Now, on the checkout success page in the store, I am greeted by this error:.

Here is my code, with line 112 being in red. all I did, though was change the file name of the image; nothing more. It also seems that my auto thumbnail contribution is not working as it was before, but I do not know if there is any correlation. any help is tremendously appreciated..

<! body_text //>.

<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

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

<tr>.

<td valign="top"><?php echo tep_image(DIR_WS_IMAGES'CNWcopy2.jpg', HEADING_TITLE); ?></td>.

<td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>.

<?php.

If ($global['global_product_notifications'] != '1') {.

Echo TEXT_NOTIFY_PRODUCTS'<br><p class="productsNotifications">';.

$products_displayed = array();.

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

If (!in_array($products_array[$i]['id'], $products_displayed)) {.

Echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id'])' '$products_array[$i]['text']'<br>';.

This post has been edited by.

Matpal.

: 07 February 2004, 22:37..

Comment #6

This was in my file.

Do you have the bolded bit below line in file?.

$products_displayed = array();.

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

If (!in_array($products_array[$i]['id'], $products_displayed)) {.

Echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id'])' '$products_array[$i]['text']'<br>';.

$products_displayed[] = $products_array[$i]['id'];.

}.

}.

This post has been edited by.

Yesudo.com.

: 09 February 2004, 20:53..

Comment #7

Try posting the line you actually made the change to along with the surrounding lines. You may have deleted a semi-colon or something up above where it is saying that you have the error. If you can post this section of code:.

<! body_text //>.

   <td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

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

         <tr>.

           <td valign="top"><?php echo tep_image(DIR_WS_IMAGES'table_background_man_on_board.gif', HEADING_TITLE); ?></td>.

           <td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>.

<?php.

 if ($global['global_product_notifications'] != '1') {.

   echo TEXT_NOTIFY_PRODUCTS'<br><p class="productsNotifications">';.

   $products_displayed = array();.

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

     if (!in_array($products_array[$i]['id'], $products_displayed)) {.

       echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id'])' '$products_array[$i]['text']'<br>';.

       $products_displayed[] = $products_array[$i]['id'];.

     }.

   }..

Comment #8

Here it is....

<! 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('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

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

         <tr>.

           <td valign="top"><?php echo tep_image(DIR_WS_IMAGES'CNWcopy2.jpg', HEADING_TITLE); ?></td>.

           <td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>.

<?php.

 if ($global['global_product_notifications'] != '1') {.

   echo TEXT_NOTIFY_PRODUCTS'<br><p class="productsNotifications">';.

   $products_displayed = array();.

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

     if (!in_array($products_array[$i]['id'], $products_displayed)) {.

       echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id'])' '$products_array[$i]['text']'<br>';.

       $products_displayed[] = $products_array[$i]['id'];.

     }.

   }..

Comment #9

Matt,.

Have you tried installing a clean copy of the file to your server? If it works, then you know there is something in the code that you changed on that page causing the problem. If it still doesn't work, then the problem is elsewhere..

I'm using osC2.2MS2 here's a clean copy of the code from it, if it helps:.

<?php.

/*.

 $Id: checkout_success.php,v 1.49 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');.

// if the customer is not logged on, redirect them to the shopping cart page.

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

   tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));.

 }.

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {.

   $notify_string = 'action=notify&';.

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

   if (!is_array($notify)) $notify = array($notify);.

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

     $notify_string .= 'notify[]='$notify[$i]'&';.

   }.

   if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);.

   tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));.

 }.

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

 $breadcrumb->add(NAVBAR_TITLE_1);.

 $breadcrumb->add(NAVBAR_TITLE_2);.

 $global_query = tep_db_query("select global_product_notifications from "TABLE_CUSTOMERS_INFO" where customers_info_id = '"(int)$customer_id"'");.

 $global = tep_db_fetch_array($global_query);.

 if ($global['global_product_notifications'] != '1') {.

   $orders_query = tep_db_query("select orders_id from "TABLE_ORDERS" where customers_id = '"(int)$customer_id"' order by date_purchased desc limit 1");.

   $orders = tep_db_fetch_array($orders_query);.

   $products_array = array();.

   $products_query = tep_db_query("select products_id, products_name from "TABLE_ORDERS_PRODUCTS" where orders_id = '"(int)$orders['orders_id']"' order by products_name");.

   while ($products = tep_db_fetch_array($products_query)) {.

     $products_array[] = array('id' => $products['products_id'],.

                               'text' => $products['products_name']);.

   }.

 }.

?>.

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

</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('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

     <tr>.

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

         <tr>.

           <td valign="top"><?php echo tep_image(DIR_WS_IMAGES'table_background_man_on_board.gif', HEADING_TITLE); ?></td>.

           <td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>.

<?php.

 if ($global['global_product_notifications'] != '1') {.

   echo TEXT_NOTIFY_PRODUCTS'<br><p class="productsNotifications">';.

   $products_displayed = array();.

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

     if (!in_array($products_array[$i]['id'], $products_displayed)) {.

       echo tep_draw_checkbox_field('notify[]', $products_array[$i]['id'])' '$products_array[$i]['text']'<br>';.

       $products_displayed[] = $products_array[$i]['id'];.

     }.

   }.

   echo '</p>';.

 } else {.

   echo TEXT_SEE_ORDERS'<br><br>'TEXT_CONTACT_STORE_OWNER;.

 }.

?>.

           <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3></td>.

         </tr>.

       </table></td>.

     </tr>.

     <tr>.

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

     </tr>.

     <tr>.

       <td align="right" class="main"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></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%"><?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_image(DIR_WS_IMAGES'checkout_bullet.gif'); ?></td>.

             </tr>.

           </table></td>.

         </tr>.

         <tr>.

           <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_DELIVERY; ?></td>.

           <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_PAYMENT; ?></td>.

           <td align="center" width="25%" class="checkoutBarFrom"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>.

           <td align="center" width="25%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_FINISHED; ?></td>.

         </tr>.

       </table></td>.

     </tr>.

<?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES'downloads.php'); ?>.

   </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'); ?>.

HTH,.

Terry..

Comment #10

Incidentally, it would help if you post the section of the code were the error is actually occuring, according to a fresh copy of checkout_success.php, line 112 is about 20 lines down from the last line of the code you posted above. Post the whole file if needed...

Comment #11

I want to replace the stock image on the checkout_success.php page, but I cannot seem to do so. I know where the image is store, and I actully deleted it by mistake. NOw I get the red 'x' box instead of an image. Can someone please point me where I should insert the image I want?..

Comment #12

Code should go here:.

<! body_text //>.

<td width="100%" valign="top"><?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

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

<tr>.

<td valign="top">.

<?php echo tep_image(DIR_WS_IMAGES'table_background_man_on_board.gif', HEADING_TITLE); ?>.

</td>.

<td valign="top" class="main"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?><div align="center" class="pageHeading"><?php echo HEADING_TITLE; ?></div><br><?php echo TEXT_SUCCESS; ?><br><br>.

<?php.

If ($global['global_product_notifications'] != '1') {.

Echo TEXT_NOTIFY_PRODUCTS'<br><p class="productsNotifications">';.

$products_displayed = array();.

Just change the 'table_background_man_on_board.gif' to your image name..

HTH,.

Terry..

Comment #13


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