15

Overriding Some Templates

Although we know how to create a child theme to extend an existing one, we would love to customize some of the installed modules’ templates or assets to make them look like the rest of our child theme. As you can imagine, the best practice for this is certainly not to directly modify the modules’ templates or assets in the module directories. We will learn, in this chapter, the most efficient and clean way to customize the assets and templates.

Let’s follow these steps to discover the best practices for module template/asset overriding from a theme:

  • Overriding a module template from a (child) theme
  • Overriding a module CSS asset from a (child) theme
  • Overriding a module JavaScript asset from a (child) theme

By the ...

Get Practical Module Development for Prestashop 8 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.