How to remove all items from basket

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
nemchus89
Posts: 1
Joined: 25 Sep 2019, 19:22

How to remove all items from basket

Post by nemchus89 » 25 Sep 2019, 19:31

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

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

Re: How to remove all items from basket

Post by aimeos » 26 Sep 2019, 07:53

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)
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

selensmith
Posts: 2
Joined: 06 Dec 2019, 17:57

Re: How to remove all items from basket

Post by selensmith » 06 Dec 2019, 18:01

nemchus89 wrote:
25 Sep 2019, 19:31
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
Hi buddy, can you confirm if lower version of PHP also get the work done?

Regards,
Selen Smith MyCFAVisit TellGameStop
Forum is Love

Post Reply