Jump to content

Auto change currency on HTML Page


sahostking

Recommended Posts

I have an idea to change pricing based on where a client comes from on my html pages. I assume I'll need javascript or is PHP better? Hence if a customer comes from US the site's pages all adjust to US? etc.

 

Are there addons or a tutorial somewhere to accomplish this? or can just include the php pages in the header of my site, change it to PHP and then use a variable to link it?

Link to comment
Share on other sites

I have an idea to change pricing based on where a client comes from on my html pages. I assume I'll need javascript or is PHP better? Hence if a customer comes from US the site's pages all adjust to US? etc.

 

Are there addons or a tutorial somewhere to accomplish this? or can just include the php pages in the header of my site, change it to PHP and then use a variable to link it?

if these are external pages to WHMCS, you may think of this as two steps...

 

firstly, find out where the client is - I guess that will either involve paying for, or using, a free geoip service - and hoping that it's accurate.

 

secondly, once you know the country, then if you were using data feeds to display your prices, you would pass the currency number value to the feed url.

 

the tutorial below, by Modules Garden, shows how to do something similar within WHMCS - but it might also help you to find a way to achieve it outside of WHMCS too...

 

http://www.blog.modulesgarden.com/automatic-currency-and-language-setup-for-whmcs/

Link to comment
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated