How to add space between currency symbol and price?


hello,

 

can please guide me how add space between currency symbol , price?

support told me ask in forums because done javascript , not covered in official documentation.

anyone have done this? transform ron13,20 in 13,20 ron or usd32,90 in 32,90 usd.

 

thanks!

hi bogdan,

 

i did testing in in chrome console , think can use approach:

 

var price = "ron12.40"

 

var altered = price.substr(3);

 

altered

"12.40"

 

var new_price = altered+" ron"

 

new_price

"12.40 ron"

 

that convert price format romanian format. need add jquery grab price of each product , apply code it.

 

this link take through http://api.jquery.com/each/

 

cheers,

 

-mario



More discussions in eCommerce


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support