Jump to content
dtwfung

(Workaround) How to add currency label in product price ?

Recommended Posts

Posted (edited)

Hi There,

I am using PS 1.7 for while, recently a customer raised a concern about confusion on our price.

Our online shop (https://cop9gun.com/prshop175) display either US Dollar or Hongkong Dollar. Customers are able to select which currency they prefer, BOTH use "$" as currency symbol.

181845888_HKDscreenshot.thumb.jpg.50ded3a39841583690e05f1a6bcf5c0a.jpg586940520_USDscreenshot.thumb.jpg.bd987561cbc89d9b82f930a022bdc9f8.jpg

However, Without currency label, customers confused the actual amount ....

I would like to know how to change "$" into "US$" for US Dollar and "HK$" for Hongkong Dollar.
In fact, I browse online and found topic to change "...translations/cldr/main--en-US--currencies ... I tried and clear cache, but no effect at all...

Any comment/help would be greatly appreciated !

 

Thanks in advance !

Edited by dtwfung (see edit history)

Share this post


Link to post
Share on other sites

Hi,

By  knowing   the  id  of  the  currency   you can  add the  right   label   with  an   if   condition.

Share this post


Link to post
Share on other sites
21 hours ago, ndiaga said:

Hi,

By  knowing   the  id  of  the  currency   you can  add the  right   label   with  an   if   condition.

say, currency Id is 1, what should I do ?

I thought this can be changed by the choice of customer's selection on currency !

Share this post


Link to post
Share on other sites
1 hour ago, dtwfung said:

 

I thought this can be changed by the choice of customer's selection on currency !

Yes,  the  id  will be from  the selected   option  but  you should  know  witch label   to  put in front of what...

Share this post


Link to post
Share on other sites
3 hours ago, ndiaga said:

Yes,  the  id  will be from  the selected   option  but  you should  know  witch label   to  put in front of what...

Any tip which file(s) I should look into ?

 

Thx

Share this post


Link to post
Share on other sites
1 minute ago, dtwfung said:

Any tip which file(s) I should look into ?

 

Thx

The  block  currency  module's  tpl  file.

Share this post


Link to post
Share on other sites
31 minutes ago, ndiaga said:

The  block  currency  module's  tpl  file.

Will check further on it,thx 

Share this post


Link to post
Share on other sites

I tried to play with CLDR but never work. Just saw a post and said PS changed the CLDR in 1.7.6.x.

I gave up and I modified the `ps_currency_lang` content directly.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More