Page 1 of 1
Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 5:52 pm
by tbaforum
I'm trying to install Snap Engage chat on my OC 3.0.2 store. Currently it's on a local host using XAMPP. Snap engage provide a code snippit which they say needs to be between the </body> on all pages. I've installed it on my old OC 1 store by editing the footer.tpl file. However this time I can't find a file with the same extension. I've found a footer.twig in catalog->view->theme->marketshop->template->common. Is this where I would go to put something in the body of all pages? I'm not sure because I added the code and nothing happened.
Re: Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 6:03 pm
by DigitCart
Hi,
Yes, footer.twig is the file you need to edit. Then you need to clear twig and modification cache.
Re: Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 6:13 pm
by tbaforum
DigitCart wrote: ↑Wed May 09, 2018 6:03 pm
Hi,
Yes, footer.twig is the file you need to edit. Then you need to clear twig and modification cache.
How do I clear the cache?
Re: Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 6:18 pm
by DigitCart
For twig:
https://stackoverflow.com/questions/452 ... opencart-3
For Modifications:
Go to extensions / modifications / click refresh icon.
Re: Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 6:25 pm
by tbaforum
Thank you. It's all working now.
Re: Need help to insert chat code snippit between </body> on all pages
Posted: Wed May 09, 2018 6:35 pm
by DigitCart
Glad to hear it's working.