Init project
Future fixes: -Remove logic for showing current order reference in ajax.js. Instead grab from database using cart ID
This commit is contained in:
44
ws_orderreference.php
Normal file
44
ws_orderreference.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use Module\WsOrderreference\Module\Install;
|
||||
use Module\WsOrderreference\Module\displayHooks;
|
||||
use Module\WsOrderreference\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->ps_versions_compliancy = [
|
||||
'min' => '9.0.0',
|
||||
'max' => '9.99.99',
|
||||
];
|
||||
$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.');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user