Creating our module structure
As we are now well acquainted with creating modules, I’ll let you create the /modules/whrelaycarrier/
folder with the necessary files.
Our /modules/whrelaycarrier/whrelaycarrier.php
main module class should look like this, following our module design:
class WHRelayCarrier extends CarrierModule { private $relays = [['id_relay'=>1,'name'=>'Pickup point – Town hall - BUROS'],['id_relay'=>2,'name'=>'Pickup point - Post office - MORLAAS']]; public function __construct() { $this->name = 'whrelaycarrier'; $this->tab = 'shipping_logistics'; $this->version = '1.0.0'; $this->author = 'Web Helpers'; $this->need_instance = 0; ...