Jump to content
Rdev

utiliser l'id du guest dans le fichier settings.inc.php

Recommended Posts

Bonjour,

 

je veux changer la template selon l'id du visiteur,

 

j'ai créé une variable dans le fichier settings.inc.php

$invite

la déclaration de la variable

global $cookie;
$invite=(int)($cookie->id_guest);

et j'ai fait un test mais ne fonctionne pas

if ($invite ==xxxx])
  define('_THEME_NAME_', 'mon_theme');
else
  define('_THEME_NAME_', 'prestashop');

le code final

global $cookie;
$invite=(int)($cookie->id_guest);

if ($invite ==xxxx])
  define('_THEME_NAME_', 'mon_theme');
else
  define('_THEME_NAME_', 'prestashop');

le code ne marche pas qui a une petite idée comment faire, version prestashop 1.4.2

 

merci

Edited by Rdev (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More