$cats = $viewReleated_cats; } else { $options = (array) $options; $comp_option = $input->get("option"); // JUGAD fix for error #20162 $path = JPATH_SITE . DS . 'libraries' . DS . 'joomla' . DS . 'html' . DS . 'html' . DS . 'category.php'; if (!class_exists('JHtmlCategory')) { JLoader::register('JHtmlCategory', $path); JLoader::load('JHtmlCategory'); } // JUGAD fix for error #20162 if (!empty($comp_option)) { $qtc_cat_options = JHtml::_('category.options', 'com_quick2cart', array('filter.published' => array(1))); } else { // Get categories manually $qtc_cat_options = $comquick2cartHelper->getQ2cCats(1); } $cats = array_merge($options, $qtc_cat_options); } // GETTING ITEM ID $catItemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&' . $qtc_linkparam); ?> <div class="row-fluid qtc_category_list <?php echo $classes; ?> " style="<?php echo $scroll_style; ?> "> <div class="span12">