36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* 2012-2017 Patryk Marek PrestaDev.pl
|
|
*
|
|
* Patryk Marek PrestaDev.pl - PD Free delivery left amount for PS 1.5.x && 1.6.x © All rights reserved.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit, modify or copy this file.
|
|
* If you wish to customize it, contact us at info@prestadev.pl.
|
|
*
|
|
* @author Patryk Marek PrestaDev.pl <info@prestadev.pl>
|
|
* @copyright 2012-2017 Patryk Marek - PrestaDev.pl
|
|
* @license License is for use in domain / or one multistore enviroment (do not modify or reuse this code or part of it)
|
|
* @link http://prestadev.pl
|
|
* @package PD Free delivery left amount for PS 1.5.x && 1.6.x
|
|
* @version 1.1.0
|
|
* @date 18-12-2014
|
|
*/
|
|
|
|
include dirname(__FILE__) . '/../../config/config.inc.php';
|
|
include dirname(__FILE__) . '/../../init.php';
|
|
include_once(dirname(__FILE__).'/pdfreedeliveryleftamountpro.php');
|
|
|
|
if (Tools::getValue('action') == 'calculateFreeDeliveryLeftAmount') {
|
|
$module = new pdfreedeliveryleftamountpro();
|
|
$data = $module->calculateFreeDeliveryLeftAmount(1);
|
|
if ($data) {
|
|
die(json_encode($data));
|
|
} else {
|
|
die(0);
|
|
}
|
|
} else {
|
|
die(0);
|
|
}
|