VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Ninjab on May 24, 2013, 16:52:06 PM

Title: Problems displaying product price properly in category view
Post by: Ninjab on May 24, 2013, 16:52:06 PM
Hi there,

I am trying to display my product price properly in my category view. The early styling page can be found here to see what I mean : http://www.kanzenint.com/iaso/index.php/backup-plans

It just shows 80 and 70 etc. But I need it to display $80.00 and $70.00. How do I do this? Here is the code I have to display the price:

<?php echo $product->prices['salesPrice'] ?>

Thanks.
Title: Re: Problems displaying product price properly in category view
Post by: jenkinhill on May 25, 2013, 11:15:44 AM
In the category default.php it is:

echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);