40 lines
973 B
PHP
40 lines
973 B
PHP
<?php
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
|
|
use Websmid\OrderReference\Module\Install;
|
|
use Websmid\OrderReference\Module\DisplayHooks;
|
|
use Websmid\OrderReference\Module\ActionHooks;
|
|
|
|
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
|
|
require_once __DIR__ . '/vendor/autoload.php';
|
|
}
|
|
|
|
class Ws_OrderReference extends Module
|
|
{
|
|
/** @var OrderReferenceRepository */
|
|
protected $orderReferenceRepository;
|
|
|
|
use Install;
|
|
use DisplayHooks;
|
|
use ActionHooks;
|
|
|
|
|
|
public function __construct()
|
|
{
|
|
$this->name = 'ws_orderreference';
|
|
$this->tab = 'other';
|
|
$this->version = '1.0.0';
|
|
$this->author = 'Isabelle Oving-Anno | De Websmid B.V.';
|
|
$this->need_instance = 0;
|
|
$this->bootstrap = true;
|
|
|
|
parent::__construct();
|
|
|
|
$this->displayName = $this->l('Order Reference');
|
|
$this->description = $this->l('Adds an optional order reference field to the shopping cart summary.');
|
|
}
|
|
}
|