Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove Button Instead Of Checkbox


cameronbailey

Recommended Posts

Does anyone know how to make a remove button for each individual product in the cart, instead of having a checkbox?

 

I know where to place the code, I'm just not sure what to use.

 

This is the code for an update button:

tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART)

 

I figure I could write my own for the remove button, but I'm not sure what that code references. What file should I be adding to or modifying to make my own remove function?

Link to comment
Share on other sites

The image and code is already in your shopping_cart.php. The box is next to the product image and the update button is below the shopping cart.

 

You just need to make your images/buttons/button_update_cart.gif smaller and move this code up next to where it calls for the check box around line 113

 

 

<?php echo tep_image_submit('button_update_cart.gif', IMAGE_BUTTON_UPDATE_CART); ?>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...