magento - Product model not returning description -


which reasons can have, when product model not returning description attribute?

i tested several approaches:

mage::getmodel('catalog/product')->loadbyattribute('sku', 'p001')->getdata(); mage::getmodel('catalog/product')->loadbyattribute('sku', 'p001')->getdata('description'); mage::getmodel('catalog/product')->loadbyattribute('sku', 'p001')->getdescription(); 

the getdata() method returns short_description, not description. think can't code fault, because in local environment, it's working. via git, have same codebase on stage server, it's not working anymore.

can have edited attribute settings cause problem? (i couldn't find differences between short_description , description cause problem in opinion.

edit: on stage page, descriptions shown in articles.

to product details loading sku, use below code

<?php $product_sku = "p001"; $product = mage::getmodel('catalog/product')->loadbysku($product_sku); echo $product->getdescription(); ?> 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -