verdesoto Posted November 22, 2011 Share Posted November 22, 2011 Hi, for the prestashop i'm configuring i need to add an iframe on a cms page, but that iframe can only be seen if the user is logged, and i need to parse user data to be sent from that iframe to a table on my database. Please help me to get the code right Link to comment Share on other sites More sharing options...
verdesoto Posted November 22, 2011 Author Share Posted November 22, 2011 Ok solved it by including cinfig.inc.php and Cookie.php, setting the cookie variable but setting it to 'ps' you should be done require("config/config.inc.php"); require("classes/Cookie.php"); $cookie = new Cookie('ps'); if($cookie->id_customer){ 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