UncleSteve Posted February 10, 2013 Posted February 10, 2013 I've tried several add-ons, but not found what I'm looking for, so asking for help please? I need to be able to search for customers who purchased a particular product, or search for orders that contain a particular product. Can someone suggest a method or a suitable add-on to acheive the above please? Thanks in advance ____________________________________________________________________ ____________________________________________________________________
burt Posted February 10, 2013 Posted February 10, 2013 SELECT DISTINCT op.products_name, o.customers_name, o.customers_email_address FROM orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id WHERE op.products_id = x ORDER BY op.products_name Change the x to the ID of the product you are searching on. Untested.
Guest Posted February 11, 2013 Posted February 11, 2013 SELECT DISTINCT op.products_name, o.customers_name, o.customers_email_address FROM orders o LEFT JOIN orders_products op ON o.orders_id = op.orders_id WHERE op.products_id = x ORDER BY op.products_name Change the x to the ID of the product you are searching on. Untested. Completely correct, but I think he'd want this wrapped in an admin page that shows up in the admin menu... I don't think this already exists, but it can be done by cloning one of the admin pages (like customers.php) and adjusting the queries and fields.
♥toyicebear Posted February 11, 2013 Posted February 11, 2013 Find Customers by Product Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
UncleSteve Posted March 8, 2013 Author Posted March 8, 2013 Hi Guy's, So sorry for the late reply. I don't seem to be getting notifications. Thanks for your posts, I'll go and try them out :) ____________________________________________________________________ ____________________________________________________________________
kru Posted March 12, 2013 Posted March 12, 2013 I tried that Find Customers By Product add-on and it didn't work... Add-Ons personally installed:Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased ReportAdd-Ons personally developed:Search for email address, etc in Orders -- Discontinue ProductAdd-Ons installed by others:View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields
Recommended Posts
Archived
This topic is now archived and is closed to further replies.