Jump to content

Cookie variable intoan outside file.


rfrunk

Recommended Posts

I am trying to get the "customer_firstname" from the cookie in a file outside of PrestaShop. This is what I have so far with no results. Any help would be greatly appreciated.

<?php
include_once('shop/config/settings.inc.php');
include_once('shop/classes/Cookie.php');
include('shop/tools/smarty/Smarty.class.php');
include('shop/init.php');
echo '$cookie->customer_firstname';
echo '$_COOKIE["customer_firstname"]';
?>

Link to comment
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...