How to disabled add to cart quantity input

This topic has 5 replies, 2 voices, and was last updated 7 months, 3 weeks ago ago by ecommercedev

  • Avatar: ecommercedev
    ecommercedev
    Participant
    September 18, 2023 at 01:41

    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
    September 18, 2023 at 05:18

    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
    September 18, 2023 at 21:01

    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
    September 19, 2023 at 05:45

    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
    September 19, 2023 at 21:39

    That should do for now. Thanks a lot!

  • Viewing 5 results - 1 through 5 (of 5 total)

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

Helpful Topics

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.