I wan't to make it so that when a product is out of stock a customer will stil be able to purchase it. The product must stil say "Out of stock" but with a purchase button so that it's clear to the customer that the product is stil out of stock.

I've read this answer but it seems to be outdated:

  • What should certainly be done when click on "add to cart" button on Out of stock product ? – Hamendra Sunthwal Sep 24 '20 at 6:44

You can enable backorder. This is Magento feature where you can allow the user to purchase the product even it is out of stock in the backend. But product is out of stock this will not display in thefrontend, product will always display in stock in the frontend. If you want to display out of stock status when product inventory is negative then you need to make customization.

You can use below tutorial to enable the backorder. https://docs.magento.com/user-guide/catalog/inventory-backorders.html https://www.simicart.com/blog/magento-backorders/

Hope this will help you.

  • Hi, thanks for you answer. I've already tried that and it's not what I'm looking for. I stil want my product to say "out of stock" in the product page. But with an "add to cart" button – Nicklas Gilbertsson Sep 24 '20 at 6:38
  • 1
    Correct, as I said, you need to customize the in-stock and out of stock message only. Regarding add to cart button, it will display even product is out of stock. – Nits Sep 24 '20 at 6:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.