A Reinsurance Block Module
We got our first contact with the PrestaShop modules by creating a simple Hello World!
module on the index. We know how to set the main variables and how to deal with the install and uninstall process by registering to hooks. Let’s now go a little bit further by applying our knowledge to a new reinsurance module.
On many websites, merchants need to display information that reinsures customers to boost their rate of conversion. It can be very simple but powerful for online sales. This new example will enable us to learn how to code our module view in a separate Smarty template file and add some clean CSS styles.
The following process will lead us to an efficient working reinsurance block module:
- Defining our module design
- Creating the module’s initial structure
- Adding a Smarty template view
- Adding CSS styles to our module
- Testing our module
By the end of this chapter, we will have mastered a simple module...