Prestashop cron script

Sometimes you need to make a script usig the prestashop framework. To do that, just add these 2 lines at the top of your script

include(dirname(__FILE__).'/../../config/config.inc.php');
include_once(_PS_ROOT_DIR_.'/init.php');

Leave a Reply