Disable the buy button - by Jens - on WordPress WooCommerce support

This topic has 10 replies, 2 voices, and was last updated 9 years, 2 months ago ago by Eva Kemp

  • Avatar: jbrogaard
    Jens
    Participant
    January 27, 2015 at 09:46

    Hi, pls read my question below from Themeforest, thx.
    Jens

    ***
    Hi, I’ve seen many request to disable the cart and use the theme as catalogue but is it possible to disable the buy button from just one product. It’s a situation where all other products can be shipped but this one needs face to face meeting in a physical shop. Looking forward to your answer. Jens
    Helen_Smith
    Helen_Smith Author Team

    1 day ago
    Flag

    Hello, makeitec

    Thanks for your request 🙂

    You can simply set your Product as Out Of Stock and then Add to cart will be disabled. Instead of that will be Read More button.

    Regards
    Default-user
    makeitec Purchased

    8 hours ago
    Flag

    Hi there, sorry I tried this but there’s just a text ‘out of stock’ (which is actually false) and nothing else. No ‘Read more’ button…
    Helen_Smith
    Helen_Smith Author Team

    7 minutes ago
    Flag

    Please, contact us at https://www.8theme.com/forums and our expert will help you.

    Regards

    9 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    January 27, 2015 at 11:00

    Hello,

    Please provide us with wp-admin panel access and a link to the product.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jbrogaard
    Jens
    Participant
    January 27, 2015 at 11:53

    http://www.jensengrill.dk/produkt/estate-b/

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    January 27, 2015 at 13:00

    Hello,

    “Read more” button doesn’t show on a single product page when a product is out of stock. It’s visible on shop page where all products are shown.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jbrogaard
    Jens
    Participant
    January 27, 2015 at 16:57

    Okay, I see. So it’s not really possible to differentiate a product on its single product page regarding buying method. And changing the text ‘Out of stock’ just for the one product would also require code customization.
    Thanks for digging into it.
    Jens

    Avatar: Eva
    Eva Kemp
    Support staff
    January 27, 2015 at 17:10

    Hello,

    Sorry, but there is no such possibility to do this only for one product.
    Please take our apologies.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jbrogaard
    Jens
    Participant
    January 27, 2015 at 23:09

    No Problem. However, can you tell me in which file the text string – “not in stock” – is located for the single product page?
    Thx.

    Avatar: Eva
    Eva Kemp
    Support staff
    January 27, 2015 at 23:29

    Hello,

    This text is written in wp-content/themes/legenda/woocommerce/content-product.php (line 85).

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: jbrogaard
    Jens
    Participant
    January 27, 2015 at 23:50

    Thx, your help is much appreciated.

    Avatar: Eva
    Eva Kemp
    Support staff
    January 28, 2015 at 00:10

    Hello,

    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 10 results - 1 through 10 (of 10 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.