How to Add product manualy from custom controller

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!
awaidqureshi
Posts: 86
Joined: 12 Jan 2019, 15:17

How to Add product manualy from custom controller

Post by awaidqureshi » 02 Apr 2019, 11:19

We want to add product from custom controller with product category and attributes(options) ,media with type
Please tell us step by step guide to do that.
We don't want to use csv file.

Thanks .

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

Re: How to Add product manualy from custom controller

Post by aimeos » 03 Apr 2019, 10:16

The product panel of the admin interface is a good way to see how you can implement that:
https://github.com/aimeos/ai-admin-jqad ... dm/Product

Check the save() and fromArray() methods, e.g. in
- https://github.com/aimeos/ai-admin-jqad ... d.php#L317

You don't have to use the fromArray() methods of the items and you can use the set*() methods instead, e.g.
https://aimeos.org/api/2018/class-Aimeo ... Iface.html
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply