• Resolved patrabharati

    (@patrabharati)


    Hello,

    I want to replace ‘ add to cart ‘ button with an ‘ out of stock ‘ button on single product page for out of stock items. Enabling stock management on product level adds the out of stock badge but does not remove the ‘ add to cart ‘ button. I have tried different codes but nothing seems to work. Please help

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @patrabharati,

    I suspect that there is a template override in the theme that’s keeping this from working as expected. Here’s a screenshot of how an out-of-stock product looks in Storefront when backorders aren’t allowed.

    Try temporarily switching to the Storefront theme to see if this works as expected. If it does, you’ll want to get in touch with the original theme’s author for some help. They may need to update their template.

    Hi @patrabharati,

    Hopefully, you were able to clear up this issue. Since it’s been a while since we last heard from you, I’m going to mark this thread resolved.

    If you still have trouble, please feel free to open up a new topic. We’d be happy to jump back in and help you out.

    Stay safe!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘replacing add to cart with out of stock button on single product page’ is closed to new replies.