News:

Support the VirtueMart project and become a member

Main Menu

Problems displaying product price properly in category view

Started by Ninjab, May 24, 2013, 16:52:06 PM

Previous topic - Next topic

Ninjab

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.

jenkinhill

In the category default.php it is:

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

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum