Page 1 of 1

How to remove all items from basket

Posted: 25 Sep 2019, 19:31
by nemchus89
Hello, can you help me add a button for user to delete all items in the basket at once?
Thank you in advance...

Laravel - 5.7.28
Aimeos - 2018.07
PHP - 7.1.3

Re: How to remove all items from basket

Posted: 26 Sep 2019, 07:53
by aimeos
1.) Add code for the new "clear" value for b_action
2.) Call \Aimeos\Controller\Frontend\Factory::createController( $context, 'basket' )->clear()
3.) Create a pull request on Github with your changes (https://github.com/aimeos/ai-client-html)