Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

[solved] Switch Module by US States

[solved] Switch Module by US States

Hi,

I need to setup my site to switch between 2 modules based on the user's region (US State)

5 states will see a module with the prices (CO, WY, NE, NM, UT)

All other areas need to see a module without prices

Is there a simple way to set this up?

Thanks!

JanFar
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: [solved] Switch Module by US States

I figured it out!

Very easy!

if ($geoip->region == "WY" ) return 228;
else return 227;

JanFar
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1694
Total Polls:
6
Total Posts:
5939
Posts this week:
3
User Info:
 
Total Users:
6293
Newest User:
pearsonhall
Members Online:
1
Guests Online:
149

Online: 
pearsonhall

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked