Jump to content

recuperation variable block cart


Recommended Posts



je voudrais récupérer la variable $param du fichier blockcart.php dans le module blockcart et la placer dans un cookie

le POO n'est pas mon fort, mon code est en rouge et ne fonctionne pas, quelqu'un peut il m'aider, d'avance merci



public function hookAjaxCall($params)


global $cookie;


if (Configuration::get('PS_CATALOG_MODE'))




$res = $this->display(__FILE__, 'blockcart-json.tpl');

$cookie->__set('test', $param);

return $res;


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