What is the difference between isSaleable() and isAvailable()?

后端 未结 5 1800
无人共我
无人共我 2021-01-30 19:46

I\'m working on the display of the stock availability on the (individual) product page of my Magento theme, and there\'s something I don\'t completely understand about this.

5条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 20:41

    As far as my concern, isSaleable() means you are checking the top most product that is ready for sale. While isAvailable() means you are checking the product from the lists that are available.

提交回复
热议问题