Guest User

Untitled

a guest
Jun 25th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. //test just to grab the product from the item id:
  2. $objectManager = MagentoFrameworkAppObjectManager::getInstance();
  3. $_producttest = $objectManager->get('MagentoCatalogModelProduct')->load($_item->getId());
  4. echo "DISP:" . $_producttest->isSaleable(); //RETURNS FALSE
  5.  
  6. $_item->isSaleable(); //RETURNS TRUE
Add Comment
Please, Sign In to add comment