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:
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!
Join our newsletter for up-to-the-minute news on NetBlazon products, Miva Merchant tips and tricks, and more.
Newsletter Archives