stlo82 Posted December 4, 2008 Share Posted December 4, 2008 Is there a way to adjust what the first page is that opens when a viewer goes to your store. For example, when you go to my store www.mitoazul.com/store/catalog the first page that opens says "What's New". I would rather the products page open. Is this possible. Ben Link to comment Share on other sites More sharing options...
jefs.42 Posted December 4, 2008 Share Posted December 4, 2008 Do you mean you'd like it to go straight to a particular category? If so you can edit index.php. At the top is a section like this // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } add an else statement to that last } so it looks like this: } else { tep_redirect('index.php?cPath=3'); } This will make it redirect to the category 3 if no category has been selected. You can just replace the 3 here with whatever the id of your own category you want it to go to Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.