Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#4199 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. 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?
#4202 by aimeos
16 May 2017, 15:31
VickoNovianto wrote:
    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_frontend/Create_new_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/Core/mshop/common/manager/sitecheck