Exemplo n.º 1
0
//var_dump($order_id); die("asdfasdf");
if (empty($order_id)) {
    ?>
	<div class="well" >
		<div class="alert alert-error">
			<span ><?php 
    echo JText::_('SA_UNABLE_TO_TRACK_ORDER_ID');
    ?>
 </span>
		</div>
	</div>
	<?php 
    return false;
}
$socialadshelper = new socialadshelper();
$adDetail = $socialadshelper->getOrderAndAdDetail($order_id);
//var_dump($adDetail); die;
$this->chargeoption = $adDetail['ad_payment_type'];
$this->ad_totaldisplay = $adDetail['ad_credits'];
// no of clicks or impression
//print"<pre>"; print_r($adDetail); print"</pre>"; //die;
// VM:: hv to add and code for jomsical points ( we are looking later for jomscial points)
$gatwayName = 'bycheck';
$plugin = JPluginHelper::getPlugin('payment', $gatwayName);
if (0 && $socialads_config['select_campaign'] == 0) {
    $pluginParams = json_decode($plugin->params);
    $this->assignRef('ad_gateway', $pluginParams->plugin_name);
    //added by sagar//
    $arb_enforce = '';
    $this->assignRef('arb_enforce', $pluginParams->arb_enforce);
    $arb_enforce = '';