Jump to content

How to clear cache when using hookDisplayProductButtons to create button on detail product page?


Recommended Posts

I am created a button on detail product page.
But, when I update .tpl file then F5/Ctr-F5, it is not change
 
So, how do I can clear cache for .tpl file (only it)?
 

public function hookDisplayProductButtons($params)
{
global $cookie ,$smarty;


//$smarty->clearCompiledTemplate('test_front_product_detail.tpl'); // can not change
$this->_clearCache('test_front_product_detail.tpl'); // can not change


return $this->display(__FILE__, 'test_front_product_detail.tpl');
}

 

Please help me.
 
Thanks you!

Edited by phinq1910 (see edit history)
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...