Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Orders page default status


rotaour

Recommended Posts

I want to show only 'pending' orders by default when you go to the orders page, how do I do this?

 

<td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . tep_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"'); ?></td>

 

I need to replace 'text' => TEXT_ALL_ORDERS with order_status_id = 1.

 

Thanks

Matt Mika

Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks

Link to comment
Share on other sites

Keep it simple STUPID!!!

 

Couldnt figure out how to get the form to show Pending statuses only. I could get the text as 'Pending' by default but what good is that if the form still shows 'All orders'?

 

Fix? Simply add '&status=1" to includes/boxes/orders.php

 

CHANGE:

 

$heading[] = array('text' => BOX_HEADING_ORDERS,

'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=orders'));

 

TO:

 

$heading[] = array('text' => BOX_HEADING_ORDERS,

'link' => tep_href_link(FILENAME_ORDERS, 'selected_box=orders&status=1'));

 

Well, DUH!

Matt Mika

Installed Contributions: Multi-Stores, QTPro, CCGV(trad), Batch Print, EasyPopulate, Simple Manual Order Entry, Encrypting Credit Card Via Mcrypt, UPSXML, Down for Maintenance, On The Fly GD Thumbs, SPPC, SPPC Hide, and various personal tweaks

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...