Archived

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

zaro

category_depth == 'nested'

4 posts in this topic

Hello.

 

Im just a newbie learning PHP, so i would really appriciate your help. Well here is my problem :

 

When clicking on main category which contains subcategories, the subcategories are allso displayed on main page. My Idea is that when you click on category, the main page stays the same like before the click (whatever there was, it should stay there, no default page, just the same content). the change will only occour in categories window.

This should affect only solution where subcategoryes are choosen from. other situations like product listing should display on main page like default.

 

The one thing i found affecting this case is category_depth == 'nested' in index.php but im not sure if there is needed to change somthing in there.

 

Thank for suggestions and Please excuse my bad English.

Share this post


Link to post
Share on other sites

the default value in the case structure gives you the front page, no categories selected.

if for instance you change the 'nested' in there to 'idontwantnested' I think it will just fall through into the default category and you'd be fine.

 

just try it, easy change ...

Share this post


Link to post
Share on other sites

Yes if i try it this way, it gives me the default page in my case the "news" page, but. i woult like it not to redirect me to default page, but instead do nothing, for example. im wathing at some product. i click category, for example "cars". now it canges the main page to default, the "news" but i want it to keep there the car, untill i select another product or another subcategory.

 

If u understand what i mean. im not sure if it is possible this way tho.

Share this post


Link to post
Share on other sites