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.

 

Shopper Group assigned to country using GeoIP

Shopper Group assigned to country using GeoIP

Hi,

i am using
- Joomla 2.5
- VirtueMart 2.0
- Metamod 3.13b
- GeoLocator 1.5.0

I need a help with a little problem. I need to set shopper group by country of visitor (not logged in).

If someone comes from Ireland, his Shopper Group will be different than the shopper group of someone who come from Australia (without the need of logging in)

I allready have something like:
if ($fromCountryId == "CZ") $shoppergroup = 3;

I really have no clue how to continue. Thank you for your time.
Daniel

danho
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Shopper Group assigned to country using GeoIP

Hi,

you can do this with Chameleon, not with MetaMod -- by the time MetaMod runs its PHP, VirtueMart has already calculated everything with the existing shopper group. Chameleon runs before VM starts up, so it can change the shopper group.

With Chameleon you can set up a rule with "CZ" as the country, then select the shopper group from a dropdown in the "Succeed action".

Then create a new rule for each country that you want to assign a new shopper group for.

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
181

Online: 
There are no members online

Forum Legend:

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