prepareAjaxData($checkAutomaticPS); if (!class_exists('CurrencyDisplay')) require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'currencydisplay.php'); $currencyDisplay = CurrencyDisplay::getInstance( ); $lang = JFactory::getLanguage(); $extension = 'com_virtuemart'; $lang->load($extension);// when AJAX it needs to be loaded manually here >> in case you are outside virtuemart !!! if ($data->totalProduct>1) $data->totalProductTxt = JText::sprintf('COM_VIRTUEMART_CART_X_PRODUCTS', $data->totalProduct); else if ($data->totalProduct == 1) $data->totalProductTxt = JText::_('COM_VIRTUEMART_CART_ONE_PRODUCT'); else $data->totalProductTxt = JText::_('COM_VIRTUEMART_EMPTY_CART'); if (false && $data->dataValidated == true) { $taskRoute = '&task=confirm'; $linkName = JText::_('COM_VIRTUEMART_ORDER_CONFIRM_MNU'); } else { $taskRoute = ''; $linkName = JText::_('COM_VIRTUEMART_CART_SHOW'); } $useSSL = VmConfig::get('useSSL',0); $useXHTML = true; $data->cart_show = ''.$linkName.''; $data->billTotal = $lang->_('COM_VIRTUEMART_CART_TOTAL').' : '. $data->billTotal .''; //vmJsApi::jPrice(); vmJsApi::cssSite(); $document = JFactory::getDocument(); //$document->addScriptDeclaration($jsVars); $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $show_price = (bool)$params->get( 'show_price', 1 ); // Display the Product Price? $show_product_list = (bool)$params->get( 'show_product_list', 1 ); // Display the Product Price? /* Laod tmpl default */ require(JModuleHelper::getLayoutPath('mod_virtuemart_cart')); echo vmJsApi::writeJS(); ?>