Jump to content



Photo
- - - - -

category_depth == 'nested'


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1   zaro

zaro
  • Members
  • 2 posts

Posted 25 June 2012 - 20:25

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.

#2   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,243 posts

Posted 25 June 2012 - 21:18

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 ...
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .

#3   zaro

zaro
  • Members
  • 2 posts

Posted 25 June 2012 - 21:29

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.

#4   bruyndoncx

bruyndoncx

    osCommerce Teenager

  • Members
  • 3,243 posts

Posted 27 June 2012 - 17:54

Hmm; Î think you are looking for something like a javascript menu
https://www.google.c...e category menu

using above google search will give you some possibilites, I'd think one of them should offer what you are looking for
Don't just sit there - contribute to the responsive bootstrap community effort !
http://forums.oscomm...iew__getnewpost


Hava a nice day !
Carine Bruyndoncx


Seen anything good relevant on the net about responsive design for ecommerce ?
You might as well post it in my responsive liive shop review thread .