PrestaShop module development : develop and customize powerful modules for PrestaShop 1.5 and 1.6 /
If you are a developer who is new to PrestaShop and wants to get a good foundation in development on the PrestaShop framework, this book is for you. It's assumed that you will have some experience with PHP5, jQuery, and HTML/CSS (no need to be an expert on it).
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing.,
2014.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; Foreword; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Creating a New Module; First steps; Adding the module configuration; Making a simple configuration form; Summary; Chapter 2: Hooks; Registering our module on hooks; Changing the position of your module on a hook; Using hooks to display templates; Using the database class to save comments; Displaying comments; Triggering hooks; Adding a hook; The dynamic hooks; Summary; Chapter 3: Using Context and Its Methods; Looking at the Context; Using the translate method
- Adding CSS and JS in your moduleChecking compatibilities and dependencies; The compatibility check; The dependency check; Summary; Chapter 4: Building Module Updates; Creating a database table on module installation; Deleting a table on uninstallation; Upgrading your module; Updating the module code; Adding a callback to options; Summary; Chapter 5: Front Controllers, Object Models, and Overrides; Using front controllers to create a new page; Creating the front controller; Maintaining compatibility with the Friendly URL option; Creating a small action dispatcher
- Displaying the product name and commentsIncluding CSS and JS media in the controller; Adding a pagination system; Creating routes for a module's controller; Installing overrides with modules; Creating the override class; Editing the template file to display grades on products list; Creating a new method in a native class; Using object models to create cleaner code; Creating the ObjectModel class; Using the ObjectModel in our module; Placing all the database requests in our ObjectModel; Using HelperForm to make a scalable form; Cleaning your code using the hook's controller; Summary
- Chapter 6: Admin Controllers and HooksAdding an admin controller; Adding and installing a new tab to your admin panel; Uninstalling the tab when the module is uninstalled; Listing comments in your admin controller; Improving the list view; Adding actions on the list view; Creating your own view template; Configuring your form view; Using back office hooks; Attaching your module to a product hook; Displaying comments in a product hook; Displaying comments associated with a customer; Making links between admin sections; Summary; Chapter 7: The Carrier Module
- First step to create a carrier moduleUsing web services; API description; Module configuration; Creating new carriers; Using web services on shipping cost calculation; Handling carrier update; Displaying relay points; Associating the chosen relay point with the cart; Displaying the customer's choice in the back office; Summary; Chapter 8: The Payment Module; Creating a payment module; Creating the payment controller; Checking the currency; Validating a cart into an order; Displaying information on the order confirmation page; Creating your own order state