GuernseyComponents Posted January 24, 2014 Posted January 24, 2014 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
burt Posted January 24, 2014 Posted January 24, 2014 Move the relevant block of code - it should be fairly self explanatory if you have a go at it.
Patrick73 Posted January 24, 2014 Posted January 24, 2014 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.
GuernseyComponents Posted January 24, 2014 Author Posted January 24, 2014 Patrick73, Thanks, that worked. I do want to display "Order Status" before the actual order status though. How would I add that into your code above? I'm not great with PHP.
Patrick73 Posted January 24, 2014 Posted January 24, 2014 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>
MrPhil Posted January 25, 2014 Posted January 25, 2014 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.