Contributions
Clear Cart Button In Shopping Cart
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.
| 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 //-->
| LAMPB | 20 Mar 2006 |
Note: Contributions are used at own risk.
