Ceci est une ancienne révision du document !
prestashop
prestashop, logiciel php/mysql de shop en ligne
debug
/config/defines.inc.php /* Debug only */ if (!defined('_PS_MODE_DEV_')) { define('_PS_MODE_DEV_', false); }
Install locale
une galère pour copier une instance de prod sur un localhost… commencer par activer le mode debug supra et péniblement corriger, chez moi:
#evil but no other easy way! chmod -R 777 . sed -i 's|https://SERVERPRODURL|http://localhost/shop|g' DATABASENAME.sql
UPDATE `pl6s_shop_url` SET `domain` = 'localhost', `domain_ssl` = 'localhost' WHERE `pl6s_shop_url`.`id_shop_url` = 1; #if no https on localhost UPDATE `pl6s_configuration` SET `value` = '0' WHERE `pl6s_configuration`.`id_configuration` = 30;