addScript("components/com_jblance/js/utility.js"); $doc->addScript("components/com_jblance/js/simplemodal.js"); $doc->addStyleSheet("components/com_jblance/css/simplemodal.css"); $app = JFactory::getApplication(); $user = JFactory::getUser(); $model = $this->getModel(); $config = JblanceHelper::getConfig(); $taxpercent = $config->taxPercent; $taxname = $config->taxName; $session = JFactory::getSession(); $ugid = $session->get('ugid', 0, 'register'); $planChosen = $session->get('planChosen', 0, 'register'); $planId = $session->get('planid', 0, 'register'); $skipPlan = $session->get('skipPlan', 0, 'register'); $jbuser = JblanceHelper::get('helper.user'); // create an instance of the class UserHelper if(empty($planId)){ //this is to check if the user has selected plan and entered this page $link = JRoute::_('index.php?option=com_jblance&view=guest&layout=showfront', false); $app->redirect($link); } $step = $app->input->get('step', 0, 'int'); JText::script('COM_JBLANCE_AVAILABLE'); $termid = $config->termArticleId; $link = JRoute::_("index.php?option=com_content&view=article&id=".$termid.'&tmpl=component'); JblanceHelper::setJoomBriToken(); ?>
0) : ?>
0){ $taxamt = $totalamt * ($taxpercent/100); $totalamt = $taxamt + $totalamt; } echo JblanceHelper::formatCurrency($totalamt); if($taxpercent > 0 && $totalamt > 0){ echo ' ('.JblanceHelper::formatCurrency($planChosen['price'.$sub_id]).' + '.JblanceHelper::formatCurrency($taxamt).')'; } ?>