You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have installed the module by downloading it and then enabling it. I ran the commands and got no errors. I then ran the indexer command:
"bin/magento indexer:reindex magehackathon_bestsellerindex" and got no errors. I then ran the command:
"bin/magento magentohackathon_bestsellerssorting:generatebestsellers" and got no errors. I then checked my catalog page and the sort by "Bestseller option" is there but it orders the products by SKU. I reran both commands but still had no luck. I have checked my database and the "bestseller_order" attribute_code is in my eav_attribute table. I then edited the SimpleProductsAggregatedReportDataProcessor.php file to log the bestseller order like this:
"$this->logger->info("Updating Product ID: {$item->getProductId()}, Bestseller Order: {$item->getRatingPos()}, Store ID: {$item->getStoreId()}");"
and then reran the command:
"bin/magento magentohackathon_bestsellerssorting:generatebestsellers" and then checked my system.log and all of my products have the value 0 for Bestseller Order. The system.log file looks like this:
"[2024-10-28T13:00:29.408526+00:00] main.INFO: Updating Product ID: 2037, Bestseller Order: 0, Store ID: 0 [] []"
for all my products. Can someone please help me or suggest ways of fixing or update the module to get it working. I am running magento version 2.4.4 p-4 and all my products are simple products. Any advice or correction would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I have installed the module by downloading it and then enabling it. I ran the commands and got no errors. I then ran the indexer command:
"bin/magento indexer:reindex magehackathon_bestsellerindex" and got no errors. I then ran the command:
"bin/magento magentohackathon_bestsellerssorting:generatebestsellers" and got no errors. I then checked my catalog page and the sort by "Bestseller option" is there but it orders the products by SKU. I reran both commands but still had no luck. I have checked my database and the "bestseller_order" attribute_code is in my eav_attribute table. I then edited the SimpleProductsAggregatedReportDataProcessor.php file to log the bestseller order like this:
"$this->logger->info("Updating Product ID: {$item->getProductId()}, Bestseller Order: {$item->getRatingPos()}, Store ID: {$item->getStoreId()}");"
and then reran the command:
"bin/magento magentohackathon_bestsellerssorting:generatebestsellers" and then checked my system.log and all of my products have the value 0 for Bestseller Order. The system.log file looks like this:
"[2024-10-28T13:00:29.408526+00:00] main.INFO: Updating Product ID: 2037, Bestseller Order: 0, Store ID: 0 [] []"
for all my products. Can someone please help me or suggest ways of fixing or update the module to get it working. I am running magento version 2.4.4 p-4 and all my products are simple products. Any advice or correction would be greatly appreciated.
The text was updated successfully, but these errors were encountered: