43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* 2014-2023 Presta-Mod.pl Rafał Zontek
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* Poniższy kod jest kodem płatnym, rozpowszechanie bez pisemnej zgody autora zabronione
|
|
* Moduł można zakupić na stronie Presta-Mod.pl. Modyfikacja kodu jest zabroniona,
|
|
* wszelkie modyfikacje powodują utratę gwarancji
|
|
*
|
|
* http://presta-mod.pl
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
*
|
|
* @author Presta-Mod.pl Rafał Zontek <biuro@presta-mod.pl>
|
|
* @copyright 2014-2023 Presta-Mod.pl
|
|
* @license Licecnja na jedną domenę
|
|
* Presta-Mod.pl Rafał Zontek
|
|
*/
|
|
|
|
class Order extends OrderCore
|
|
{
|
|
public $machine = '';
|
|
public function __construct($id = null, $id_lang = null)
|
|
{
|
|
parent::__construct($id, $id_lang);
|
|
if ($this->id) {
|
|
if (Module::isEnabled('pminpostpaczkomaty')) {
|
|
Module::getInstanceByName('pminpostpaczkomaty');
|
|
$paczkomat = PaczkomatyList::getByIdCart($this->id_cart);
|
|
$this->machine = $paczkomat->machine;
|
|
}
|
|
}
|
|
}
|
|
|
|
public function getWebserviceParameters($ws_params_attribute_name = null)
|
|
{
|
|
$this->webserviceParameters['fields']['machine'] = array();
|
|
return parent::getWebserviceParameters($ws_params_attribute_name);
|
|
}
|
|
}
|