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
<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
<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
<?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
<?php | |
/** | |
* Jomniaga Conversion code | |
* | |
* Put this file to catalog/view/theme/default/template/common/success.tpl | |
* before | |
* <?php echo $content_bottom; ?> | |
* | |
*/ | |
if(isset($this->session->data['jomniaga'])){ |
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 | |
$destination_url = Array( | |
0 => 'http://www.google.com', | |
1 => 'http://www.google.com', | |
2 => 'http://www.google.com' | |
); | |
$split_percentage = Array( | |
0 => 50, |
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
private $zones = array( | |
'UM12' => '-12:00', | |
'UM11' => '-11:00', | |
'UM10' => '-10:00', | |
'UM95' => '-9:30', | |
'UM9' => '-9:00', | |
'UM8' => '-8:00', | |
'UM7' => '-7:00', | |
'UM6' => '-6:00', | |
'UM5' => '-5:00', |
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
$post_string = 'cmd=_notify-validate&' . file_get_contents("php://input"); | |
$ch = curl_init(PAYPAL_URL); | |
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); | |
curl_setopt($ch, CURLOPT_POST, 1); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_string); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); | |
curl_setopt($ch, CURLOPT_FORBID_REUSE, 1); |