Remove items from cart if quantity is zero

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
cnoelker
Advanced
Posts: 140
Joined: 20 Feb 2016, 18:21

Remove items from cart if quantity is zero

Post by cnoelker » 26 Jun 2020, 12:35

Hello,
is there a way to configure aimeos so that the user may enter zero (0) as a quantity? Then, the action should be the same as if the user clicked on the Minus button, i.e. delete the item from the cart.

Currently, this results in an error message that no price could be determined for quantity 0.

Claudia

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

Re: Remove items from cart if quantity is zero

Post by aimeos » 03 Jul 2020, 14:01

Best option would be to remove the product here from the basket if the quantity is 0:
https://github.com/aimeos/ai-controller ... d.php#L286

If you create a PR, we will be happy to merge it :-)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply