Re: Display All Subcat Products in Parent Cat
HI,
I try to put product into home but no luck?
home.php
#
# $Id: home.php,v 1.10.2.3 2008/04/11 18:09:11 osipov Exp $
#
define('OFFERS_DONT_SHOW_NEW',1);
require "./auth.php";
require $xcart_dir."/include/categories.php";
if ($active_modules["Manufacturers"])
include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";
#if (!empty($cat))
include "./products.php";
if (empty($products))
include "./featured_products.php";
if ($active_modules["Bestsellers"])
include $xcart_dir."/modules/Bestsellers/bestsellers.php";
if (!empty($current_category) and is_array($current_category["category_location"])) {
foreach ($current_category["category_location"] as $k => $v)
$location[] = $v;
}
if (!empty($active_modules["Special_Offers"])) {
include $xcart_dir."/modules/Special_Offers/category_offers.php";
}
# Deleting the previously saved user information received from PayPal (Is performed when the user exits the checkout process)
if (x_session_is_registered("paypal_token") || x_session_is_registered("paypal_express_details")) {
x_session_unregister('paypal_token');
x_session_unregister("paypal_express_details");
}
#
# Assign Smarty variables and show template
#
$smarty->assign("main","catalog");
# Assign the current location line
$smarty->assign("location", $location);
func_display("customer/home.tpl",$smarty);
?>
|