News:

Looking for documentation? Take a look on our wiki

Main Menu

Currency display

Started by Wedal, May 24, 2017, 12:00:21 PM

Previous topic - Next topic

Wedal

Joomla 3.7.2
VM 3.2.2

Problem:
Can not split currency value and currency symbol via CSS

Problem description:
Now we have in VM price format, e.g.:
<span class="PricesalesPrice">10 $</span>
In some cases, different css-styles are required for "10" and "$".

We can go in: VM -> Shop -> Currencies -> [Our currency] -> Currency Symbol and set, e.g.:
<i>$</i>
This will work.

But field Currency Symbol has varchar( 8 ) size in database. If our сurrency symbol has more than two characters, we can not apply this trick. In this case, we have to increase the size of the field in the database and create a hack.

If possible, please, increase the value of this field in the database by default at least twice.

AH

#1
You can change the format of the currency display in the currency admin page of Virtuemart

Configuration>currencies>your currency

Adjust the positive and negative display formats

for positive

{number} <i>{symbol}</i>

for negative

{sign}{number} <i>{symbol}</i>

An example is shown on the configuration page as well
Regards
A

Joomla 3.10.11
php 8.0

Wedal

AH,

I did not guess to use these fields for html. It really works! Many thanks for the tip!

AH

You are welcom - thanks for the update
Regards
A

Joomla 3.10.11
php 8.0