I want to display bestselling products for time inetrval 7 days. We can set period by day, month and year

$bestSellers = $this->_bestSellersCollectionFactory->create()

Can we set the date range to show only products from last 7 days like we set in admin enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.