Os commerce help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Os commerce help

Post by jito »

Hi,
have two currency types in my oscommerce based shopping cart. The default one is showing for every user, but i want to make it location specific. How is it possible?

Regards.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You'll need to use some sort of IP geolocation database and look up _SERVER['REMOTE_ADDR']. Someone might have already written the code for osCommerce, you'd be best off asking on their support forums.
jito
Forum Commoner
Posts: 85
Joined: Sat Mar 25, 2006 4:32 am
Location: india

Post by jito »

Yes, i know it's possible with $_SERVER['REMOTE_ADDR'] and a IP database, but the problem is that this is my first day with oscommerce, and i find it difficult to change the code. Actually i can't find where to change. Another problem is that i don't have time. That's why i'm here, if anybody faced the same problem before me.

I tried their forum already, but don't have any responce.

Thnks.
Post Reply