문제

I’m kind of new with magento and I'm making an up-sell for some of my products, and they are showing at the end of the page, but they are without the price, and I want to know how can I make magento to show the prices of the up-sells products that are linked, also if there’s a possibility to show the description of the products too that will be great.

Thanks in advantage

도움이 되었습니까?

해결책

for up-sell product description you can get product id from $_link object

and you want product description so you can get from

$test=Mage::getModel('catalog/product')->load($_link->getId())

and you can get description from $test

$test->getDescription()

and you can get price from $_link object

it may help you

다른 팁

look into the file yourtemplate/catalog/product/list/upsell.phtml you will find code for displaying price.

The code to display price of upsell product is

<?php echo $this->getPriceHtml($_link, true, '-upsell') ?

Insert the code in upsell.phtml and you will see the price of your upsells product

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top