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:
2026-02-09 10:08:02 +01:00
committed by Isabelle
parent 65e21d48c3
commit e5fe85c8e5
21 changed files with 702 additions and 0 deletions

44
ws_orderreference.php Normal file
View 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.');
}
}