WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Disable /- sign next to product quantity? Also disable in cart.

Disable /- sign next to product quantity? Also disable in cart.

  • I make and sell one-of-a-kind products, so having the quantity selector and field-box next to each product makes it seem like they come in larger amounts:

    See image1: http://s9.postimage.org/g0ooypxb3/afasdfadsfasdf.png

    I put the stock quantity of each one as ‘1’, so the +/- quantity selector doesn’t work, but it is still visible and ruins the message of my store.

    It also appears in the cart (I guess the minus sign isn’t so bad, but the plus is) — but I would prefer to have it as a static fiImage:

    See image2: http://postimage.org/image/eml92694j

    Any ideas how to disable them? Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • you could use css to hide it like so:

    .quantity .plus, .quantity .minus{display:none}

    Thanks!

    Do you think it’s safe to also hide the field with the number in it?

    I see there’s a CSS class called “buttons_added” applied to it, but I can’t find it in any of the stylesheets. Any idea what it is?

    Here’s the code if anyone needs it:

    div.summary form.cart div.quantity {display:none;} /* custom CSS to remove quantity selector from product page */
    
    section.entry table tbody tr.cart_table_item td.product-quantity div.quantity input.minus, section.entry table tbody tr.cart_table_item td.product-quantity div.quantity input.plus {display:none;} /* remove quantity selector but leave field on cart page */

    Look good?

    Hi
    I just need to hide the plus and minus , but leave the quantity box
    I see the code by bheadrick above but have no idea what to do with it.

    Help anyone?

    it’s css. you can put it in your theme’s style.css (might want to make a child theme for that) There’s a plugin that makes it easier.

    Some nicer themes have a place for custom css in the theme options. If yours does, put it there.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable /- sign next to product quantity? Also disable in cart.’ is closed to new replies.
Skip to toolbar