Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » Shopper Group assigned to country...
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
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
- Index
- » MetaMod
- » MetaMod General Support
- » Shopper Group assigned to country...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7628
- Newest User:
- horlogekorting34
- Members Online:
- 0
- Guests Online:
- 170
- 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