Totally Zenned
- Join Date:
- May 2006
- Location:
- Gardiner, Maine
- Posts:
- 2,383
- Plugin Contributions:
- 7
Post #1 by delia
I need to have the customer's email address as a variable in account history when displaying the order info.
I have added this to the header
$history_query_raw = $db->bindVars($history_query_raw, ':customers_email_address', $customers_email_address, 'string');
and added in the customers email address in the query:
SELECT o.orders_id, o.date_purchased, o.delivery_name, o.customers_email_address,
o.billing_name, ot.text as order_total, s.orders_status_name
FROM " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot, " . TABLE_ORDERS_STATUS . " s
WHERE o.customers_id = :customersID
AND o.customers_email_address= :customers_email_address etc
However, I cannot not get that variable to display on the page to prove it's working
echo 'this is the email address' .$customers_email_address;
after the order info and before the order history as show here: http://awesomescreenshot.com/0b21l665db
Is the way I'm doing this the right path? Have I missed a step or do I have to do this another way?
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo