@ current PRODUCT, menu3 not expand -> my SOLUTION

puetro

Avatar: puetro

2012-03-09 12:08

I thing it is a bug, but maybe not for someone.

I need to have menu3 (left menu, product category menu) expanded - focused - on parent categry, if i am on current product.

I found in ARRAY structure that the ID of category is saved by the product details.
My solution is wery simple. EDIT actions/themes/default.php =>

ADD:
if (!$iContent) $iContent = reset($aData[aCategories]);
BEFORE
if( !isset( $bBlockPage ) ){..........

It is not PERFECT solution!!!!!!!!!!!!!! Because, whenn a PRODUCT is in more than ONE category, it will SEEK the FIRST ONE of them!!!!! But for me is USABLE bocause i have product only in one CATEGORY

There is another one solution, in theoretical line, that i PARSE the REFERER and compare LAST visited ID with the ARRAY of VALID IDs for current product.
If i found EQUAL i will CHOSE the REFFERER one, if not i will choose FIRST one.

Please correct me someone

» Quick.Cart v5.x

puetro

about us | contact