dric83 Posted September 22, 2014 Share Posted September 22, 2014 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 ++ 1 Link to comment Share on other sites More sharing options...
dric83 Posted September 22, 2014 Author Share Posted September 22, 2014 Maybe it needs to be replaced by echo $this->smartyOutputContent('views/templates/front/search.tpl'); 1 Link to comment Share on other sites More sharing options...
oblik Posted November 1, 2014 Share Posted November 1, 2014 Hello, Look at this exemple : https://github.com/PrestaShop/blockwishlist/blob/master/cart.php Link to comment Share on other sites More sharing options...
apositivo Posted August 14, 2015 Share Posted August 14, 2015 hi ! dric83 any solution ? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now