So, got an email from a potential client who wants to be able to make star ratings on a per product basis from within the admin;
I will like only myself (the admin or owner of the website) to grade the items that I’m selling with stars or with numbers. Let’s say that i have 5 stars icons and if the item is in good condition I will light up or show the 5 stars if it not so good maybe only 4 stars, and so on
So, I came up with a simple system.
In the Admin area;
As the only star rating is made by the shop owner, the only database entry is a single vote (0 or 1 or 2 or 3 or 4 or 5), so an “int” added to the products table is quite enough.
In the shop side;
Draw the value from the database and show a nice graphic.
Files changed were;
- admin/categories.php (and language file)
And a few new files to show the stars.
And the cost for all this was just $75, and the time to get it from initial email to finished and working was less than a couple of hours. As you can see, it is sometimes preferable to pay a little amount to someone who can easily come up with code, than to waste a day or two trying to work out how to do something yourself.