1 line
811 B
PHP
1 line
811 B
PHP
<?php
|
|
/**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author PrestaHelp.com
|
|
* @copyright 2019 PrestaHelp
|
|
* @license LICENSE.txt
|
|
*/
|
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
require_once __DIR__.'/../../config/config.inc.php';
|
|
require_once __DIR__.'/inpostship.php';
|
|
$id_cart = (int)$_REQUEST['id_cart'];
|
|
$point = explode(',', $_REQUEST['point']);
|
|
$courier = (int)$_REQUEST['id_carrier'];
|
|
$week = (int)$_REQUEST['week'];
|
|
$inpost = new inpostship();
|
|
echo json_encode($inpost->setAjaxCartPoint((int)$id_cart, $point[0], (int)$courier, (int)$week));
|
|
exit();
|