Skip to content

Instantly share code, notes, and snippets.

View hanafiah's full-sized avatar
🏠
Working from home

Muhamad Hanafiah Yahya hanafiah

🏠
Working from home
View GitHub Profile
@hanafiah
hanafiah / jomniaga-opencart-confirm.tpl.php
Created August 2, 2013 07:04
Part A . Put this code to catalog/view/theme/default/template/checkout/confirm.tpl
<?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>
*
*/
@hanafiah
hanafiah / jomniaga-lead-tracking
Last active December 20, 2015 13:18
Below is the standard LEAD integration code. You will need to put this into your thank you page after the lead has confirmed his email address. Please pass the email address as the unique tracking ID for leads. <br/> TRACKING_VALUE - The email address of your lead
<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>
@hanafiah
hanafiah / jomniaga-sale-tracking
Last active December 20, 2015 13:18
Below is the standard SALE integration code. You will need to put this into your thank you page after the invoice is generated, and before payment is made. Please pass the order number or invoice number as the unique tracking value. SALE_AMOUNT - The total amount as per your order / invoice TRACKING_VALUE - The invoice number of the transaction
<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>
@hanafiah
hanafiah / jomniaga-sale-tracking.js
Created August 2, 2013 03:52
Below is the standard SALE integration code. You will need to put this into your thank you page after the invoice is generated, and before payment is made. Please pass the order number or invoice number as the unique tracking value. SALE_AMOUNT - The total amount as per your order / invoice TRACKING_VALUE - The invoice number of the transaction
<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>
echo $_SERVER['GEOIP_COUNTRY_CODE'];
echo $_SERVER['GEOIP_COUNTRY_NAME'];
LoadModule geoip_module modules/mod_geoip.so
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile /usr/src/geoip/GeoIP.dat
</IfModule>
mkdir /usr/src/geoip
mv GeoIP.dat /usr/src/geoip/
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
cd mod_geoip2_1.2.7
apxs -i -a -L/usr/local/lib -I/usr/local/include -lGeoIP -c mod_geoip.c
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