awenk Posted May 13, 2016 Share Posted May 13, 2016 (edited) I wan input this php code in my footer / every page <?php include_once("facebook-live-chat/index.php"); live_chat_facebook("https://www.facebook.com/olshdddd","http://mywebsete.com"); ?> can u help me ? please i use prestashop last version Edited May 13, 2016 by awenk (see edit history) 1 Link to comment Share on other sites More sharing options...
NemoPS Posted May 14, 2016 Share Posted May 14, 2016 If you don't want to create a specific new module, you can edit an existing one (be aware of upgrades though!) that uses hookDisplayFooterIt might display oddly that way though, you should better assign live_chat_facebook to a variable and return it at the end of the method Link to comment Share on other sites More sharing options...
vekia Posted May 14, 2016 Share Posted May 14, 2016 smarty in prestashop doesnt allow to use php scripts inside .tpl files so, simply saying, it is not possible to just paste the php code to footer.tpl. as Nemo said, it requires custom development. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted May 25, 2016 Share Posted May 25, 2016 Edit /classes/controller/FrontController.php Search for below line public function initFooter() Now add your code after this function opening braces. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now