Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module Not Working Magento Version 2.4.4 p-4 #8

Open
Rorke-Melville opened this issue Oct 28, 2024 · 0 comments
Open

Module Not Working Magento Version 2.4.4 p-4 #8

Rorke-Melville opened this issue Oct 28, 2024 · 0 comments

Comments

@Rorke-Melville
Copy link

Rorke-Melville commented Oct 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant