/** * Function used to update * * @param INT $called_frm //Mundhe complet this * * @return Array * * @since 1.0.0 */ public function update_mod($called_frm = '0') { $lang = JFactory::getLanguage(); $lang->load('mod_quick2cart', JPATH_ROOT); $comquick2cartHelper = new comquick2cartHelper(); jimport('joomla.application.module.helper'); if (JModuleHelper::getModule('mod_quick2cart')) { $module = JModuleHelper::getModule('mod_quick2cart'); if (JVERSION < '1.6.0') { $moduleParams = new JParameter($module->params); $layout = $moduleParams->get('viewtype'); $ckout_text = $moduleParams->get('checkout_text'); } else { $moduleParams = json_decode($module->params); if (!empty($moduleParams)) { $layout = $moduleParams->viewtype; $ckout_text = $moduleParams->checkout_text; } } } if (isset($layout) && isset($ckout_text)) { $data = $comquick2cartHelper->get_module($layout, $ckout_text); } else { $data = $comquick2cartHelper->get_module(); } echo $data; jexit(); }
</th> <th><?php echo JText::_('QTC_MOD_PRICE'); ?> </th> </tr> </thead> <?php } ?> <tbody class="qtc_modulebody"> <?php // IF cart is empty if (!empty($cart)) { echo $comquick2cartHelper->get_module($params->get('viewtype'), $ckout_text); } else { ?> <tr> <td colspan="2"> <div class="well"><?php echo JText::_('CCK_CART_EMPTY_CART'); ?> </div> </td> </tr> <?php if (isset($aftercartdisplay)) { ?> <tr>