0

I am getting product collection from external php file like below-

<?php
$mageFilename = 'app/Mage.php';
require_once $mageFilename;
//Mage::setIsDeveloperMode(true);
//ini_set('display_errors', 1);
umask(0);
Mage::init('default');
Mage::app('default');



$productCollection=Mage::getModel('catalog/product')->load(169);
var_dump( $productCollection->getHidemrp());

Hidemrp is "yes/no" type custom attribute.

But I am not getting any value ? what is the problem.?

3
  • have you assigned attributes set or product in admin end?
    – Abdul
    Commented Dec 1, 2015 at 5:18
  • @abdul Yes I did that Commented Dec 1, 2015 at 6:57
  • have you created in admin end and set Scope : Global or Store View r Website?
    – Abdul
    Commented Dec 1, 2015 at 7:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.