Is there a plug in or easy code paste that I can use to put a button on the view shopping cart page which will allow the customer to empty the shopping cart with one click?
Right now all items must be trashed one at a time.
Thanks
Jim
Is there a plug in or easy code paste that I can use to put a button on the view shopping cart page which will allow the customer to empty the shopping cart with one click?
Right now all items must be trashed one at a time.
Thanks
Jim
You could use something like:
Somewhere in your override of the shopping_cart template file ...Code:<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=empty_cart'); ?>">EMPTY CART HERE</a>
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thanks for that.
I put it in the tpl_shopping _cart_default.php file just to test it.
at line 130 just above the shopping cart buttons, it displays between the continue shopping and check buttons which is fine.
But when clicked the page refreshes but the shopping cart does not empty.
I'm not a php programmer, any help would be appreciated.
Thanks
Jim
I am not sure why this wouldn't work for you ... I just tested it on mine at the same location in the code and it works fine ...
Do you have an URL that we could perhaps peek at?![]()
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Well I do and I don't >smile< I was testing it on the local machine in xamp before putting it on the live site.
But if the live site helps the url is
www.ernest-education.com/eecst/
Is there some aspect of xamp that will not allow this kind of thing to be tested locally?
I put it on the live site, didn't work there either
I'll leave it there so you can look at it, I really appreciate the help, thanks
Jim
Something is off ... Neither your link nor manually adding it in the browser will allow this to work ...
I'd say switch to the Classic Template to see if it is something in your template but you did not use the templates and overrides ...
One test you might do is create a test database with a test site with the demo products and see if it works straight from the URL ...
It appears that something is off on your site but I cannot see it ...
Another check is to use something like Beyond Compare from scootersoftware.com and compare a clean Zen Cart with your site and see if there is something missing ...
I have tried this in several copies so far, and have not run into an issue with it not working yet ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I'll work on it with your suggestions, but this is the classic template in use.
I didn't understand the override concept, still don't in full, so I am not using overrides - I know that will cause problems when I upgrade and I'm working on understanding that, and implementing the override concept (locally). So what is being edited is the classic template as it unpacks from the zip package.
Thanks for trying
Jim