Open menu by product view

boboo

Avatar: boboo

2013-01-12 13:21

Clicking on product from the list, the menu will be closed.
A small change in the code will keep the menu open.
In index.php under:

if(isset($iContent)&&is_numeric($iContent)){


add:

$_SESSION['iLastViewedPage']=$iContent;


in /core/pages.php in function throwMenu above the line:

if(isset($iPageCurrent))


add:

if(!isset($iPageCurrent))
 
$iPageCurrent=$_SESSION['iLastViewedPage'];



Fertig.

» Quick.Cart v6.x

www.kimla.de

treewood (OpenSolution)

Avatar: treewood

2013-01-14 12:08

The script will display errors when someone will open product details without choosing category before. For example when visitor will come from google.

it should be:
$iPageCurrent = isset( $_SESSION['iLastViewedPage'] ) ? $_SESSION['iLastViewedPage'] : null;

boboo

Avatar: boboo

2013-01-14 12:19

For example when visitor will come from google


This, what i forgot.
Thanks, Treewood.

www.kimla.de

AnnaN

Avatar: AnnaN

2015-07-21 18:05

Witam, Czy można prosić o poprawny kod do ver. Quick.Cart v5.x ?

AnnaN

Avatar: AnnaN

2015-09-23 18:59

Bardzo mi na tym zależy, dlatego ponowię moją prośbę :) Mam darmową wersję 5.0 i chciała bym aby po wejściu w dany produkt nadal było rozwinięte menu danego produktu ( nie wszystkie ), również wchodząc bezpośrednio z google. Bardzo proszę o pomoc.

Quick.Cart 5.0 darmowe

Back to top
about us | contact