Lookup Country by IP Address

Miva Merchant Version: Miva Merchant 5.5
Quantity:

Module Details

Price
$24.97
In stock
Module Code
NBCNTRYLU5
Module Type
Component, Utility
Current Version
5.0
Level of Difficulty
Easy

This module uses the GeoIP service from MaxMind to look up the country of each visitor based his or her IP address. The two-letter country code is stored in a variable that can be accessed through SMT code for a variety of purposes:

  • Limit Pricing to Only Certain Countries
  • Block Checkout from High-Fraud Countries
  • Show Country-Specific Content to Different Visitors
  • ...and more more

Here is some sample SMT code that shows you how to use the code in a template:

You are visiting from country: &mvt:ipcountry;<br />
<mvt:if expr="l.settings:ipcountry EQ 'US'">
	Welcome US visitor<br />
<mvt:else>
	Welcome International visitor<br />
</mvt:if>

MaxMind GeoIP is a paid service based on the number of calls made to its interface. At the moment this module makes one call each time the component is loaded, which is typically once per page load. If necessary, we will add session caching to the module.

Special Sale Price on Lookup Country by IP Address right now! Normal price will be $39.97. This sale will end ON OR BEFORE 6/17/2011 so get it now!


System Requirements


.