Displaying the pickup point on the order view BO controller
Even if everything is done on the FO side, we need to make sure that the online seller can retrieve its data on the BO order view page to administrate the order and to make sure to dispatch the order’s products to the corresponding pickup relay point.
This can easily be done with the help of the displayAdminOrderSideBottom
hook. It enables you to add data to the left-hand column of the order view page in the BO.
The hookdisplayAdminOrderSideBottom($params)
function can be implemented in the main module class with the following code:
private function findRelayNameById($id_relay) { foreach($this->relays as $relay) { if($relay['id_relay']==$id_relay) { return $relay['name']; } } return false; } public function hookdisplayAdminOrderSideBottom...