/** * Constructor * * @since 2.2 */ public function __construct() { // Add social library according to the social integration $qtcParams = JComponentHelper::getParams('com_quick2cart'); $socialintegration = $qtcParams->get('integrate_with', 'none'); // Load main file jimport('techjoomla.jsocial.jsocial'); jimport('techjoomla.jsocial.joomla'); if ($socialintegration != 'none') { if ($socialintegration == 'JomSocial') { jimport('techjoomla.jsocial.jomsocial'); } elseif ($socialintegration == 'EasySocial') { jimport('techjoomla.jsocial.easysocial'); } } $getLanguageConstantForJs = comquick2cartHelper::getLanguageConstantForJs(); }
JHtml::_('behavior.formvalidation'); jimport('joomla.form.formvalidator'); JHtml::_('behavior.tooltip'); JHtmlBehavior::framework(); jimport('joomla.html.parameter'); jimport('joomla.filesystem.file'); JHtml::_('behavior.modal'); $root_url = JUri::root(); $document = JFactory::getDocument(); if (!class_exists('comquick2cartHelper')) { //require_once $path; $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php'; JLoader::register('comquick2cartHelper', $path); JLoader::load('comquick2cartHelper'); } $getLanguageConstantForJs = comquick2cartHelper::getLanguageConstantForJs(); $stepjs_initalization = "\nvar qtc_cartAlertMsg =\"" . JText::_("COM_QUICK2CART_COULD_NOT_CHANGE_CART_DETAIL_NOW") . "\";\nvar qtc_shipMethRemovedMsg =\"" . JText::_("COM_QUICK2CART_COULD_NOT_CHANGE_SHIPMETH_DETAIL_NOW") . "\";\n\n"; $document->addScriptDeclaration($stepjs_initalization); //$document->addScript($root_url.'components/com_quick2cart/assets/js/fuelux2.3loader.min.js'); $document->addStyleSheet($root_url . 'components/com_quick2cart/assets/css/fuelux2.3.1.css'); $document->addStyleSheet($root_url . 'components/com_quick2cart/assets/css/qtc_steps.css'); //$document->addScript($root_url.'components/com_quick2cart/assets/js/qtc_steps.js'); //$document->addScript($root_url.'components/com_quick2cart/assets/js/flowplayer-3.2.9.min.js'); $user = JFactory::getUser(); $jinput = JFactory::getApplication()->input; $params = JComponentHelper::getParams('com_quick2cart'); $entered_numerics = "'" . JText::_('QTC_ENTER_NUMERICS') . "'"; ?> <div class="<?php echo Q2C_WRAPPER_CLASS; ?>