I have some categories and sub categories in the left menu. If you click on category, then you will see also the subcategories, but if you click on product and see product page the subcategories in the left menu disappear. Do you have any idea what to do with it?
Thanks a lot!
QC Loaded 1.4
» Quick.Cart v1.x
merci
2007-04-30 10:48
ondrasus - you have to edit index.php 1) find this:
@treewood, beholder & to all whom it may concern... how i solved this for QC3.X
There is one change in function attributes. In the throwMenu function, you have to add the $iProduct parameter. So the function looks now: function throwMenu( $sFile, $iType, $iPageCurrent = null, $iDepthLimit = 1, $iProduct ) Don't forget to change the calls of the function in /themes/default+order.php Then in the throwMenu function you have to add a bit of cookie. Under the line: $this->mData = null; add this: if( !isset( $iProduct ) ) setCookie('lastViewed', $iPageCurrent, 0 ); if( isset( $iProduct)) $iPageCurrent = $_COOKIE['lastViewed'];
I tried this first with exploding DB_PRODUCTS_PAGES but if there are more pages for 1 product (producers, categories,...), depends on the sequence(order) in DB, the menu stayed open on the pageCurrent, or jumped to producers menu, where the product was also saved. So I thought, better save for short (0 time in cookie) the last viewed page (because from this last viewed page, you click on the product). Now, by clicking on the product, the throwMenu gets internal the iPageCurrent parameter, so it can stay open.