If this is your first visit, check our documentation. To post, register or login.

adding a second currency

Locked

Started by katef on 15 Jun 2006, 2:49 PM · Views: 3,268

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
15 Jun 2006, 2:49 PM
#1
katef avatar

katef

New Zenner

Join Date:
May 2006
Posts:
20
Plugin Contributions:
0

adding a second currency

I am very new at this so I hope I make sense...

I want to set up my store with AUD as default but also offer USD.... I realised that this was not possible with my last host as they wouldn't allow zen cart to use fopen to 'speak' to the conversion site. After speaking to several different hosts I find this is a COMMON problem.. they all tell me that fopen is a security risk and I should ask whether there is a version or fix that uses CURL instead of fopen.

I am going to assume that there is no zen cart 'fix' to this issue???

My new and wonderful current host will set it up and allow me to use fopen if I really want to, though they have cautioned me that this could leave me open to various security risks. Not really knowing anything about any of this I am curious to hear from a zen cart perspective... is this really a security risk? If so how big a risk and is there anything I can do about it?

thanks

Kate

16 Jun 2006, 4:29 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: adding a second currency

  1. Using file() can be seen as a potential risk, depending on what else other customers are running on the same server as you.
    I'guess that the risk is not typically all that great; however, if the host is concerned about it, then either they're well-informed about the issue, or they know that other hosting clients may be problematic, or else they've just read that it could be dangerous, and are trying to prevent risks perhaps without even knowing all about it themselves. I mean no slight against your host... but there are several out there that don't know any more than that.

Your host is correct that cURL would be better ... but cURL isn't available everywhere, and more hosts seem to allow file() or fsockopen() for external access than hosts have cURL available by default.
I suppose the ideal solution would be to have both available and let you choose which you desire/require.

  1. You can still run multiple currencies, but simply make it a habit to go in weekly and update the exchange rates. You can manually find out the appropriate rates by going to https://www.xe.com or https://www.oanda.com, or a number of other places. You might even prefer doing it manually so you can add a slight upcharge on the rate to provide a bit of insulation against daily fluctuation etc.

.
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.

16 Jun 2006, 6:29 AM
#3
katef avatar

katef

New Zenner

Join Date:
May 2006
Posts:
20
Plugin Contributions:
0

Re: adding a second currency

Thanks so much for your reply.. I am very new to this but slowly getting my head around it all!

I agree that my last host didn't really understand or at least want to take the time to explain about fopen/curl.. but thankfully my new host is much better about that stuff and did explain it fully as to what their concerns are... but I am really glad to hear it from a more zen cart perspective too so that I can really get my head around it.

but manually updating may actually work quite well for us... so thanks so much for putting that suggestion out there.

Now to go and attempt to wrap my head around the paypal issues :)

thanks!

Kate