按照單頁的方式做的自定義產品分類頁面樣式,但是顯示的還是默認的樣式,其他樣式沒生效。求指教。
// 自定義產品分類模板
if (file_exists(ROOT_PATH . "theme/$_CFG[site_theme]/" . $product_category['unique_id'] . '.dwt')) {
$smarty->display($product_category['unique_id'] . '.dwt');
} else {
$smarty->display('product_category.dwt');
}