Item purchase verification
- igavemybest
- Captain (CAPT)
- Posts: 388
- Joined: Sun Apr 06, 2008 5:47 pm
Item purchase verification
I want to verify that an item with a particular sku was purchased by a customer with "x@x.com" email address from outside the AC7 website. What would be the best way to do that.
Re: Item purchase verification
This should do it for you....
Obviously change the email address and SKU to your search criteria.
Code: Select all
SELECT u.loweredusername,o.ordernumber, o.orderdate, oi.sku FROM ac_users u
LEFT OUTER JOIN ac_orders o ON u.userid = o.userid
LEFT OUTER JOIN ac_orderitems oi ON o.orderid = oi.orderid
WHERE u.loweredusername='jhpayne@solunar.com'
AND SKU='IND-12MON'
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com