Jump to content

Load a tpl by Ajax


dric83

Recommended Posts

Hello Everyone :)

 

I'm trying to adapt a 1.4 module to a 1.6 prestashop :-/

I've fixed almost everything, but there is something I may need help on...

 

In the 1.4 version, there was an Ajax function that was supposed to load a tpl

    protected function displayAjaxSearchCollect()
    {
	echo Module::display(dirname(__FILE__).'/../../mymodule.php', 'views/templates/front/search.tpl');
    }

But Module::display has been deprecated...

 

I tried to replace by this but it doesn't work ... 

It doesn't load anything and I don't have any errors

echo $this->setTemplate('views/templates/front/search.tpl');

May be there is another 1.5 function because it is Ajax ?

Thank you for any help :)

++

 

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...

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...