Skip to content

Instantly share code, notes, and snippets.

@jwohlfeil
Created February 14, 2017 12:39
Show Gist options
  • Save jwohlfeil/f431a1117c0538d64630084755f47d33 to your computer and use it in GitHub Desktop.
Save jwohlfeil/f431a1117c0538d64630084755f47d33 to your computer and use it in GitHub Desktop.
<?php
$_category = Mage::getModel('catalog/category')->load(47);
$_productCollection = $_category->getProductCollection();
if($_productCollection->count()) {
foreach( $_productCollection as $_product ):
echo $_product->getProductUrl();
echo $this->getPriceHtml($_product, true);
echo $this->htmlEscape($_product->getName());
endforeach;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment