I\'d like to get a list of random products from the same category as the current product for displaying within the product view - so far all I\'ve dug up is
Magento
$products = Mage::getModel('catalog/category')->load(category_id); //put your category id here
$productslist = $products->getProductCollection()->addAttributeToSelect('*');
foreach($productslist as $product)
{
echo 'price: ' . $product->getPrice() . '
';
}
This is the by far the convenient code in order to fetch product details of perticular category.Hope it helps you.