Hi All,
I have a piece of custom PHP code that I need to place somewhere in the file structure that would be accessible on all pages (cart, cats, cms, etc...). I have done digging around and see all fingers pointed at the controllers directory. I'm not really sure where/how to make the addition. I've tried to create a module, but getting stuck - abandoning this idea due to time crunch. Any help would be extremely appreciated.
Also I should note that I would need to access the output of the custom PHP code via AJAX from the frontend. I have all this hooked up and working on just a simple setup (XAMPP) php.php & js.js just need to know how to integrate it within Prestashop's structure.
Ideally this code would run early on in the lifecycles, and if I don't have to override any core file/s, even better.
Thanks so much for any help.
EDIT: Using PS version 1.7.5