Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //test just to grab the product from the item id:
- $objectManager = MagentoFrameworkAppObjectManager::getInstance();
- $_producttest = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getId());
- echo "DISP:" . $_producttest->isSaleable(); //RETURNS FALSE
- $_item->isSaleable(); //RETURNS TRUE
Add Comment
Please, Sign In to add comment