Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Remove Product From Cart Button

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
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.
I discovered why previous versions didn't use a submit input for the trash can. If the customer changes the quantity on any item in the cart and then hits Enter the first item in the cart gets deleted. This doesn't happen if they change the quantity and hit the submit button. I've restored the link around the trash can but simplified it somewhat and eliminated the need to define a language item by reusing the title for the remove column as the alt text for image.
I've simplified the installation greatly by using the tep_image_submit function with parameters taken from the old checkbox and the alternate text taken from the column heading. With this version you change one line in shopping_cart.php and add the image to your images folder and you are done. The cart update button is needed unless you install a contribution to automatically update the cart so instructions for removing the button are not found here.
This change ensures that if you remove the last item in the cart that you are redirected to "Your cart is empty" rather than being left with an empty cart table. Also helps keep the URL shown in the browser a bit cleaner by not leaving the customer on "shopping_cart.php?action=remove_product..."

This version does not include the "Remove Update button" instructions.

   Posted on: 05/17/2009     See contribution details Request Installation with Paid service