This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Jomniaga Conversion code | |
* | |
* Put this file to catalog/view/theme/default/template/checkout/confirm.tpl | |
* before | |
* </div> | |
* <div class="payment"><?php echo $payment; ?></div> | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://www.jomniaga.com/api/conversion?transtype=LEAD&tracking=TRACKING_VALUE"></script> | |
<noscript><img src="http://www.jomniaga.com/api/conversion?transtype=LEAD&tracking=TRACKING_VALUE" width="1" height="1" border="0" /></noscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://www.jomniaga.com/api/conversion?transtype=SALE&amount=SALE_AMOUNT&tracking=TRACKING_VALUE"></script> | |
<noscript><img src="http://www.jomniaga.com/api/conversion?transtype=SALE&amount=SALE_AMOUNT&tracking=TRACKING_VALUE" width="1" height="1" border="0" /></noscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://www.jomniaga.com/api/conversion?transtype=SALE&amount=SALE_AMOUNT&tracking=TRACKING_VALUE"></script> | |
<noscript><img src="http://www.jomniaga.com/api/conversion?transtype=SALE&amount=SALE_AMOUNT&tracking=TRACKING_VALUE" width="1" height="1" border="0" /></noscript> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo $_SERVER['GEOIP_COUNTRY_CODE']; | |
echo $_SERVER['GEOIP_COUNTRY_NAME']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoadModule geoip_module modules/mod_geoip.so | |
<IfModule mod_geoip.c> | |
GeoIPEnable On | |
GeoIPDBFile /usr/src/geoip/GeoIP.dat | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir /usr/src/geoip | |
mv GeoIP.dat /usr/src/geoip/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz | |
gunzip GeoIP.dat.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd mod_geoip2_1.2.7 | |
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://geolite.maxmind.com/download/geoip/api/mod_geoip2/mod_geoip2_1.2.7.tar.gz | |
tar zxvf mod_geoip2_1.2.7.tar.gz |