2014-09-22 92 views
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.... 

回答

0

推出新產品系列爲c Alling

{{block type="catalog/product_new" column_count="6" products_count="0" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/list.phtml"}} 

在此通話中,產品將使用list.phtml顯示。

此處將此list.phtml更改爲顯示產品滑塊(例如bx slider或其他任何產品滑塊)的其他文件。