![]() |
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 |
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. |
All times are GMT -8. The time now is 10:56 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.