first commit

This commit is contained in:
2025-11-10 15:42:50 +01:00
commit 261c7948da
622 changed files with 252614 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
<?php
/**
* Copyright 2021-2022 InPost S.A.
*
* NOTICE OF LICENSE
*
* Licensed under the EUPL-1.2 or later.
* You may not use this work except in compliance with the Licence.
*
* You may obtain a copy of the Licence at:
* https://joinup.ec.europa.eu/software/page/eupl
* It is also bundled with this package in the file LICENSE.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Licence is distributed on an AS IS basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions
* and limitations under the Licence.
*
* @author InPost S.A.
* @copyright 2021-2022 InPost S.A.
* @license https://joinup.ec.europa.eu/software/page/eupl
*/
class Order extends OrderCore
{
/*
* module: inpostshipping
* date: 2022-11-17 14:33:55
* version: 1.12.0
*/
public function getWebserviceParameters($ws_params_attribute_name = null)
{
if (($module = Module::getInstanceByName('inpostshipping')) && $module->active) {
$this->webserviceParameters['fields']['inpost_point'] = [
'getter' => 'getWsInPostPoint',
'setter' => false,
];
}
return parent::getWebserviceParameters($ws_params_attribute_name);
}
/*
* module: inpostshipping
* date: 2022-11-17 14:33:55
* version: 1.12.0
*/
public function getWsInPostPoint()
{
if (class_exists('InPostCartChoiceModel')) {
$choice = new InPostCartChoiceModel($this->id_cart);
if (Validate::isLoadedObject($choice) && 'inpost_locker_standard' === $choice->service) {
return $choice->point;
}
}
return null;
}
}

View File

@@ -0,0 +1,35 @@
<?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/OSL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://devdocs.prestashop.com/ for more information.
*
* @author PrestaShop SA and Contributors <contact@prestashop.com>
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;