Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Creating "empty cart" button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-01-2005, 07:45 PM
 
brendanhodge brendanhodge is offline
 

Newbie
  
Join Date: May 2005
Posts: 1
 

Default Creating "empty cart" button

My version of X-Cart is a little over a year old now (and I've done so many customizations I've afraid to upgrade) so maybe this is a standard feature now, but I don't have a "empty cart" button in the shopping cart, if the customer wants to dump everything and start fresh. (The store is for a company that sells nick-nacks wholesale, so customers sometimes have 50+ line items on an order.)

I see that there is a function in the func.php file for emptying the cart. Does anyone have any quicky advice on setting up an "empty cart" button, or is it a "hack it out as best you can" kind of situation?

--Brendan
Reply With Quote
  #2  
Old 05-02-2005, 04:27 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Here's the button code from the 4.0.13 cart.tpl:

Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_clear_cart href="cart.php?mode=clear_cart"}

You should download the newest version of X-Cart so that you can check out cart.php and get the appropriate function in there.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:06 PM.

   

 
X-Cart forums © 2001-2020