<?php
session_start();
/*
asaancart - easy shopping cart solution
---------------------------------------
Copyright 2009 Nasir Ahmad Khan
Email: hide@address.com
This file is part of asaancart - open source easy shopping cart solution.
asaancart is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
asaancart is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with asaancart. If not, see <http://www.gnu.org/licenses/>.
*/
include("../config/config.php");
include("classes/functions.php");
if (session_id() == "") session_start();
$session_id = session_id();
include("includes/global_settings.php");
$category_name = $_GET['category_name'];
$category_id = $_GET['category_id'];
$smarty->assign('categoryInfo', getCategoryById($category_id));
$smarty->assign('subCategories', getSubCategories($category_id));
$smarty->assign('totalSubCategories', getTotalSubCategories($category_id));
$smarty->assign('allProducts',getProductsByCategory($category_id));
$smarty->assign('totalProducts',getTotalProductsByCategory($category_id));
$smarty->assign('specialProducts', getSpecialProductsByCategory($category_id));
$smarty->assign('clearenceProducts', getClearenceProductsByCategory($category_id));
$smarty->assign('newArrivalProducts', getNewArrivalProductsByCategory($category_id));
$smarty->assign('featuredProducts',getFeaturedProductsByCategory($category_id));
$smarty->assign('totalSpecialProducts', getTotalSpecialProductsByCategory($category_id));
$smarty->assign('totalClearenceProducts', getTotalClearenceProductsByCategory($category_id));
$smarty->assign('totalNewArrivalProducts', getTotalNewArrivalProductsByCategory($category_id));
$smarty->assign('totalFeaturedProducts',getTotalFeaturedProductsByCategory($category_id));
$smarty->assign('title',$category_name);
$smarty->assign('category_id',$category_id);
$smarty->assign('category_name',$category_name);
$smarty->assign('template','category');
$smarty->display('shop/site_index.tpl');
?>