0

I want to show add to cart button block in my list.phtml even a product is out of stock. I do not want to enable back orders too.

How can i do this?

OR

May i know from which file checking the stock status and hide the add cart block?

Posting what i tried is no point here to drag the question.So i did not post it.I just want to get an idea to implement this.

Thanks

  • 1
    can you check : magestore.com/magento-2-tutorial/… – user68116 Jun 14 '18 at 5:57
  • @PrashantPatel thanks you, i can display the product in list.phtml.but i cannot display the cart button section when the product is out of stock.What my purpose is i want to show the add to quote button when the stock is zero. – Mujahidh Jun 14 '18 at 6:05
  • 1
    can you find this line and comment in list.phtml "$_product->isSaleable()" – user68116 Jun 14 '18 at 6:13
  • thank you.its working,you may post this as answer.i will accept it – Mujahidh Jun 14 '18 at 6:49

Your Answer

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

Browse other questions tagged or ask your own question.