Jump to content

Automatically select Country in cart


Serenade

Recommended Posts

I use WHMCS for non-hosting purposes, and hide every field on my cart except for the First Name, Email and Password.

 

Because of this, the selected Country field is always the default country, which is not very useful for analytics. What I'm looking for is a way to have the country field pre-selected based on the IP of the customer. I'm fairly certain this is possible. I found this tutorial to automatically set the currency and language based on country: http://blog.whmcs.com/?t=67990

 

The issue with this however is that I only really need it to select the country on the cart, not on every page load. That, and I need it to somehow select it from the dropdown, or the cart session variable. I'm not a developer so I have no idea how to go about doing any of that. If anyone has any ideas it'd be greatly appreciated.

Link to comment
Share on other sites

  • 2 weeks later...

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