modify item

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!
JuanMRuiz
Posts: 5
Joined: 23 Apr 2020, 05:59

modify item

Post by JuanMRuiz » 28 Apr 2020, 21:33

Hello a query and I have obtained an item
$ manager = \ Aimeos \ MShop :: create ($ context, 'customer');
$ item = $ manager-> getItem ($ id);

What I want is to be able to modify some data of the item and save it. Slaudos and thanks

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

Re: modify item

Post by aimeos » 29 Apr 2020, 17:03

Here you can find the methods for modifying the item:
https://github.com/aimeos/aimeos-core/b ... /Iface.php

Afterwards, save the item using:

Code: Select all

$manager->saveItem( $item );
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply