Totally Zenned
- Join Date:
- May 2008
- Location:
- United States
- Posts:
- 516
- Plugin Contributions:
- 2
Add a new Admin order search criteria
I'm trying to add a new search box to the order Admin screen that can search for orders by a order referrence number that my cart generates when an order is placed.
My Zen Cart generates a random 8 digit order reference number and writes it to table in the database, which is structured like:
TABLE NAME: order_reference_numbers
COLUMES:
refference_order_number (a randaom 8 digit number)
order_id (original order id)
Now I'm trying to figure out the code that needs to be modified in the **orders.php **found in the /admin directory, before I go crazy has anyone done this before and have an example of some code that I can reference?
I understand the Logic of what it has to do, I'm just not sure how to code it! It has to seach this custom table for the reference number then see what the original order id is then simply display that order like the current search by order id works.
Thanks!