Uncategorized

Magento2 product collection returning empty value instead of 0 (zeros)

I built my own product collection which I use for my own shop dashboard. What it should do is for each selected product to go through the last 13 months and show me the amount that was sold. … public function __construct( \Magento\Sales\Model\ResourceModel\Report\Bestsellers\CollectionFactory $ collectionFactory, // for bestseller … array $ data = [] ) […]