Displaying relay points
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).
Create a displayCarrierList.tpl
template ...
Get PrestaShop Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.