News:

Support the VirtueMart project and become a member

Main Menu

Remove currency symbol from product page

Started by gatisv, September 26, 2012, 16:35:08 PM

Previous topic - Next topic

gatisv

Hi,

Is there a way to only remove currency symbol from product page and only keep the price number?

I only need this for product page, so need to have the number/symbol format in cart.

Product page display: "5.00"
Cart display: "5.00 $"

Editing currency doesn't help as it removes symbol for all pages.

The reason for this is - I already have an image with currency symbol on it and I need to add the correct price without the symbol.

Thanks.

K&K media production

You need a template override for product detail page.

Then you get the price with

echo round($this->product->prices[basePriceWithTax], 2);

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!