where do i access a file to add a different currency?

General ShopSite user discussion

where do i access a file to add a different currency?

Postby chico » Thu Apr 15, 2010 10:16 am

I don't need it to calculate in that currency, just display on the page instead of a $ sign.

Thanks.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby ShopSite Nicole » Thu Apr 15, 2010 10:19 am

The URL below will take you to a ShopSite Knowledgebase article on how to add a currency to ShopSite:
http://support.shopsite.com/KBase/questions/2222/
ShopSite Nicole
 
Posts: 184
Joined: Thu Jan 14, 2010 10:30 am
Location: Utah

Postby chico » Thu Apr 15, 2010 11:45 am

OK. Got it t work using HTML code so that the guilder symbol shows up fine in the backend...

Image

But in the front-end, it looks like this...

Image

Any suggestions? Thanks.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby loren_d_c » Thu Apr 15, 2010 12:35 pm

What did you put in the currency.dat file for the currency symbol? Did you use the actual character, or the & HTML entity that represents that character? Try:

[ampersand]#402;

(replace [ampersand] with the & symbol)

Also, what character encoding is your page using?

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby chico » Thu Apr 15, 2010 1:03 pm

I was using a different HTML code, but for the sake of commonness, I changed it to yours. I had been using charset=iso-8859-1 and I switched it to charset=utf-8 and it is still happening.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby loren_d_c » Thu Apr 15, 2010 1:24 pm

Did you look at the source of the page to see what character is actually being used?

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby Jim » Thu Apr 15, 2010 1:36 pm

I edited the currency.dat file and edited the following value and it seems to work
#|ANG|Antillian Guilder||||
to
|ANG|Antillian Guilder|ƒ| -$##,###.##||

Note I removed the leading # to uncomment the option then added the currency symbol ƒ using & # 1 3 1 ; without the spaces and the format string -$##,###.##

on the store page the product price looks like
Price: ƒ1.00
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby chico » Thu Apr 15, 2010 1:50 pm

I was using the exact same syntax... and still am and the live prices still don't show properly. I viewed the source and this is the character in the source �. The backend still looks good... just not the front end.
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby Jim » Thu Apr 15, 2010 2:33 pm

When I set my browser to use the iso-8858-1 charset Then I see the f character but if I have it at utf-8 I see the question mark symbol.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby loren_d_c » Thu Apr 15, 2010 2:40 pm

Like Jim, I can see the raw character when the page is iso-8858-1, however not when UTF-8.

But it looks like when you put the & 131; HTML entity in the currency.dat file and then select it in the Locale menu, what actually gets saved to the 'currency:' token in the store's main [login_name].aa file is the raw character, not the & 131; HTML entity. So try editing the [login_name].aa file itself and replace the raw character with the & 131; HTML entity, save it, then regenerate your pages.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby chico » Thu Apr 15, 2010 2:40 pm

Well...I can't rely on users to make these changes...any suggestions? Hard-code a graphic?
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby chico » Thu Apr 15, 2010 2:44 pm

loren_d_c wrote:Like Jim, I can see the raw character when the page is iso-8858-1, however not when UTF-8.

But it looks like when you put the & 131; HTML entity in the currency.dat file and then select it in the Locale menu, what actually gets saved to the 'currency:' token in the store's main [login_name].aa file is the raw character, not the & 131; HTML entity. So try editing the [login_name].aa file itself and replace the raw character with the & 131; HTML entity, save it, then regenerate your pages.

-Loren


Never even saw your message... will give it a try! thx...
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America

Postby chico » Thu Apr 15, 2010 2:51 pm

Don't ask me what happened, but after I downloaded the ****.aa file and looked to edit it, the ƒ was in there... and my store! Looks like the 67th time is the charm.

Thanks to you all. Something you said made it work... who knows what. BTW, it works in UTF-8 or iso-8858-1
chico
 
Posts: 31
Joined: Tue Mar 09, 2010 4:03 pm
Location: Central North America


Return to User Forum

Who is online

Users browsing this forum: No registered users and 42 guests