Supplier Custom Fields is a developer-oriented PrestaShop module that extends the built-in Supplier entity with two additional custom data fields. It uses a combination of hooks and a class override to add the new properties cleanly to the existing supplier management workflow in the back office.
- Two custom supplier fields: Adds
one_field and other_field as new properties to the Supplier entity, available for data entry in the supplier form. - Hook-based integration: The custom fields are wired in via the
actionSupplierFormBuilderModifier, actionAfterUpdateSupplierFormHandler, and actionAfterCreateSupplierFormHandle hooks, ensuring proper handling on both create and update operations. - Supplier class override: Includes a PrestaShop class override for the native
Supplier class to persist and retrieve the new properties, with the fields displayed above the is_enabled toggle for natural back office integration.
This module is intended primarily as a reference implementation or starting point for developers who need to extend the Supplier entity with custom data fields. It demonstrates the standard PrestaShop hook and override approach for form customization without modifying core files.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent