AAAAmod_virtuemart_category.xml000066600000006766151372776720012270 0ustar00 mod_virtuemart_category January 10 2014 The VirtueMart Development Team http://www.virtuemart.net ${PHING.VM.COPYRIGH} http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL 2.0.26d MOD_VIRTUEMART_CATEGORY_DESC mod_virtuemart_category.php helper.php index.html tmpl/all.php tmpl/current.php tmpl/default.php tmpl/index.html language en-GB/en-GB.mod_virtuemart_category.ini en-GB/en-GB.mod_virtuemart_category.sys.ini
mod_virtuemart_category.php000066600000004640151372776720012244 0ustar00get('Parent_Category_id', 0); $class_sfx = $params->get('class_sfx', ''); $moduleclass_sfx = $params->get('moduleclass_sfx',''); $layout = $params->get('layout','default'); $active_category_id = JRequest::getInt('virtuemart_category_id', '0'); $vendorId = '1'; $categories = $categoryModel->getChildCategoryList($vendorId, $category_id); // We dont use image here //$categoryModel->addImages($categories); if(empty($categories)) return false; foreach ($categories as $category) { //$category->childs = VirtueMartModelCategory::getChildCategoryList($vendorId, $category->virtuemart_category_id); //$category->childs = $cache->call( array( 'VirtueMartModelCategory', 'getChildCategoryList' ),$vendorId, $category->virtuemart_category_id ); $category->childs = $categoryModel->getChildCategoryList($vendorId, $category->virtuemart_category_id) ; // No image used here //$categoryModel->addImages($category->childs); } // $catTree = $categoryModel->getCategoriesInfo($vendorId=1 ); // echo json_encode($catTree,JSON_FORCE_OBJECT); $parentCategories = $categoryModel->getCategoryRecurse($active_category_id,0); /* Laod tmpl default */ require(JModuleHelper::getLayoutPath('mod_virtuemart_category',$layout)); ?>index.html000066600000000054151372776720006565 0ustar00helper.php000066600000002273151372776720006565 0ustar00.htaccess000066600000000177151372776720006374 0ustar00 Order allow,deny Deny from all tmpl/.htaccess000066600000000177151372776720007350 0ustar00 Order allow,deny Deny from all tmpl/default.php000066600000003703151372776720007705 0ustar00 " ; $document = JFactory::getDocument(); $document->addScriptDeclaration($js);?> tmpl/index.html000066600000000054151372776720007541 0ustar00tmpl/current.php000066600000002566151372776720007751 0ustar00 tmpl/all.php000066600000002214151372776720007025 0ustar00