News:

Support the VirtueMart project and become a member

Main Menu

Currency Module

Started by ferdzpalaspas, November 26, 2012, 15:46:50 PM

Previous topic - Next topic

ferdzpalaspas

Hi,

how to remove the dollar word and the dollar sign in Currency Module?

Please check the attached file.. (i edit the layout thru css)

tnx in advance!  :)

[attachment cleanup by admin]

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!

ferdzpalaspas


bytelord

Hello,

A fast way to do it with a little hack is by editing the module under joomla_folder\modules\mod_virtuemart_currencies\mod_virtuemart_currencies.php

around line 49:

$q = 'SELECT `virtuemart_currency_id`,CONCAT_WS(" ",`currency_name`,`currency_symbol`) as currency_txt

change it to:

$q = 'SELECT `virtuemart_currency_id`,CONCAT_WS(" ",`currency_name`) as currency_txt

This will remove the currency symbols from currencies modules drop down

Regards
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!

ferdzpalaspas

hi,

thank you for your help..

but the word "dollar", "peso", and "euro" are still there,how can i remove that?

i just want to let the country name stay..


bytelord

Hello,

You could edit your currency names under Configuration -> Currencies and name them as you wish...
you could also remove from there the symbol but then you will not be able to show it to prices ... so just change the name of the currency.

Regards
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!