Zen Follower
- Join Date:
- May 2009
- Posts:
- 122
- Plugin Contributions:
- 0
Pull up orders from multiple order status like pending and processing on one page.
Have issues with orders not being monitored since I have multiple order statuses for various things. I am trying to be able to display on one page multiple orders from multiple status via a simple link.
Currently Zencart has this built in for each status by going to "Admin home" page and just clicking on the status to see what orders are currently assigned to it.
The URL would look something like this for "Pending"
----website.com/admin/orders.php?selected_box=customers&status=1
What I would like to do is something like this to pull up orders from "Pending" which =1 and "Custom Status" which =5
The URL I would think should look like something like this
----website.com/admin/orders.php?selected_box=customers&status=1 & 5
I think I found the code that generates this URL from admin/index.php which is below. Maybe this would help elaborate on what would need to be changed or to add my own seperate link into page somewhere else and hard code the customer status numbers in myself.
$orders_contents .= '<div class="row"><span class="left"><a href="' . zen_href_link(FILENAME_ORDERS, 'selected_box=customers&status=' . $orders_status->fields['orders_status_id'], 'NONSSL') . '">' . $orders_status->fields['orders_status_name'] . '</a>:</span><span class="rigth"> ' . $orders_pending->fields['count'] . '</span> </div>';
I am not a coder, but have played with this stuff enough to be dangerous. Any help would be appreciated. Thanks