select class working on products

tevart

Avatar: tevart

2013-10-04 14:05

I wan't to have subpage with select class also when you open product. Right now it only shows select state of submenus when you are actually on the submenu with products list, but when you view one product, select state is gone.

Is it possible to have select state even when browsing specific product?

tnx

» Quick.Cart v5.x

boboo

Avatar: boboo

2013-10-04 16:16

http://opensolution.org/forum/open-menu-by-product-view,8207.html

boboo

tevart

Avatar: tevart

2013-10-07 12:56

Tnx...but this solution is for ver6, where i still use ver5

Any solution for older version?

boboo

Avatar: boboo

2013-10-07 14:10

Did You try it on Your version?

boboo

tevart

Avatar: tevart

2013-10-08 08:45

I did...but i could not find code you mention in index.php. I did change code in core/pages.php

boboo

Avatar: boboo

2013-10-08 09:37

the code (isset(content...is_numeric(content))) in the 5.x versions (and older) is in:
actions/pages.php

boboo

tevart

Avatar: tevart

2013-10-08 10:37

Yep...found it. But it doesn't work for me. If i understand correctly, this hack enables menu to stay open, when you select product, right? Although this is very helpful (don't know why it's not in default qc), it's not what i need.

Here's what i have

Products cat 1
- subcat 1
- subcat 2
---product 1
---product 2
-subcat3

When i select subcat 2 i have class "selected" added to a tag on list, but when i select product 1, this class is removed from subcat 2. I need class "selected" to always be on subcat 2, when i browse products that are in that category.

I'm also using hack to chow subpages in container, but this should not be the issue, right?

boboo

Avatar: boboo

2013-10-08 11:42

I've just tried on QC5.
It works, and the subcat has a "selected" class while a product from it is open.

boboo

tevart

Avatar: tevart

2013-10-08 13:26

Ok...thanks. Will have to investigate some more in my case. I have very modified implementation of product menu, so this could be the problem.

Back to top
about us | contact