0
我最近需要高附加值產品上的所有類別滑塊最近添加的產品從所有類別....如何讓滑塊在Magento
我也需要當前的產品類別鏈接查看產品的...
我需要最新的產品圖片,名稱,價格,類別產品上市網址...
在滑塊的div基本上
<div>
<div>
<span>product image</span>
<span>name</span>
<span>price</span>
<span>category url</span>
</div>
</div>
for this i used this...
$_helper = $this->helper('catalog/output');
$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('*')
->setVisibility(array(2,3,4))
->setOrder('created_at', 'desc');
?>
<div u="slides" style="cursor: move; position: absolute; left: 10px; top: 0px; width: 100%; height: 497px; overflow: hidden;">
<?php foreach($_productCollection as $_product) : ?>
<div>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>"
>
<img u="image" src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image') ?>" width="250" height="497"
alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
<?php endforeach; ?>
</div>
bt in how can i get category id of each product...
I need to link category id on product image....