Insert product into catalog right after creating it

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!
lucadambros
Posts: 44
Joined: 24 Jun 2019, 14:46

Insert product into catalog right after creating it

Post by lucadambros » 01 Oct 2019, 10:32

Hi,

What I want:
1 - I have an array with catalog item ids
2 - I create the product
3- The product is automatically added to the catalog item I have in the array.

Example:
The array has the ids: 1, 2.
I create the product and it will be displayed into the catalog item 1 and 2.

Is that possibile?
What do I have to override?

I have laravel 5.8 and Aimeos 2019.07

Thank you very much

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

Re: Insert product into catalog right after creating it

Post by aimeos » 01 Oct 2019, 11:44

In the admin interface or within your self written code?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

lucadambros
Posts: 44
Joined: 24 Jun 2019, 14:46

Re: Insert product into catalog right after creating it

Post by lucadambros » 01 Oct 2019, 11:55

Written code.

I think I have to override the function "save" inside

Code: Select all

 ext/ai-admin-jqadm/admin/jqadm/src/Admin/JQAdm/Product/Standard.php

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

Re: Insert product into catalog right after creating it

Post by aimeos » 01 Oct 2019, 12:07

You can use the product category subpart as reference:
https://github.com/aimeos/ai-admin-jqad ... #L382-L404
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

lucadambros
Posts: 44
Joined: 24 Jun 2019, 14:46

Re: Insert product into catalog right after creating it

Post by lucadambros » 01 Oct 2019, 13:13

Great as always! Thank you very much!
Aimeos product is fantastic

Post Reply