Remove qty field box with 1 item in stock

This topic has 6 replies, 3 voices, and was last updated 1 years, 9 months ago ago by Rose Tyler

  • Avatar: xstore
    mantolis
    Participant
    March 3, 2023 at 01:24

    hello,
    i would like some assistance. I try to found how can i do that..
    if i have 1 item in stock, i don’t want to have + / – symbol, just the buy button.
    i hope image helps.
    https://imgur.com/a/mrXZhD3
    as i remember in the past it was ok.
    Any help would be great.
    Thanks
    Apostolis

    5 Answers
    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    March 3, 2023 at 09:31

    Hello @mantolis,

    We kindly request that you enable the option to be sold individually, which will remove the quantity selection from your site. Please refer to the screenshots provided at the following links: https://postimg.cc/Ffdt6jTK, https://postimg.cc/4mPqW8QG, and https://postimg.cc/3WZ54r6n.

    Best Regards,
    8Theme’s Team

    Avatar: xstore
    mantolis
    Participant
    March 7, 2023 at 13:15

    hello, thank you for your reply.
    I make that change but no lucky.
    still there !
    i send you my site and pass to check that.
    best Regards
    Apostolis

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 7, 2023 at 13:37

    Hello, Mantolis,

    As a temporary fix, please add the next code in child-theme/functions.php file:

    add_filter('woocommerce_quantity_input_type', function($type) {
        return 'number';
    });

    and delete this code after the next theme update.

    Thank you for your cooperation.

    Kind Regards,
    8theme team

    Avatar: xstore
    mantolis
    Participant
    March 8, 2023 at 17:15

    i would like also to thank you for your help
    Best Regards
    Apostolis

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 8, 2023 at 17:18

    Hello, Mantolis,

    You are always welcome!
    We kindly ask you to rate our theme, as it will motivate our team to move forward and create even cooler things. Please follow this link to rate – http://themeforest.net/downloads

    Kind Regards,
    8theme team

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

You must be logged in to reply to this topic.Log in/Sign up

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