Answers for "magento2 load product by id"

PHP
0

magento load product by id

$productId = 20;
$product = Mage::getModel('catalog/product')->load($productId);
Posted by: Guest on May-19-2020
0

Magento2: How to load product by id

$product=$this->getLoadProduct(20);
echo $product->getName();
Posted by: Guest on April-19-2021

Code answers related to "magento2 load product by id"

Browse Popular Code Answers by Language