Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide a Category in the Categories list


KJ666

Recommended Posts

Posted

I want to be able to remove a category name from the categories list but still be able to get to the page via a link in a nav bar im making ??

How can i do this ?

Posted

I want to be able to remove a category name from the categories list but still be able to get to the page via a link in a nav bar im making ??

How can i do this ?

 

 

Hide Categories & Products http://addons.oscommerce.com/info/5907

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

That did the trick thanks, one more question though is on that one category i want to remove the left hand column, any ideas ?? I know i should use a else fuction im thinking in catalog/product_info.php but not sure what to put ?

 

Maybe somthing like:

 

<?php if ($cPath_array[0]==21){

include(DIR_WS_INCLUDES . );}

else{

require(DIR_WS_INCLUDES . 'column_left.php'); ?>

 

Somthing like that anyway :S

Posted

Ok that leaves me with the gap still there, how do i get round that ??

 

Also i editted it in product_info.php, but that just the product where do i edit for the category list of products ??

EDIT: found that in index.php but with the same code below?

 

<td class="left-column" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //--><?php
if ($current_category_id != 21) require(DIR_WS_INCLUDES . 'column_left.php'); 
?>
<!-- left_navigation_eof //-->
</table></td>

Posted

Hide Categories & Products http://addons.oscommerce.com/info/5907

 

 

Ok i have just noticed another problem with this now, i would like it to still show the sub-categorys as i have a link in my nav bar to the main category, and then want it to show the sub-categorys how could i do this ?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...