Srv Bebeboutik 6c0978166c add modules
2016-01-04 12:49:26 +01:00

19 lines
460 B
PHP
Executable File

<?php
include_once('../../config/config.inc.php');
include_once('../../init.php');
include_once('../../modules/socolissimo/socolissimo.php');
global $cookie;
if (Tools::getValue('token') == sha1('socolissimo'._COOKIE_KEY_.$cookie->id_cart))
die('INVALID TOKEN');
$socolissimo = new Socolissimo();
$result = $socolissimo->getDeliveryInfos($cookie->id_cart,$cookie->id_customer);
if (!$result)
die('{"result" : false}');
else
die('{"result" : true}');
?>