Extend PrestaShop 1.7/8.x features by creating various useful modern Symfony-based modules, learning how to customize themes, and getting ready to solve most online sellers' issues
Key Features
- Understand the data and object architecture of the legacy and new Symfony core of PrestaShop
- How to create modules the modern way in order to add great features such as content blocks, payment options, or carriers to your store
- Learn how to customize themes and override existing modules templates
Book Description
Since version 1.7, PrestaShop began its migration from the old legacy core to a brand new Symfony-based system. This implies many changes for developers starting from maintenance to module development, and that's all this book is about. With a quick explanation of the data structure, you will be presented the architecture of the system from front-office to back-office controllers (migrated or not) and you will learn how hooks work and enable modules to customize and improve the CMS. Mastering the mechanics is a prerequisite for a good understanding of how modules embed in the system.
Then, you will dive into the creation of seven useful modules under a practical and progressive approach being explained the structure of a module, hooks registration, the creation of front-office controllers, and Symfony back-office controllers in a modern way. We'll do this by using Doctrine entities, services, grids, and forms, finishing with payment and carrier modules. Finally, you will discover how to override and customize a theme in order to make your e-commerce store look just like you need from templating to assets management.
By the end of this book, you will be able to provide modern solutions with Prestashop that meet clients' tailor-made and challenging business needs.
What you will learn
- Understand the structure of PrestaShop's core
- Learn what are hooks and their function
- Create a hello world module
- Create modules to display blocks on the front office with styles
- Create a module to add fields to the category pages and manage them
- Create a full blogging module with front and back-office modern controllers
- Create payment and carrier modules to improve the selling experience
- Customize a theme by creating a child theme
Who This Book Is For
If you are a junior or advanced PHP developer already using PrestaShop as a simple user willing to know more or to solve online sellers' problems by creating modules as a professional, this book is definitely for you. In order to learn from this book, you should have a basic knowledge of the Symfony framework. This book will be a really good help for the module developers expecting to move from the old legacy environment to the modern one. Other CMS developers can use that book as a tool to compare and move to PrestaShop.
Table of Contents
- Quick Overview of PrestaShop
- The configuration and initialization
- The Front Office
- The backoffice
- The hooks
- The theme
- What are modules ? Let's create a hello world !
- A reinsurance block module
- A customer callback request module
- A category page extension module
- A simple blogging module
- A cash payment module
- A drive delivery module
- How to create a child theme
- Override some templates
- Assets compiling with webpack