Page 1 of 2

Need to add new functionality

Posted: 16 May 2017, 10:47
by VickoNovianto
I use Aimeos 2017.04 with PostgreSQL 9.6.2 and Laravel 5.4 with PHP 7.1.1. I use Windows 8 Pro. I want to add new functionality to the existing demo app, such as :
  1. 1. Create rating and review
  • 2. View product status(such as delivery tracking status)
  • 3. Create seller account
  • 4. Create product recommendation
  • 5. Create wishlist
  • 6. Display products from many sellers
What are the steps that I have to do to add new functionality to the existing demo app?

Re: Need to add new functionality

Posted: 16 May 2017, 15:31
by aimeos
VickoNovianto wrote:
  1. 1. Create rating and review
You will have to create a new table for that including a corresponding item/manager to save/retrieve the data:
https://aimeos.org/docs/Developers#Managers_and_items
In the frontend, you need to display that information in an own subpart:
https://aimeos.org/docs/Developers/Html ... w_subparts

As we are also interested in this, maybe we can join forces to implement that together :-)
VickoNovianto wrote:
  • 2. View product status(such as delivery tracking status)
The ordered products in the mshop_order_base_product table already contains a status column for that. You only have to display this information where you want (emails, MyAccount, etc.)
VickoNovianto wrote:
  • 3. Create seller account
You can manage accounts using the Laravel infrastructure. Seller accounts are admin accounts that must be limited to their own site.
VickoNovianto wrote:
  • 4. Create product recommendation
The Amazon like "Customers also bought" is already implemented. You only need to run the aimeos:jobs task for that
VickoNovianto wrote:
  • 5. Create wishlist
There's already the list of favorite products which you can relabel. Otherwise, simply add a new customer list type for the product domain called "wishlist" and a subpart/component for the MyAccount area.
VickoNovianto wrote:
  • 6. Display products from many sellers
Use that configuration option for this:
https://aimeos.org/docs/Configuration/C ... /sitecheck

Re: Need to add new functionality

Posted: 04 Jun 2019, 06:48
by superscotty19
+1 for ratings/reviews ... any progress/updates?

Re: Need to add new functionality

Posted: 06 Jun 2020, 16:13
by SteveCo
I would be very interested in this as well.

Re: Need to add new functionality

Posted: 08 Oct 2020, 11:36
by Sergunik
+1 for "ratings/reviews"
Any updates?

Re: Need to add new functionality

Posted: 09 Oct 2020, 09:06
by aimeos
Rating and reviews are part of the aimeos/aimeos-laravel:2020.10.x-dev package released yesterday :-)

Re: Need to add new functionality

Posted: 13 Nov 2020, 10:58
by IOU42
Great that this feature is now available!
But before live implementation, I have tested it locally and have some troubles with the front end:
- the review scores (stars) are being added, i.e. when 2 customers score 4 stars for a product: the front end shows 2 x 4 => 8 stars in stead of the average (8/2=4). ;)
- when a customers adds a score without a description (note), the scripts errors out upon submission

Does this have to do with my settings, or still a work in progress on this further great new feature?

Have a good day!

Re: Need to add new functionality

Posted: 16 Nov 2020, 09:33
by aimeos
Do you have screenshots or more information (stacktraces, etc.) of the behavior you describe?

Re: Need to add new functionality

Posted: 24 Nov 2020, 10:51
by IOU42
Hi, sorry for delay. Please see the screenshots below:
  • rates being added in stead of average (1 customer buying same product twice):
    rating problem 1.JPG
    rating problem 1.JPG (16.63 KiB) Viewed 3269 times
  • review error when no comment is supplied (from the customer profile area)
    add review without comment error.JPG
    add review without comment error.JPG (59.14 KiB) Viewed 3268 times
  • when clicking on below rate in product details tab the api code is returned in stead of html page:
    product detail rating link - resulting in api code.JPG
    product detail rating link - resulting in api code.JPG (13.74 KiB) Viewed 3268 times
Also can you please let me know (or refer to documentation) in which tables the review data is stored? After manually deleting a record in table 'mshop_review' the related review remains visible, also after clearing the aimeos cache.

Thank you in advance.

Re: Need to add new functionality

Posted: 24 Nov 2020, 11:37
by aimeos
Thanks, your screenshots have been very helpful!
The rating value and the error when no comment is added have been fixed. You can test if you execute:

Code: Select all

composer req aimeos/aimeos-core:2020.10.x-dev aimeos/ai-controller-frontend:2020.10.x-dev
Please keep in mind that you have to add a new review until the rating is recalculated.

Regarding the API code, please check if the JS code for handling loading more reviews is missing or generates and error in the browser console.