Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit Order History Page


GuernseyComponents

Recommended Posts

Posted

Hello,

 

You will see that on my order history page, the order status is displayed in brackets next to the order no. Picture:

 

I can't seem to get the image to display properly, so here is a link: http://i.imgur.com/j3sV3nB.png

 

Is it possible to remove the order status in the brackets and add the order status under the "Shipped To" box?

 

Thanks,

 

Dominic

Posted

open account_history.php find:

 

<h2><?php echo TEXT_ORDER_NUMBER . ' ' . $history['orders_id'] . ' <span class="contentText">(' . $history['orders_status_name'] . ')</span>'; ?></h2>

 

replace with:

//<h2><?php echo TEXT_ORDER_NUMBER . ' ' . $history['orders_id'] . ' <span class="contentText">(' . $history['orders_status_name'] . ')</span>'; ?></h2>

<h2><?php echo TEXT_ORDER_NUMBER . ' ' . $history['orders_id'] . ' '; ?></h2>

 

Find:

<td width="50%" valign="top"><?php echo '<strong>' . TEXT_ORDER_DATE . '</strong> ' . tep_date_long($history['date_purchased']) . '<br /><strong>' . $order_type . '</strong> ' . tep_output_string_protected($order_name); ?></td>

 

Replace by:

 

<td width="50%" valign="top"><?php echo '<strong>' . TEXT_ORDER_DATE . '</strong> ' . tep_date_long($history['date_purchased']) . '<br /><strong>' . $order_type . '</strong> ' . tep_output_string_protected($order_name) . '<br/ > <span class="contentText">(' . $history['orders_status_name'] . ')</span>'; ?></td>

 

Should be good.

Posted

Replace the second modification with:

 

<td width="50%" valign="top"><?php echo '<strong>' . TEXT_ORDER_DATE . '</strong> ' . tep_date_long($history['date_purchased']) . '<br /><strong>' . $order_type . '</strong> ' . tep_output_string_protected($order_name) . '<br/ ><span class="contentText"><b> ' . TEXT_ORDER_STATUS . '</b> (' . $history['orders_status_name'] . ')</span>'; ?></td>

Posted

replace with:

//<h2><?php echo TEXT_ORDER_NUMBER . ' ' . $history['orders_id'] . ' <span class="contentText">(' . $history['orders_status_name'] . ')</span>'; ?></h2>
<h2><?php echo TEXT_ORDER_NUMBER . ' ' . $history['orders_id'] . ' '; ?></h2>

 

Whoa there! You intend to comment out the first line there, but you're putting a PHP comment in HTML, not PHP. You're either going to have to put <!-- and --> around the whole (old) line, or just erase the unwanted part of the original line.

Archived

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

×
×
  • Create New...