Question

we have multiple config products SHIRTS (option is size, S, M, L etc). This results in simple products with SKU's like SOCKS.WHITE.S, SOCKS.WHITE.M, etc

And this question has always boggled me: does Magento not provide a way to report SKU's sold per timeframe?

And ofcourse I am wondering how we can add this (maybe through a free extension or some code). We want to know what selss best per size per period ....

When I look at reports it is showing me the numbers per config.product and not per SKU

Many thanks, Sean

Was it helpful?

Solution

I logged in php MYadmin and executed this query in SQL window.

SELECT name, sku, sum(qty_ordered), sum(row_total) 
FROM sales_flat_order_item 
WHERE price > 0 
AND created_at > "2013-01-01 00:00:00" 
GROUP BY sku 
ORDER BY sku 
LIMIT 1000

After this I saved as new VIEW CSALES_PER_SKU

Improvements to query are welcome. Would be interested in adding store view/name

OTHER TIPS

Not sure if this answers your question, but I worked on this issue during the recent Magento Bugathon in Zürich. My pull request has been merged in master, so it should be there when Magento 1.8 is released - possibly during or right after Imagine 2013.

FYI, here is the entry in the issue tracker and the commits that fixes it. Maybe you can use some of the code to write your own module.

https://github.com/magento/bugathon_march_2013/issues/147

*Update Dec 04, 2014: Unfortunately this commit wasn't included in 1.8 or 1.9.0.1.

Its not a free extension but you can check http://mamoc.com/product-sales-information. With this extension you can get more detailed sales information (sales last week/2 Weeks/Month/Quarter/Half Year/Year and total).

** We (now) use aheadworks advanced reports - has nice graphs

** and custom made scripts that report in EXCEL and from there we use pivot table to do all the magic (be aware we use table prefix)

  1. for stock

https://gist.github.com/seansan/aab2707e596b7ce5748b

  1. for sales (and copies the file several times for always, YTD, last 3 months, last month)

https://gist.github.com/seansan/ebe61b82f6ce5863fa87

Here's a free extension that exports detailed order info including sku: http://www.magentocommerce.com/magento-connect/blue-jalappeno-order-export.html

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top