4 / 4
Mar 2011

Does anyone know how to remove the 'remove' check box?



I've tried: jQuery("#remove_array[0]").remove();



which doesn't work.



Any ideas?

Thanks

  • created

    Mar '11
  • last reply

    Mar '11
  • 3

    replies

  • 1.1k

    views

  • 3

    users

It looks like this should do the trick:



jQuery('input[type="checkbox"]').remove();



However, buyers who are unable to figure out how to remove an item will probably just abandon their order entirely rather than placing their order anyway with an item they don't want. If you could explain why you want to do this, perhaps we could suggest another approach less likely to affect your conversion rate. For instance, we know of sellers who use custom javascript to auto-remove an item from a buyer's cart when another item it's dependent on is removed.

Thanks for the reply.



I only have one product, so remove doesn’t really make sense.



I do however offer a discount depending on how may ‘users’ you purchase, this is why I’m using a basket rather than a button (to allow the user to input the amount of ‘user’)



In your opinion is this the best approach?



Thanks

If you just have one product and need our cart solely to apply discounts then you shouldn't have problems getting rid of the remove items checkbox using the code Guru provided above. :slight_smile: