Questions tagged [best-seller]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

In this collection This Best seller give me error it's not working, unable to sort by best seller ASC, DESC not working in this condition

public function getProductCollection() { $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $filterableAttributes = $objectManager->create(\Magento\Catalog\Model\Layer\...
ghanshyam saini's user avatar
2 votes
1 answer
178 views

How to get new/refresh Collection?

I'm trying to get bestsellers collection, and set a period. I want to load diffrent period collection if chosen one is empty, but I get old collection instead. I tried to use clear/reset/load but it ...
Konrad's user avatar
  • 55
0 votes
1 answer
110 views

How to get and show the best selling products in customer account page magento 2

I wish to show best selling products in in my customer My account page.Please provide me a solution to get best selling products and display in home page. I have getting account file from this path : ...
Praful's user avatar
  • 1
0 votes
1 answer
213 views

Is there any way to show top seller product by date range in frontend in Magento 2

Is there anyway to display best seller products by date range? For example recent last 7 days or recent 30 days or recent 60 days, etc. I have got a help that thing. But it is in Magento 1.9, not 2.x ...
Ankan Bhadra's user avatar
0 votes
1 answer
548 views

How to get Top Seller Products order by qty_ordered DESC in Magento 2 programmatically

I'm trying to show the Top 4 Selling Product(s) with order by qty_ordered DESC in frontend like Admin Dashboard best seller's short view. But it will not displayed data in the exact way like Admin ...
Ankan Bhadra's user avatar
0 votes
2 answers
2k views

magento 2 error - "Fatal Error: 'Uncaught Error: Cannot instantiate interface

I have a custom module to expose an API to get the best selling products & most viewed products separately. This module is working fine in my localhost and staging server. When i moved the same ...
Mujahidh's user avatar
  • 2,791
0 votes
1 answer
45 views

Sorting by "Best selling" not working for configurable products M2.4.x (but for simple products)

the sorting by "Best selling" is not working for configurable products in M2.4.x Its well working for categories with simple products. When mixed category, first the best-selling simple ...
HP-mag's user avatar
  • 21
1 vote
0 answers
56 views

How to get lifetime best seller products

I am creating an API for getting best seller products. There are a lot answer on community which answering for get best seller on monthly/yearly basis. I want to get lifetime bestselling product just ...
Pawan's user avatar
  • 5,846
0 votes
1 answer
298 views

How to filter bestseller collection with a product attribute

You can addAttributeToFilter for product collection; $this->_productCollectionFactory->create()->addAttributeToFilter('att_x', ['eq', $att_x_value]); How can we do this with bestseller ...
iskorum's user avatar
  • 103
0 votes
0 answers
104 views

How to get top 3 most purchased category list in magento 2?

There are modules that get top best selling products list but I want to get the topmost purchased categories list instead of products. Please help me with this. Is there any free module available? ...
Kowsigan Atsayam's user avatar
0 votes
1 answer
100 views

How I can Get Best Seller Products also all catalog products in grid Magento2.3.3?

I want to Get bestseller report in Product first show all filter getting then rest of it in grid. I want in magento2.3.x version in. Any one have idea? Thanks in advance!!
Magento2 Devloper's user avatar
1 vote
1 answer
55 views

Magento 1.9 - CMS page products list error

Display Bestsellers for Specific Magento Categories in CMS page. Following tutorial, https://mercytapscott.com/display-bestsellers-for-specific-magento-categories/ Added following line into cms ...
zus's user avatar
  • 155
2 votes
2 answers
2k views

Magento 2: Change the bestseller report count more than 5 items

How to change the bestseller report items number more than 5 items Magento 2? Thank In Advance..!
Robert Baum's user avatar
1 vote
1 answer
866 views

How Best seller tables gets populated Magento 2?

There are 3 tables related to bestseller in Magento 2 sales_bestsellers_aggregated_daily sales_bestsellers_aggregated_monthly sales_bestsellers_aggregated_yearly How and when these tables get ...
summu's user avatar
  • 847
0 votes
2 answers
901 views

Magento 2.3.2: Sort by Bestselling Minimal results

I am using custom code to implement sort by Best selling on the category page, I have created an around plugin for <type name="Magento\Catalog\Block\Product\ProductList\Toolbar"> <...
Nagamani's user avatar
  • 143
5 votes
0 answers
286 views

Magento2 : Display Bestselling products for last 7 days

I want to display bestselling products for time inetrval 7 days. We can set period by day, month and year $bestSellers = $this->_bestSellersCollectionFactory->create() ->...
Ankita Agrawal's user avatar
2 votes
2 answers
933 views

Magento 2 REST API: Create an API to fetch recently viewed products

I need to create an API for fetching all the recently viewed products. Any suggestions on how to do it?
Fokker's user avatar
  • 375
2 votes
1 answer
2k views

Magento2: How to get Bestseller products collection by category ids(subcategories)

I need to get Bestseller products collection by category ids(subcategories) Thanks
Shomita's user avatar
  • 1,113
1 vote
1 answer
837 views

Magento 2 - How to get recent month's best seller products?

I am get bestseller product using below code but it will not display best seller products of latest month, It will display bestseller product from starting. Can anyone tell me how can I filter best ...
Sanjay Gohil's user avatar
  • 2,200
1 vote
0 answers
92 views

Bestsellers of current month rest api

I need to get bestsellers products for the current month. I use Magento\Sales\Model\ResourceModel\Report\Bestsellers\Collection, but I get bestsellers for all months, I used the following code to get ...
Yomna Mansour's user avatar
2 votes
2 answers
1k views

Best seller sort by option in Magento 2.3.4

I am trying to implement Best seller sort by in category list page. Followed below link, but that is not working in Magento 2.3.4. Magento 2 add Sort By Best Sellers Option on category products ...
Jafar Pinjar's user avatar
  • 1,929
0 votes
4 answers
4k views

How to get only configurable products as a bestseller in Magento 2?

My site contain only configurable products and I want to display bestseller products. I know there are many extension available for bestseller products but i want to display only configurable products....
Sanjay Gohil's user avatar
  • 2,200
0 votes
2 answers
702 views

Magento2 : What is the default table used by Bestsellers in the admin?

In the database, I know that there are 3 aggregated bestseller tables sales_bestsellers_aggregated_daily, sales_bestsellers_aggregated_monthly, sales_bestsellers_aggregated_yearly but which ...
Eubie Aluad's user avatar
5 votes
2 answers
9k views

Magento 2 : How to get the best seller product collection?

I'm trying to get Best Seller Product collection using below code, but it will not display any data $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $productCollection = $...
Mayur Jotaniya's user avatar
1 vote
2 answers
655 views

Get best seller products

I'm trying to get in the home page 12 bestseller products with this code: $_productCollection = Mage::getResourceModel('reports/product_collection') ...
str_lml's user avatar
  • 105
0 votes
2 answers
913 views

Magento 2: get latest Bestseller collection

I am fetching Bestsellers like this: protected $_collectionFactory; \Magento\Sales\Model\ResourceModel\Report\Bestsellers\CollectionFactory $collectionFactory, $this->_collectionFactory = $...
Narendra Vyas's user avatar
0 votes
1 answer
626 views

Best seller collection filter magento2

I am trying to filter Best seller product collection like below. Seems the setOrder is not working. class BestSeller extends \Magento\Framework\View\Element\Template { protected $...
Jafar Pinjar's user avatar
  • 1,929
0 votes
1 answer
82 views

Best Sellers Report

I am having issues where not all items are showing the bestseller block in the admin dashboard. I have narrowed this down to the sales_order_item table. If a product is bought through the frontend ...
SamK's user avatar
  • 71
0 votes
1 answer
1k views

How to get and show the best selling products in magento 2

I wish to show best selling products in homepage.Please provide me a solution to get best selling products and display in home page. Thanks
Jaisa's user avatar
  • 2,596
0 votes
1 answer
38 views

Bestseller Products Collection Not coming zero for current month and day even it is using old collection magento 2?

Here Bestseller Products Collection Not coming zero for current month or day because for this month or day we don't have any orders even it is using old records and showing some number of data in ...
Hitesh Balpande's user avatar
1 vote
1 answer
183 views

category id check

I have passing category id through xml i'm trying to check it in block file.but it did not work foreach ($productCollection as $product) { // get product id $productIds[]=$this-&...
Nismath vi's user avatar
1 vote
1 answer
1k views

How to ignore not avilable products from best seller product collection?

app/code/Test/Demo/Block/Widget/Bestsellerdproduct.php namespace Test\Demo\Block\Widget; class Bestsellerdproduct extends \Magento\Framework\View\Element\Template implements \Magento\Widget\Block\...
Nagaraju Kasa's user avatar
0 votes
0 answers
68 views

Magento 2 : Best Seller are not updated for imported order

I have import orders and generate shipment and invoice, But our Statistics are not updated like best seller, Most Viewed, Order Collection, Dashboard Graph. I have already tried with cron and refresh ...
Ajay Patel's user avatar
  • 1,513
1 vote
0 answers
48 views

How to create best seller page in Magento 2.2

I am trying to create a page where all best sellers products should be displayed and it needs to look like magento's default category page(filters on the left and product grid/list on the right). I ...
user67757's user avatar
1 vote
1 answer
397 views

How can i get viewed product also viewed other product list and also bought product list?

I am using magento ver 1.9.2.3 , how can i get viewed product also viewed product list and also bought product based on my customer list using available options?
zus's user avatar
  • 155
0 votes
1 answer
34 views

Bestselling products data is not gettting saved in its Table.

I am using magento 2.2.0 and I am trying to fetch bestselling products, but the problem is that there is not even a single product in the sales_bestsellers_aggregated_monthly table. As I purchased ...
Ayaz's user avatar
  • 357
0 votes
1 answer
325 views

How to set the order of the query as descending

I have created a query that would allow me to sort my products based on the quantity they have been ordered. But when I print the query, the quantity ordered is coming in Ascending order. I want to ...
Akshay Vasu's user avatar
0 votes
1 answer
119 views

Bestselling Product link in Magento 2.2.0

I have successfully listed the best selling products, but how should I give it a link to open the same product in the product detail page whenever we click on it. The same product should open at the ...
Ayaz's user avatar
  • 357
0 votes
1 answer
342 views

Best Seller Logic - Magento 2

How does Magento 2 pick up the best seller products? What is the logic behind that? (I have the code , but want to know the logic)
Abhijit Sarkar's user avatar
0 votes
2 answers
693 views

How to display "customer based" best sellers list?

I would like to build a custom module, for Magento 2, that will displays a list of products, from the logged in customer's, order history, and sort it by the best selling products. (e.g. most ...
Shay Zalman's user avatar
0 votes
2 answers
512 views

Invalid template file: 'Magehit_Bestsellerproducts::html/bestsellerblock.phtml'

After upgrading to Magento 2.2.0, the Magehit bestseller module is causing the following exception. Can someone please help solving it? Thanks 1 exception(s): Exception #0 (Magento\Framework\...
etacarina's user avatar
0 votes
1 answer
79 views

How to create Bestselller product and Related product and call it on the cms page in magento 2.2.0

I want to display Related products and BestSeller products on two different pages.
Ayaz's user avatar
  • 357
1 vote
1 answer
225 views

How to get bestseller in left column layout in Magento 2.2.0?

I want to display bestseller products just below the compare product list. How can I do that?
Ayaz's user avatar
  • 357
4 votes
1 answer
7k views

Magento 2: insert a "Bestsellers" widget via the Magento admin

I am working on a Magento 2.1.7 shop. To achieve this, I have created a child-theme of Magento Blank. On the home page, I want to insert a "Bestsellers" widget via the Magento admin, like the one ...
Razvan Zamfir's user avatar
6 votes
1 answer
9k views

How to get Best Selling Product Collection in Magento 2 using Object Manager

How can I get "Monthly Best selling product" in Magento 2?
Jaimin's user avatar
  • 2,146
3 votes
1 answer
1k views

How to sort products by bestsellers (e.g. by sales) in Magento 2

these days I've faced a problem: I needed to to sort products by sales. So, first of all I decided to add this field to collection of products and the order it using method $collection->setOrder(). ...
Kyrylo Romantsov's user avatar
1 vote
0 answers
308 views

How to show the bestsellers products of only Completed Orders in the dashboard

I want to show BestSellers Products of only Completed orders in the Dashboard. This is the file that I am editing file path : Mage/Adminhtml/Block/Dashboard/Tab/Products/Ordered.php Code : class ...
prashanth's user avatar
  • 335
1 vote
1 answer
2k views

Magento 2 Best Seller Collection Limit

Magento 2 Best Seller Collection: <?php namespace MPS\Allproduct\Block\Index; class Index extends \Magento\Framework\View\Element\Template { protected $_coreRegistry = null; protected $...
my Test's user avatar
  • 57
1 vote
0 answers
479 views

How to sort product by best seller Magento 2.1 without changing in core file [closed]

I want to get product Collection sort by bestseller product. How to achieve this ?
Rajvi Mehta's user avatar
0 votes
1 answer
1k views

Display bestsellers products on products catalog page

I am displaying bestsellers on a blank layout right now, but I want to use the same layout and template as in product catalog, to be able to switch between grid and layout mode, apply filters, etc. Is ...
Ivan Kayzer's user avatar