0

I want to add product alert notification when the product is out of stock on the Magento wishlist page, For this task, I need product ID how we get out of stock product ID?

1
  • Please add your magento version and provide what you have done Mar 6, 2017 at 7:46

1 Answer 1

0

In M1 you can get the stock of a product like this, where $_product is your product object $_product = Mage::getModel('catalog/product');:

$stock = Mage::getModel('cataloginventory/stock_item')->loadByProduct($_product);

1
  • When I add out of product to wishlist , On customer's wishlist product out of product's detail in not showing I need out of stock product's detail on customer's wishlist.
    – Aish
    Mar 6, 2017 at 7:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.