Chapter 7. The Carrier Module

As we saw earlier, there are three types of modules in PrestaShop: regular modules (which we developed in the first six chapters), carrier modules, and payment modules (which we will see in the next chapter).

In this chapter, we will see how carrier modules work. We will create a module that will retrieve shipping costs from web services and display them in the carrier list. We will also see one way to handle relay points, and how to:

  • Create a very simple carrier module
  • Use the Carrier object
  • Add options, such as relay points

First step to create a carrier module

Just like previous chapters, we will first create the directory and the main class of the module. We will name our new module mymodcarrier. So, create a mymodcarrier ...

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.