0
Я пытаюсь загрузить класс продукта в выполненный на заказ модуль, так что я запускаю следующее:нагрузки в пользовательский модуль PrestaShop
$customized_datas = Product::getAllCustomizedDatas((int)$order->id_cart);
Моя структура модуля выглядит следующим образом:
class autoWebspace extends Module {
public function __construct() {
$this->name = 'autowebspace';
$this->tab = 'front_office_features';
$this->version = '1.0';
$this->author = 'dimitris';
$this->need_instance = 0;
parent::__construct();
$this->displayName = $this->l('webspace creation in plesk');
$this->description = $this->l('Creates webspace in plesk after purchase');
}
public function install() {
return (parent::install() && $this->registerHook('actionValidateOrder') && $this->registerHook('displayHeader'));
}
public function hookActionValidateOrder($params) {
$customized_datas = Product::getAllCustomizedDatas((int)$order->id_cart);
}
Как мне это сделать?