Home Forums WoodMart support forum How to remove quantity selector from add to cart button

How to remove quantity selector from add to cart button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #581569

    ottuhr.com
    Participant

    I would like the button to be full width and only display the add to cart button.

    Attachments:
    You must be logged in to view attached files.
    #581700

    Hello,

    Sorry I am unable to visit your site due to critical error. You want to hide the quantity selector from the whole site or in the mobile device only.

    Best Regards.

    #581926

    ottuhr.com
    Participant

    the entire site please

    #582041

    Hello,

    Try to add the following PHP code snippet to the child theme in the functions.php file.

    add_filter( 'woocommerce_is_sold_individually', 'my_remove_quantity_fields', 10, 2 );
    function my_remove_quantity_fields( $return, $product ) {
        return true;
    }

    Best Regards.

    #590375

    ottuhr.com
    Participant

    this worked, but it now only allows for one product to be added. I was hoping that it would allow the user to click the add to cart button again and the quantity would be 2.

    #590495

    Hello,

    Sorry but there is no option in Theme Settings available for that.

    It requires customizations and this is beyond our limitations and support policy.

    Regards.
    Xtemos Studios

Viewing 6 posts - 1 through 6 (of 6 total)