How to disabled add to cart quantity input

Solved4 replies2 participantsUpdated by ecommercedev

  • Avatar: ecommercedev
    ecommercedev
    Participant

    Hi,
    I am trying to disable quantity input next to add to cart button. How do I do that. I found on some other topic a screenshot where you show how to disable it https://prnt.sc/3rdYNPOTf0U9 but I cannot see this option in my version.

    4 Answers

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Hello, @ecommercedev,

    Thank you for contacting us and for using XStore.

    We understand that you wish to disable the ‘Add to Cart’ quantity input on your shop/archive pages. Please follow the steps below to achieve this:

    1. Navigate to Xstore on your dashboard.
    2. Select ‘Theme Option’.
    3. Proceed to ‘Woocommerce’.
    4. Click on ‘Shop’.
    5. Choose ‘Product Design’.
    6. Select ‘Product Content Elements’.
    7. Check the ‘Add to Cart’ button.
    8. You will then see the ‘Add To Cart With Quantity’ option.
    9. Turn this option OFF.
    10. Click ‘Publish’ to save your changes.

    Please refer to the attached image for a visual guide on how to perform these steps. https://imgur.com/oVviME8

    We trust that these instructions will effectively resolve your issue. Should you require further assistance, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Avatar: ecommercedev
    ecommercedev
    Participant

    Hi,

    Thank you for your quick reply.

    I was not specific enough, sorry about that. I was asking my question in context of single product page.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff

    Hello, @ecommercedev,

    Thank you for your response.

    If you are utilizing a single product page and desire to eliminate the ‘add to cart’ quantity input, please note that there is currently no direct option to do so. However, you can achieve this by using a specific CSS code.

    Kindly copy and paste the following CSS code into the designated location: Xstore > Theme Options > Theme Custom CSS > Global CSS. Once pasted, please ensure to publish it.

    .single-product .quantity {
        display: none !important;
    }

    We trust that this will effectively resolve your issue.

    Best Regards,
    8Theme’s Team

    Avatar: ecommercedev
    ecommercedev
    Participant

    That should do for now. Thanks a lot!

The issue related to '‘How to disabled add to cart quantity input’' has been successfully resolved, and the topic is now closed for further responses