Forums / General Questions / Clear Shopping cart

Clear Shopping cart

Locked

Views: 2,275

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
28 Mar 2010, 4:10 PM
#1
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

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

28 Mar 2010, 7:32 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Clear Shopping cart

You could use something like:

<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!

1 Apr 2010, 12:54 PM
#3
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

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

1 Apr 2010, 1:06 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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? :unsure:

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!

4 Apr 2010, 12:39 PM
#5
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

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
https://www.ernest-education.com/eecst/

Is there some aspect of xamp that will not allow this kind of thing to be tested locally?

4 Apr 2010, 12:56 PM
#6
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

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

4 Apr 2010, 2:35 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

4 Apr 2010, 3:32 PM
#8
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

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