Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Currency value (how is this defined/used?) and updating currencies

Currency value (how is this defined/used?) and updating currencies

Locked

Started by spidersilk on 10 Jun 2006, 6:07 AM · Views: 3,244

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
10 Jun 2006, 6:07 AM
#1
spidersilk avatar

spidersilk

New Zenner

Join Date:
Jun 2006
Location:
Toronto
Posts:
16
Plugin Contributions:
0

Post #1 by spidersilk

Just starting the configuration of a ZenCart installation for a client, and I'm a little confused about how the currencies work.

We're in Canada, so we need Canadian dollars to be the default currency. But I'm not entirely clear on how the "value" part works. USD seems to be set as the default value for everything, at 1.00. Does that mean the program is designed to "think" in USD and to use any other currency as default it has to be constantly performing conversions? Or can I set Canadian to 1.00 once it's the default, and set USD to whatever it is relative to CAD?

My second, related question, is about currency updating. Clicking the Update Currencies button seems to load (or at least try to load) values from a remote site. Can it tell what currency you have set as the default and give you the relative values of the others based on that, or does it treat USD as the default and reset that back to 1.00 and everything else relative to that?

You might be saying at this point, why doesn't she just click the button and find out what it does? The problem there would be my third question: Update Currencies doesn't work on my web host -- it generates a solid page of PHP errors, starting with "Warning: file() [function.file]: URL file-access is disabled in the server configuration in... /localization.php on line 25" (I snipped out the path for security reasons and because it was a mile long). Basically, my host doesn't allow PHP scripts to open other scripts from remote URLs because they consider it a big security risk. Is there any alternative way of updating the currencies?

The really annoying thing about that is that they offer ZenCart as a "one-click install" in their web panel, apparently without realizing that some of its features don't work on their system! I've sent them a message about this too, BTW, but thought I'd also try asking here in the meantime.

Any advice on these questions would be appreciated - thanks!

10 Jun 2006, 9:50 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

  1. Yes.

  2. Yes - updates will happen (by clicking that link) using your default as the base, and updating other currencies relative to that.

  3. You can always manually update the "other" currencies as you see fit.

  4. Who's your host? Are you into a long-term commitment with them? You might want to check out our Certified Hosts to compare prices. You'll find they're tuned for e-Commerce sites better than many others are.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.