zencart display featured products by some category飞龙修订于 20100823 08:30 83 次浏览
When studying zencart temmplate,you will confront the problem,how to display featured products by some category.If you want to display or not to display featured products by or in some category,feilong tell you my answer just this post:zencart-display-featured-products-by-category 1. first to display featured products needs these files,they are in your zencart temmplate or languages or modules 1) tpl_index_default.php: where you want to display featured products. 2) tpl_modules_featured_products.php: a featured products area for you. 3) tpl_columnar_display.php: generating tabular output title and content . 4) featured_products.php: this is the key php file featured products content . 2. open 'featured_products.php', add some code which is highlighted in red // initialize vars $categories_products_id_list = ''; $list_of_products = ''; $featured_products_query = ''; $display_limit = ''; $where_str = " AND p.master_categories_id = 13 ";//a......