Magento – Allowing backorders on Magento 2

backordermagento2

Magento 2.0.10, I want to allow customers to order a product when its not in stock (i.e. when the available stock quantity is =< 0). I have set Allow quantities below 0 but the storefront doesn't show an add to cart button. If I set the product to 'in stock', the add to cart button is shown, but it also displays the product as In Stock. What I need is for the add to cart button to be shown, but the stock status to display as 'out of stock'. Any ideas how I do this?

Update – I have now found and edited the list.phtml & listing.phtml template files so that the in/out of stock status and the add to cart button is shown, but if the product is out of stock and I add it to the shopping cart, I get a validation error stating that the product is out of stock (and the item is not added to the cart). I must be missing a setting somewhere, otherwise backorders aren't possible in Mag 2, which I don't think is the case. Help.

Best Answer

You have missing Backorder configuration from Admin. You dont need to customize any changes in template file.

Just set configuration from,

Stroes -> Configuration -> Catalog -> Inventory

Click on Product stock Options Tab.

Now Choose Backorders Value as Allow Qty Below 0.

Save.

enter image description here Run Command php bin/magento setup:static-content:deploy

Related Topic