Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

category_depth == 'nested'


zaro

Recommended Posts

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.

Link to comment
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 ...

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
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.

Link to comment
Share on other sites

Hmm; Î think you are looking for something like a javascript menu

https://www.google.com/search?q=oscommerce+category+menu

 

using above google search will give you some possibilites, I'd think one of them should offer what you are looking for

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...