• Resolved Boris

    (@ispacecrusader)


    When I check the box that 1 item max can be purchased on the product page, the + and – buttons do not show up in the shopping cart. While this makes sense for the +, it also poses a problem; what if the visitor decides that he wants to remove that item from the shopping cart? There is no – button to do so.
    Is there a setting I’m overlooking, or do you have another solution for this?

    https://www.ads-software.com/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter Boris

    (@ispacecrusader)

    Nevermind,
    I just solved it.
    By adding

    add_filter( 'woocommerce_is_sold_individually', 'wc_remove_all_quantity_fields', 10, 2 );
    function wc_remove_all_quantity_fields( $return, $product ) {
        return( false );
    }

    to functions.php in my theme, and activating stock and setting the stock amount on the product page, I can remove it, as well as add to the amount as long as it doesn’t go beyond the amount in stock. Perfect!

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with "buttons_added"’ is closed to new replies.