コード例 #1
0
 * @author     Techjoomla <*****@*****.**>
 * @copyright  Copyright (c) 2009-2015 TechJoomla. All rights reserved.
 * @license    GNU General Public License version 2 or later.
 */
// No direct access.
defined('_JEXEC') or die;
jimport('joomla.html.html.list');
$comquick2cartHelper = new comquick2cartHelper();
$productHelper = new productHelper();
$input = JFactory::getApplication()->input;
// Start vars
$qtc_catname = !empty($qtc_catname) ? $qtc_catname : "prod_cat";
$qtc_store_id = !empty($qtc_store_id) ? $qtc_store_id : "";
$qtc_view = !empty($qtc_view) ? $qtc_view : "category";
$qtc_layout = !empty($qtc_layout) ? $qtc_layout : "";
$categoryProductsCount = $productHelper->getCategoryProductsCount($qtc_store_id);
$classes = !empty($qtc_classes) ? $classes : '';
$max_scroll_ht = !empty($qtc_mod_scroll_height) ? trim($qtc_mod_scroll_height) . 'px' : '412px';
$scroll_style = "overflow-y:auto; max-height:" . $max_scroll_ht . "; overflow-x:hidden;";
?>

<?php 
$qtc_linkparam = array();
if (!empty($qtc_view)) {
    $qtc_linkparam[] = "view=" . $qtc_view;
}
if (!empty($qtc_layout)) {
    $qtc_linkparam[] = "layout=" . $qtc_layout;
}
if (!empty($qtc_store_id)) {
    $qtc_linkparam[] = "store_id=" . $qtc_store_id;