Rdev Posted December 28, 2013 Share Posted December 28, 2013 (edited) 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 December 28, 2013 by Rdev (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now