25 lines
900 B
PHP
25 lines
900 B
PHP
|
<?php
|
||
|
/**
|
||
|
* MODULE PRESTASHOP OFFICIEL CHRONOPOST
|
||
|
*
|
||
|
* LICENSE : All rights reserved - COPY AND REDISTRIBUTION FORBIDDEN WITHOUT PRIOR CONSENT FROM OXILEO
|
||
|
* LICENCE : Tous droits réservés, le droit d'auteur s'applique - COPIE ET REDISTRIBUTION INTERDITES SANS ACCORD EXPRES D'OXILEO
|
||
|
*
|
||
|
* @author Oxileo SAS <contact@oxileo.eu>
|
||
|
* @copyright 2001-2014 Oxileo SAS
|
||
|
* @license Proprietary - no redistribution without authorization
|
||
|
*/
|
||
|
|
||
|
header('Content-type: text/plain');
|
||
|
include_once '../../../config/config.inc.php';
|
||
|
include_once '../classes/PointRelaisServiceWSService.php';
|
||
|
|
||
|
if(!Tools::getIsset('relaisID')
|
||
|
or !Tools::getIsset('cartID')
|
||
|
) die('Parameter Error');
|
||
|
|
||
|
|
||
|
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'chrono_cart_relais` VALUES ('.Tools::getValue('cartID').', "'.Tools::getValue('relaisID').'") ON DUPLICATE KEY UPDATE id_pr="'.Tools::getValue('relaisID').'"');
|
||
|
|
||
|
echo 'OK';
|