We are almost done! We will now see how to handle the relay points. You will not always need to manage relay points when you create a carrier module, but this is just an example here. With this method, you will be able to manage other things, such as delivery options (and insurance).
We will begin by attaching our module to the
displayCarrierList hook. Then, create the hook method and the associated controller. At this point, I don't think I need to explain how it works again, but if you're experiencing some difficulties, do not hesitate to look at the code files attached to the code of this chapter (or to look at my GitHub repository: https://github.com/FabienSerny/mymodcarrier).
displayCarrierList.tpl template ...