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

  • isAvailable() is used to decide whether to show an “Add to Cart” button or not, while isSaleable() is used to decide whether to display the product as “in stock” or “out of stock”.
  • There is no difference between the two functions.
  • isSaleable() checks if the product’s type can be sold, while isAvailable() checks if the product itself can be sold.
  • isAvailable() is used to decide whether to display the product as “in stock” or “out of stock”, while isSaleable() is used to decide whether to show an “Add to Cart” button or not.

Я советую на свой страх и риск дать верный ответ 2. Хотя что имел в виду туповастенький индус - непонятно.
stackoverflow.com/questions/9038988