Resolved a Fatal Error occurring during AJAX product listing requests (e.g., price slider).
- Issue: In PHP 8.2+, accessing properties of a 'CategoryLazyArray' object
using array syntax (dot notation) triggers a Fatal Error.
- Cause: The Faceted Search module returns a LazyArray object during
XHR requests, whereas standard page loads provide a native array.
- Solution: Implemented a normalization block using JSON serialization
to flatten the object into a standard associative array. This ensures
template syntax compatibility regardless of the request type or
property visibility (protected vs public).
New method created in is_themecore module: Uses use PrestaShop\PrestaShop\Core\Util\ColorBrightnessCalculator and adds as smarty function in SmartyHelperFunctions.php