Guest Posted February 26, 2003 Share Posted February 26, 2003 Is there a way or mod where you can set a default catagory instead of the all random products in all catagories? This what i mean: Show: Movies Action Comedy Drama Horror Toys Clothing Electronics Books Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Anyone? Quote Link to comment Share on other sites More sharing options...
emiliano Posted February 27, 2003 Share Posted February 27, 2003 i can't understand what are you trying to say!!! cheers emiliano Quote patagonia, argentina Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Is there a way you can display a default catagory at the start page instead of its displaying the "top" or main default.php? This what i mean: Show a default catagory: http://www.oscommerce.com/osCommerce22ms1/...ult.php?cPath=1 Top/main page with products from all catagories: http://www.oscommerce.com/osCommerce22ms1/default.php What a i want is a default catagory shown at the main page level instead of products from all catagories showing unless the use chooses to. Quote Link to comment Share on other sites More sharing options...
Ajeh Posted February 27, 2003 Share Posted February 27, 2003 Not sure if this is what you are looking for but stick this at the top of default.php beneath the applications_top.php line: if ($current_category_id==0) { $current_category_id=3; $cPath=3; } Quote Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Great. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 Is there a way i can change the column_right.php & column_left.php in default to show something different (like from column_right.php to column_right2.php) when in the top and catagory level? For example this is what i mean: If default.php or main/top then show column_right2.php If default.php is in a catagory then show column_right.php Ive tried messin around with it but i dunno. <?php If $new_products_category_id = $current_category_id; include(DIR_WS_INCLUDES . 'column_right.php'); {else } include(DIR_WS_INCLUDES . 'column_right2.php'); ?> I know this looks horrid cus my php skills sucks. Quote Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 Tried codes like: <!-- right_navigation //--> <?php if $current_category_id==0; include(DIR_WS_INCLUDES . 'column_right.php'); {else} include(DIR_WS_INCLUDES . 'column_right2.php'); ?> <!-- right_navigation_eof //--> Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted March 2, 2003 Share Posted March 2, 2003 Anyone? Quote Link to comment Share on other sites More sharing options...
Ajeh Posted March 2, 2003 Share Posted March 2, 2003 You might try this instead: <!-- right_navigation //--> <?php if ($current_category_id==0) { include(DIR_WS_INCLUDES . 'column_right.php'); } else { include(DIR_WS_INCLUDES . 'column_right2.php'); } ?> <!-- right_navigation_eof //--> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.