prestashop

prestashop TURN ON ERROR REPORTING

for releases below PrestaShop 1.5.3

config/config.inc.php

find this line

@ini_set(‘display_errors’, ‘off’);

change to look like this:

@ini_set(‘display_errors’, ‘on’);

PrestaShop 1.5.3+

config/defines.inc.php

find this line

define(‘_PS_MODE_DEV_’, false);

change to look like this:

define(‘_PS_MODE_DEV_’, true);

By bm on | prestashop | A comment?

prestashop get admin details from outside

<?php
include_once('../config/config.inc.php');
include_once('../config/settings.inc.php');
include_once('../classes/Cookie.php');
$cookie = new Cookie('psAdmin');

print_r($cookie);
?>

 

By bm on | php, prestashop | A comment?

Prestashop Cookie Structure

getFamily ( 'pictures_1' );
echo $textFields = $cookie->getFamily ( 'textFields_1' );

echo "<pre>";
print_r ( $cookie );

print_r ( $files );

print_r ( $textFields );
echo "</pre>";

http://doc.prestashop.com/display/PS14/Cookie+Structure
By bm on | prestashop | A comment?

prestashop isadmin()

 

$this->context->employee->isSuperAdmin();

By bm on | prestashop | A comment?