joe_g Posted December 21, 2022 Share Posted December 21, 2022 Is there a... <form method="post" action="<?= $config->urls->root ?>padloper/empty/"> ...or similar call I can make? 1 Link to comment Share on other sites More sharing options...
joe_g Posted December 21, 2022 Author Share Posted December 21, 2022 or perhaps something like...? $c = $padloper->getCart(); $c->emptyCart(); Link to comment Share on other sites More sharing options...
kongondo Posted December 21, 2022 Share Posted December 21, 2022 <?php namespace ProcessWire; // empty the whole cart $padloper->cart->emptyCart(); Link to comment Share on other sites More sharing options...
joe_g Posted December 21, 2022 Author Share Posted December 21, 2022 works, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now