count orders for each product Is there a way to calculate the number of orders for a specific product and display it and if so is it possible to integrate it with the devel module for testing. thanks Log in or register to post a comment. sevol Posted: Dec 10, 2011 Comments I found a way nevermind! sevol on December 10, 2011 I found a way nevermind! Log in or register to post a comment. Please always explain your "way" (a detailed answer) Randy Fay on December 12, 2011 Please remember that this is a community of users, and we all need help. You've now created a question that everybody will find when they google it... Please always update with a detailed answer when you discover one. Thanks! Log in or register to post a comment. I would really appreciate it if you could... henryv on December 12, 2011 ...explain how to calculate the number of orders for a specific product and display it... Thanks! Henry Log in or register to post a comment. Would also like to hear how you solved it klavs on June 30, 2012 Since I have the exact same need - pls. contribute your solution Log in or register to post a comment. Hi guys! I've spent a lot of k0nqu3r0r on March 18, 2013 Hi guys! I've spent a lot of time issuing that topic. What I've found suitable for me. There's a statistics module - http://drupal.org/project/commerce_reports. It creates several views for reporting. Basically, you can use product count as basic view of Product reports view. It's called Chart (by Quantity Sold). You can clone it and show as block with your own modifications. I had to attach my products to product display and show overall count of all products sold, that are connected to my Product Display. This required me to create field Commerce Line Item: Quantity with enabled Aggregation (settings - Sum). Also I created Relation Commerce Product: Node referencing products from field_product (selected Commerce Line item: Product in the relationship select). Then I created Content: Nid Contextual filter and chose Node referencing products from field_product for Relationship and selected Provide default value -> Content ID from URL for argument. That's all. Should work for you. Log in or register to post a comment.