Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Clear Shopping cart

    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

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Clear Shopping cart

    You could use something like:
    Code:
    <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, 'action=empty_cart'); ?>">EMPTY CART HERE</a>
    Somewhere in your override of the shopping_cart template file ...
    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!

  3. #3
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Clear Shopping cart

    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

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Clear Shopping cart

    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!

  5. #5
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Clear Shopping cart

    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?

  6. #6
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Clear Shopping cart

    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

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Clear Shopping cart

    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!

  8. #8
    Join Date
    Feb 2010
    Location
    Texas - The Republic
    Posts
    27
    Plugin Contributions
    0

    Default Re: Clear Shopping cart

    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

 

 

Similar Threads

  1. Clear/Empty the Cart Mod
    By samhughey in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2010, 03:47 PM
  2. Checkout does not clear the shopping cart
    By generalexotics in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Dec 2009, 06:08 AM
  3. Clear All Items from Shopping Cart
    By creative in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Mar 2008, 05:38 PM
  4. Clear all items in the cart
    By mcb in forum Managing Customers and Orders
    Replies: 2
    Last Post: 19 Jul 2007, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg