O'Reilly logo

PrestaShop Module Development by Fabien Serny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required