The Order_Status addon adds the page "order_status.php" but it does not - at least as far as I can tell - provide a link to it. So you need to add an "Order Status" link to the menu bar. Note that the link does NOT display if the user is logged in, but that's ok because when they login they automatically get a list of their orders. So this is really for the benefit of customers who did not create an account.
Here's how to add the link ("custom" is the name of my customized folders):
You need to edit two files.
First file: tpl_header.php
Make a copy of includes/templates/template_default/common/tpl_header.php
OR, if you have already customized that file, start with your customized version (in my case, that was includes/templates/custom/common/tpl_header.php).
Find this section of code:
Then, add this code just BEFORE it:Code:<?php if ($_SESSION['cart']->count_contents() != 0) { ?> <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li> <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li> <?php }?>
Place the edited file into your customized directory (in my case, that was includes/templates/custom/common).Code:<!-- custom edit (addition) to add "Order Status" link to the main navigation if user is not logged in --> <?php if (!($_SESSION['customer_id'])) { ?> <li><a href="<?php echo zen_href_link(FILENAME_ORDER_STATUS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_ORDER_STATUS; ?></a></li> <?php } ?> <!-- -->
Second file: header.php
Make a copy of includes/languages/english/header.php
OR, if you have already customized that file, start with your customized version (in my case, that was includes/languages/english/custom/header.php).
Find this section of code:
Add this code directly AFTER it:Code:define('HEADER_TITLE_LOGOFF', 'Log Out'); define('HEADER_TITLE_LOGIN', 'Log In');
Place the edited file into your customized directory (in my case, that was includes/languages/english/custom).Code:// custom edit - addition - to add order status link in menu bar define('HEADER_TITLE_ORDER_STATUS', 'Order Status');
Note that the header.php already has a definition for FILENAME_ORDER_STATUS so no edit was needed to define it.




