Making up-sells have price magento 1.5
-
16-10-2019 - |
Question
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
Solution
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
OTHER TIPS
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