Product Sku on iphone theme

Hi,

I’m trying to display product sku on iphone theme without success.
This is my code on jm_sterix_iphone/template/catalog/list.phtml:

PHP Code:

<div class="product-shop">

                                <header>

                                    <h1><?php echo $_helper->productAttribute($_product$_product->getName(), 'name'?></h1>

                                    <?php echo $this->htmlEscape($_product->getSku()); ?><br>

                                    <?php echo $this->getPriceHtml($_producttrue?>

                                </header>

                            </div>


But it does not display the sku.

Any help?

1 answer

Profile photo of Sherlock 0.00 $tone September 3, 2013
Public

Hi mate,

you can try to use the below line of code

PHP Code:

   $sku Mage::getModel('catalog/product')->load($_product->getId())->getSku(); 




To get the product SKU, I think it would work.

#1

Please login or Register to Submit Answer

Written By

Comments