php prestashop cookie



how to access prestashop cookie?
the directory structure islike this
/
|
|-index.php
|
|-prestashop/
   |
   |-(presta shop files)

I manage to do a login from the index.php.
but i cannot access the cookie to check if the user logged in or not.
any way to check it or get the user name


Related to : php prestashop cookie
php prestashop cookie
Programming Languages

how to access prestashop cookie?
the directory structure islike this
/
|
|-index.php
|
|-prestashop/
   |
   |-(presta shop files)

I manage to do a login from the index.php.
but i cannot access the cookie to check if the user logged in or not.
any way to check it or get the user name


Prestashop 1.5 - Import huge data(categories, products, customers, addresses) from another prestashop 1.4 installation,
Programming Languages

i have prestashop 1.5 installed on server A, on server B there is prestashop 1.4 installed with thousands of products and database size is about 500mb. I want to import all those products, categories, customers and their addresses from 1.4 installation to 1.5 installation. I have access to both servers. CSV export for products is taking like forever what should i do to import this all to 1.5.


prestashop assign a cookie in a module
Programming Languages

I would like to get the var $param from file blockcart.php in the module block cart and put it in a cookie. I'm not so good in POO so can anyone tell me what is wrong with my code.


public function hookAjaxCall($params)
{
global $cookie; //mycode
if (Configuration::get('PS_CATALOG_MODE'))
return;
$this->assignContentVars($params);
$res = $this->display(__FILE__, 'blockcart-json.tpl');
$cookie->__set('test', $param); //my code
return $res;
}

Prestashop: switch theme on the fly and read cookie to check param in url
Programming Languages

In order to setup an A/B testing (through GG Analytics), I planned to duplicate my current theme (for organisations purposes) in order to use the duplicated theme to do the alternate versions of the test. I use Prestashop 1.4.9.2 .


What I already did, and works:


Added this to /classes/FrontController.php, in displayHeader() function (I know I should override, but not the point ;)):


if(isset($_GET['alternate']))
{
$cookie->alternate = "1";
$cookie->write();
}

Replaced in /config/settings.

Create Prestashop theme using only PHP
Programming Languages

i wondering if it's possible to create a full theme for prestashop using only PHP, without Smarty.
Thanks


how to apply cookie in php how to store data in cookie how to reset it in php page..
Programming Languages
Hi everyone.....
I read out the topic of how to pass a variable into another page using session.And mr.moderator have explained it with beauty.I apply this and it is working for me..Can anyone give such a good explaianation for cookie also..How to store data in cookie,destoy cookie etc un ,php page .I read out it from w3schools.com but i dont know how to implement that.Like session(how to pass varible through page) plz also give link(if already created i have searched) or explain it so that newbies can get help from this...Thank you..

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .