You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//$_product = $obj->get('Magento\Catalog\Model\Product')->load($_product->getId()); // Enable this, if you are receiving more attributes those not accessible in generic values.
try {
echo $_product->getName(); // prints name.
} catch(\Exception $e) {
echo 'An error occured while retrieving product name.';