1

Can somebody explain the logic of the isSalable() function?

I have started to understand the logic but I know there is something more.

If "Backorders" false then "Qty" should be grater than the "Minimum Qty Allowed in Shopping Cart" ....

Do anyone have the complete logic? Thank you

Kanishka
  • 33
  • 1
  • 8
  • 1
    I think you should view some document: https://stackoverflow.com/questions/9038988/what-is-the-difference-between-issaleable-and-isavailable https://magento.stackexchange.com/questions/5238/where-does-is-salable-come-from – Mage Wet Jul 23 '18 at 10:30

1 Answers1

0

This function is in Magento\Catalog\Model\Product Model

Generally it checks product status and based on that gives output.