brownd92 Posted December 11, 2013 Share Posted December 11, 2013 Hi there, Does anyone have a SQL statement so I can find each product in an order? i.e select QTY, Name, details from orders where order reference = KSNFDNOSU In other words the information you would get in order history. Thanks Link to comment Share on other sites More sharing options...
doekia Posted December 11, 2013 Share Posted December 11, 2013 SELECT od.* FROM ps_order_detail od INNER JOIN ps_order o on (o.id_order = od.id_order) WHERE o.reference = 'KSNFDNOSU' Link to comment Share on other sites More sharing options...
brownd92 Posted December 12, 2013 Author Share Posted December 12, 2013 Brilliant starter :-) Thanks How would I go about getting information like pack size? i.e. Reference Product Quantity Dectomax Inj. Cattle & sheep Dectomax Inj. Cattle & sheep - Pack : 200ml 2 Qualimec (Ivermectin) Injection Qualimec (Ivermectin) Injection - Pack : 500ml 2 Link to comment Share on other sites More sharing options...
brownd92 Posted December 12, 2013 Author Share Posted December 12, 2013 Or more specifically the product combination which was ordered? Thanks Link to comment Share on other sites More sharing options...
doekia Posted December 12, 2013 Share Posted December 12, 2013 combination is id_product_attribute But now should you be asking about specific attribute value regarding a combination it is a bit more tricky You should find on product_combination the list of attributes then find on attribute_group the group name regarding your attribute Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now