No errors, but I don’t know if it works because I am unable to turn the rating system on. Not sure if RatingSummary is the right field. Does anyone know what “Best Value” (position) means? Could that be the rating summary? If so, then sort by rating is already available. I am wondering what the default secondary sort is.
It didn’t give any errors, and it sorted differently than when I choose Name. I tried to add some ratings to make sure it was working, but somehow the ratings table isn’t printed out when I click on Review Product. I get the review part, but not the rating part. Looking in the template (app/design/frontend/default/YOURNAME/template/review/form.phtml) I see this check before printing the box of rating stars
I have the initial set of ratings (which I think is the things the votes are counted for like Price, Quality, Value), so I don’t see why it’s not printing.
Anybody have any ideas?
UPDATE:
I got the ratings to show up. They have a visibility field that either got changed to unselected when I edited the name or it never defaulted to my one store. Anyway, once the visibility is set, I could enter a star rating with the review on a product. I did and tried the sort, but it did not sort that one product to the top (or bottom...I clicked on the arrow and nothing changed).
Best option yet. Can be accomplished by applying this change to a copy of the file in your own custom theme. E.g. app/design/frontend/[theme-base]/[theme]/template/catalog/product/list/toolbar.phtml
This allows for simple upgrades without having to return and reapply the change.
It didn’t give any errors, and it sorted differently than when I choose Name.
Again looking at something totally different, I saw that I was on the right track for this except that rating_summary is an array, so it won’t sort that correctly. If someone can figure out how to indicate an element of rating_summary, it might work. Here’s what I was reading when I found this tidbit: http://activecodeline.com/show-products-on-sale-in-magento/