MODIFY PRODUCT BASKET
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- marlonsamot
- Posts: 9
- Joined: 13 Apr 2021, 12:26
MODIFY PRODUCT BASKET
Hi devs, can i modify or update product in the basket using controller? Please help newbie here. Thanks
Re: MODIFY PRODUCT BASKET
Yes, use:
$position is the key returnd by:
Method description:
https://github.com/aimeos/ai-controller ... e.php#L111
Code: Select all
\Aimeos\Controller\Frontend::create( $context, 'basket' )->updateProduct( $position, $quantity );
Code: Select all
\Aimeos\Controller\Frontend::create( $context, 'basket' )->get()->getProducts();
https://github.com/aimeos/ai-controller ... e.php#L111
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star