Community Add-Ons

Maintainers: LAMPB
Add file to this package
Top » Features

Clear Cart Button In Shopping Cart
for osCommerce Online Merchant v2.2

This contribution adds a "Clear Cart" button in the shopping cart which allows to... guess what?
... clear the cart meanning remove all items from the cart. So you don't need to click-check each
item to delete them all.

Legend:  Download   Report
Expand All / Collapse All
Clear Cart Button In Shopping Cart v2.0 by faaliyet (FullPackage) faaliyet 18 Aug 2008  


Clear Cart Button In Shopping Cart v2.0 by faaliyet (FullPackage)

-Added language support.
-Codes are modified/changed.

Change Logs

1)in catalog/includes/languages/english.php file add new line before ?>

define('CLEAR_CART',' To clear reservation list? ');


2)In catalog/shopping_cart.php file

Find:


<td class="main"><a href="<?php echo tep_href_link(basename($PHP_SELF), 'action=clear_cart', 'NONSSL');?>" onclick="var x=confirm(' To empty stand of purchases? '); if (x==false) { return false; }"><?php echo tep_image_button('button_clear_cart.gif', IMAGE_BUTTON_CLEAR_CART)?></a></td>


And Replace:

<!-- BOF: Clear Cart v2.0 by faaliyet //-->
<td class="main"><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART, 'action=clear_cart', 'SSL') . '" onClick="var x=confirm('' . CLEAR_CART . ''); if (x==false) { return false; }">' . tep_image_button('button_clear_cart.gif', IMAGE_BUTTON_CLEAR_CART); ?></a></td>
<!-- EOF: Clear Cart v2.0 by faaliyet //-->

Clear Cart Button In Shopping Cart(alert confirm) apopular 31 May 2006  
Clear Cart Button In Shopping Cart LAMPB 20 Mar 2006