Help with Adding Custom Manager and Admin Panel in Aimeos Headless
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- PaoloLegaspi
- Posts: 35
- Joined: 07 Nov 2024, 15:02
Help with Adding Custom Manager and Admin Panel in Aimeos Headless
Hey there,
I’m using Aimeos Headless and trying to add a new table and manager for handling product inquiries. Could you help me out with the steps for setting this up? Also, I’d love to add a panel on the admin page so admins can easily see a list of these inquiries. Any tips or guidance on how to make this happen? Thanks a ton in advance!
I’m using Aimeos Headless and trying to add a new table and manager for handling product inquiries. Could you help me out with the steps for setting this up? Also, I’d love to add a panel on the admin page so admins can easily see a list of these inquiries. Any tips or guidance on how to make this happen? Thanks a ton in advance!
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
If you just want to enable inquiries without payments, set the product price to an empty value. Then, display "on request" or "inquire" instead of the price in the frontend and ordering those products will have an empty price too (NULL, not 0.00).
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- PaoloLegaspi
- Posts: 35
- Joined: 07 Nov 2024, 15:02
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
Hello thanks for the reply,
Just to clarify, we are planning to add a product inquiry feature, mainly for vehicle products. The idea is to let customers ask questions about the product, and when they do, the admin should get an email notification immediately. And we will need a panel view in the admin panel.
Just to clarify, we are planning to add a product inquiry feature, mainly for vehicle products. The idea is to let customers ask questions about the product, and when they do, the admin should get an email notification immediately. And we will need a panel view in the admin panel.
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
So it's a communication channel between customer and shop owner you want to implement?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- PaoloLegaspi
- Posts: 35
- Joined: 07 Nov 2024, 15:02
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
Yes, that's right. The customer submits their inquiry on the specific product vehicle, and the shop owner gets notified via email. Plus, the site owner can view all inquiries directly from the admin panel. We also want to ensure the user's inquiry gets stored in the database for easy reference and tracking.
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
You need a new manager first:
https://aimeos.org/docs/latest/models/create-managers/
Then, you need to implement a new panel in the admin backend:
https://aimeos.org/docs/latest/admin/jq ... nt-panels/
You also need to extend the JSON:API to be able to save inquires. There's no documentation for that yet, so you have to have a look at the code in the aimeos/ai-client-jsonapi package:
https://github.com/aimeos/ai-client-jsonapi
Finally, you need a notification by e-mail which is best done async in a job controller:
https://aimeos.org/docs/latest/cronjobs ... ontroller/
BTW: I know that the Aimeos company is working on a messaging extension too which covers what you want to implement.
https://aimeos.org/docs/latest/models/create-managers/
Then, you need to implement a new panel in the admin backend:
https://aimeos.org/docs/latest/admin/jq ... nt-panels/
You also need to extend the JSON:API to be able to save inquires. There's no documentation for that yet, so you have to have a look at the code in the aimeos/ai-client-jsonapi package:
https://github.com/aimeos/ai-client-jsonapi
Finally, you need a notification by e-mail which is best done async in a job controller:
https://aimeos.org/docs/latest/cronjobs ... ontroller/
BTW: I know that the Aimeos company is working on a messaging extension too which covers what you want to implement.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- PaoloLegaspi
- Posts: 35
- Joined: 07 Nov 2024, 15:02
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
Thanks for the big help!
By the way, could you tell me which messaging extension it is?

Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
They are still working on it and haven't released it yet as far as I know.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

- PaoloLegaspi
- Posts: 35
- Joined: 07 Nov 2024, 15:02
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
Hi,
I’m trying to extend the JSONAPI to handle saving inquiries, but I’m a bit stuck. Does anyone have an example of how to set this up? Also, I’m guessing I need to create a frontend controller for it, right?
Thanks in advance!
I’m trying to extend the JSONAPI to handle saving inquiries, but I’m a bit stuck. Does anyone have an example of how to set this up? Also, I’m guessing I need to create a frontend controller for it, right?
Thanks in advance!
Re: Help with Adding Custom Manager and Admin Panel in Aimeos Headless
You can use the customer manager as reference:
https://github.com/aimeos/ai-client-jso ... andard.php
A frontend controller is helpful if you have a HTML based interface too but it's not required.
https://github.com/aimeos/ai-client-jso ... andard.php
A frontend controller is helpful if you have a HTML based interface too but it's not required.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
