Jump to content

PS 1.7.6.5 what hook / override for alter html content in front


Recommended Posts

Hi all,

I search a hook/override for change all front pages content at the fly.

For example, I want for example replace all words 'potatoes' by 'tomatoes' at the fly.

I can make it by javascript in header (via hookdisplayheader) but I prefer get the page content and make a PHP preg_replace before the page is displayed.

Have you an idea for this ?

Thanks,

 

Edited by a17000
precisions (see edit history)
Link to comment
Share on other sites

  • a17000 changed the title to PS 1.7.6.5 what hook / override for alter html content in front

I find another way

...

public function hookActionOutputHTMLBefore(array $params)
      {
                        $params['html']=$params['html'].'PLEASE complete Prestashop Documentation ';
      }

  • Thanks 1
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...