$results = $dispatcher->trigger('onPrepareContent', array(&$o, &$x, 0)); $ReceiptTemplate = $o->text; // End echo eval("?>" . $ReceiptTemplate . "<?php "); // Handle order total for split payment $session = JFactory::getSession(); $issplit = $session->get('issplit'); if ($issplit) { $split_amount = $order->order_total / 2; $order->order_total = $split_amount; } // End $billingaddresses = $model->billingaddresses(); // Google analytics code added require_once JPATH_COMPONENT . '/helpers/google_analytics.php'; $googleanalytics = new googleanalytics(); $analytics_status = $order->analytics_status; if ($analytics_status == 0 && GOOGLE_ANA_TRACKER_KEY != "") { $orderTrans = array(); $orderTrans['order_id'] = $order->order_id; $orderTrans['shopname'] = SHOP_NAME; $orderTrans['order_total'] = $order->order_total; $orderTrans['order_tax'] = $order->order_tax; $orderTrans['order_shipping'] = $order->order_shipping; $orderTrans['city'] = $billingaddresses->city; if (isset($billingaddresses->country_code)) { $orderTrans['state'] = $order_functions->getStateName($billingaddresses->state_code, $billingaddresses->country_code); } if (isset($billingaddresses->country_code)) { $orderTrans['country'] = $order_functions->getCountryName($billingaddresses->country_code); }
$portal = 0; if (count($sgportal) > 0) { $portal = $sgportal->shopper_group_portal; } $user = JFactory::getUser(); if ($task != 'loadProducts' && $task != "downloadProduct" && $task != "discountCalculator" && $task != "ajaxupload" && $task != 'getShippingrate' && $task != 'addtocompare' && $task != 'ajaxsearch' && $task != "Download" && $task != 'addtowishlist') { echo "<div id='redshopcomponent' class='redshop'>"; if ($format != 'final' && $layout != 'receipt') { /* * get redSHOP Google Analytics Plugin is Enable? * If it is Disable than load Google Analytics From redSHOP */ $isredGoogleAnalytics = JPluginHelper::isEnabled('system', 'redgoogleanalytics'); if (!$isredGoogleAnalytics && GOOGLE_ANA_TRACKER_KEY != "") { require_once JPATH_COMPONENT . '/helpers/google_analytics.php'; $google_ana = new googleanalytics(); $anacode = $google_ana->placeTrans(); } } } if (PORTAL_SHOP == 1) { if ($controller == 'product' && $productid > 0 && $user->id > 0) { $checkcid = $helper->getShopperGroupProductCategory($productid); if ($checkcid == true) { $controller = 'login'; JRequest::setVar('view', 'login'); JRequest::setVar('layout', 'portal'); $app->enqueuemessage(JText::_('COM_REDSHOP_AUTHENTICATIONFAIL')); } } elseif ($controller == 'category' && $categoryid > 0 && $user->id > 0) { $checkcid = $helper->getShopperGroupCategory($categoryid);