Introduction
The "Custom Setting" feature allows you to create configuration pages based on custom field groups, offering a flexible way to manage settings and data that are not tied to any specific entity in the PrestaShop back-office. This feature is particularly useful for handling settings that apply globally or across multiple entities, like configuring a FAQ section common to all categories or setting up content blocks on the homepage.
Utility
- Enhanced flexibility
This feature is ideal when you need to manage data that isn't directly related to a specific entity but is critical for managing other aspects of your site, such as content blocks.
- No additional modules required
Instead of creating new modules for each setting, you can add these pages directly through the Custom Setting feature.
- Effortless data management
Configure settings directly in the back-office with no need for extra development, allowing non-technical users to adjust settings easily.
- Global accessibility
Custom settings can be accessed globally and are not tied to any specific entity. These settings can be easily retrieved in PHP using the $dataRetriever->get() method or directly from Smarty templates.
Additionally, you can associate the field group to any front-office display hook, such as displayHome, displayFooter, or any other relevant hook, giving you complete flexibility to show custom content throughout your store.