Magento News
Cannot display product names
Here is my code:
<?php foreach (Mage::getModel('catalog/category')->load($_category->getId())->getProductCollection() as $product): ?>
<?php echo $product->getId(); echo $product->getProductUrl(); ?>
<?php echo "<h1>".$this->htmlEscape($product->getName())."</h1>"; ?>
<?php endforeach ?>
the id and url show up fine. Can never view the name.
Any ideas?
What I’m doing is showing all the products of a given category.
Possibly Related Posts:
- 花粉ェ…
- Do you know how many of your customers are over the age of 18?? We can tell you http://t.co/RKNC85ti
- #Magento – Fix Product Reviews by jim222: I run a multi-site Magento store. A… http://t.co/todb1Fp4 #freelance #job
- Faille clients Magento : 3 semaines plus tard, silence radio de l’éditeur. #fail #comprendpas http://t.co/WRAMkzbr
- I received +K in magento from @EbullientErin, thanks! http://t.co/dfCN1tUc
RSS Feed