Need to add new functionality

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: Need to add new functionality

Post by IOU42 » 26 Nov 2020, 08:34

Thanks for that!

The review now indeed accepts empty comment fields, great.

The ratings are still being added on my installation.
Maybe it is because I upgraded to 2020.10.x-dev from a prior version in stead of starting a fresh install.
  • Table mshop_review:
    ratings added.jpg
    ratings added.jpg (42.39 KiB) Viewed 1069 times
  • Resulting rating on product page for prod ref id 8 (rate shows 2 x 5)
    rating on producttab.JPG
    rating on producttab.JPG (15.21 KiB) Viewed 1069 times
Cheers, Marc

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Need to add new functionality

Post by aimeos » 27 Nov 2020, 13:16

Please keep in mind that you have to add a new review until the rating is recalculated.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

IOU42
Posts: 26
Joined: 25 Jun 2016, 21:10

Re: Need to add new functionality

Post by IOU42 » 30 Nov 2020, 13:00

Hello again, and sorry to be a pain... but I did refresh the review and added new, but still get the rate sum in stead of average?
Please see attachments below where I added another test rating: the 3 ratings now total up to 12 stars...
  • mysql table:
    table_mysql.jpg
    table_mysql.jpg (36.46 KiB) Viewed 1047 times
  • Product view:
    rating-after-new-review.JPG
    rating-after-new-review.JPG (17.24 KiB) Viewed 1047 times
On the Aimeos demo site all product just have 1 review, so I cannot determine if it is just on my installation ;)

Thanks

System info:
Running Aimeos Laravel: 2022.10
Laravel Framework 9.52
Almalinux
PHP 8.1

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Need to add new functionality

Post by aimeos » 30 Nov 2020, 13:33

Did you updated your installation using:

Code: Select all

composer req aimeos/ai-controller-frontend:2020.10.x-dev aimeos/ai-admin-jqadm:2020.10.x-dev
Tested it locally and got the average value as expected, not the sum
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply