When I use this below code for my view.phtml page, when price is 0 then it shows a message, (Price on request). This works. When price is not 0 then it shows the price.
VIEW WORKS /app/design/frontend/default/modern/template/catalog/product/view.phtml
<?php if($_product->price==0): ?>
<?php echo 'Price on request'; ?>
<?php else: ?>
<span class="price-yo">Price</span>
<?php echo $this->getChildHtml('product_type_data') ?>
<?php endif; ?>
When I use the code for my upsell.phtml I always get the message, (Price on request) while it needs to show a price when its not 0.
UPSELL DOESN'T WORK /app/design/frontend/default/modern/template/catalog/product/list/upsell.phtml
<?php if($_product->price==0): ?>
<div class="price-req-list">Price on request</div>
<?php else: ?>
<div id="priceholder-list-upsell"><?php echo $this->getPriceHtml($_link, true, '-upsell') ?></div>
<?php endif; ?>
Does anyone knows how to solve this?
// extra info I use special price allot, maybe something is wrong in the price.phtml ?
$_product->getPrice()==0
?