Jump to content

Module that embeds JS in page doesn't work


Recommended Posts

Hi guys,

 

I'm developing a prestashop module that embed a snippet of javascript in the footer of the site.

The problem: it doesn't show up!

I'm clearing smarty cache on install by using the following code in the hook

 

public function hookFooter ($params) {
 global $smarty;
 //force refresh of the cache
 $smarty->compile_check = true ;

 

 

I'm also instructing my clients to temporarily clear smarty cache in the Preference > Performace tab.

What am i missing? How can i clear the cache in a programmatic way and then enable it back?

 

Thanks for your help

Alex

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...