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!
VickoNovianto
Posts: 7
Joined: 16 Apr 2017, 00:35

Need to add new functionality

Post by VickoNovianto » 16 May 2017, 10:47

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?

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

Re: Need to add new functionality

Post by aimeos » 16 May 2017, 15:31

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
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

superscotty19
Posts: 95
Joined: 13 May 2019, 08:09

Re: Need to add new functionality

Post by superscotty19 » 04 Jun 2019, 06:48

+1 for ratings/reviews ... any progress/updates?

SteveCo
Posts: 3
Joined: 06 Jun 2020, 16:11

Re: Need to add new functionality

Post by SteveCo » 06 Jun 2020, 16:13

I would be very interested in this as well.

Sergunik
Posts: 12
Joined: 16 Mar 2018, 14:14

Re: Need to add new functionality

Post by Sergunik » 08 Oct 2020, 11:36

+1 for "ratings/reviews"
Any updates?

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

Re: Need to add new functionality

Post by aimeos » 09 Oct 2020, 09:06

Rating and reviews are part of the aimeos/aimeos-laravel:2020.10.x-dev package released yesterday :-)
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 » 13 Nov 2020, 10:58

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!

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

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

Re: Need to add new functionality

Post by aimeos » 16 Nov 2020, 09:33

Do you have screenshots or more information (stacktraces, etc.) of the behavior you describe?
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 » 24 Nov 2020, 10:51

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 3263 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 3262 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 3262 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.

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

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

Re: Need to add new functionality

Post by aimeos » 24 Nov 2020, 11:37

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.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply