Step : 1 Fist create
xyz.php
file on the magento root folder structure.Step : 2 After add that below code in file
xyz.php
.Step : 3 Run<?php require_once('app/Mage.php'); umask(0); Mage::app();
$_product = Mage::getModel('catalog/product')->load(12);
echo $_product->getSku();
echo $_product->getID();
xyz.php
file in your browser for eg. http://abc.com/xyz.php
No comments:
Post a Comment