WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Disable +/- sign next to product quantity? Also disable in cart. (6 posts)

  1. FishFush
    Member
    Posted 1 year ago #

    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!

  2. bheadrick
    Member
    Posted 1 year ago #

    you could use css to hide it like so:

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

  3. FishFush
    Member
    Posted 1 year ago #

    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?

  4. FishFush
    Member
    Posted 1 year ago #

    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?

  5. kat99
    Member
    Posted 11 months ago #

    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?

  6. bheadrick
    Member
    Posted 10 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.