Community Add-Ons

Maintainers: vsonline
Add file to this package
Top » Features

Remove Product From Cart Button
for osCommerce Online Merchant v2.2

Firstly, i'd like to thank LAMPB for his Clear Cart mod, thanks to his mod, I worked out how to implement this correctly, I've also used your text layout!

What does this contribution do?
==============================

This contribution adds a "Remove Product" button (the familiar rubbish bin) that once clicked removes the selected product from the cart. It looks far more professional then the 'click the checkbox then press the update button' route.

Its very easy to install, just edit some lines on a few files and off you go. To see this in action have a look at this site that is being work on: http://www.theadvancedskincareclinic.com/index_.php

please note: this is still in testing phase hence the main file is index_.php and not index.php. Feel free to provide feedback or any comments!

Legend:  Download   Report

Expand All / Collapse All

Some custom icons Stephan (VS) 7 Oct 2009  

Just some ne icons to use if like me you prefer some transperancy & .png files.

To use change

/shopping_cart.php
"
'params' => 'class="productListing-data" valign="center"',
'text' => '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . 'bin1.jpg', TABLE_HEADING_REMOVE, 16, 22) . '</a>');
"
to
"
'params' => 'class="productListing-data" valign="center"',
'text' => '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'action=remove_product&products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . '/icons/bin10b.png', TABLE_HEADING_REMOVE, 67, 68) . '</a>');
"
and just replace
"
/icons/bin10b.png'
"
with wherever & whatever file you want to use.

Remove Product From Cart Button wdepot 6 Oct 2009  
Remove Product From Cart Button wdepot 1 Oct 2009  
Added tep_redirect back to shopping cart krnl 17 May 2009  
IMPORTANT note to update below charityfirst 5 May 2006  
Remove Shoping cart Update Button charityfirst 5 May 2006  
Remove Product Button Alignment lildog 26 Apr 2006  
Bug Fix Update vsonline 26 Apr 2006  
Remove Product From Cart Button vsonline 20 Apr 2006