martin00 Posted April 23, 2019 Share Posted April 23, 2019 Bonjour, je rencontre un soucis de conflit avec deux thèmes achetés et installés pour deux boutiques distinctes, mais qui font partis d'un même prestashop multi-boutiques. Est-ce que quelqu'un a déjà rencontré ce genre de problème sur un prestashop 1.7.2.4 ? Peut être un bug de la version 1,7 ? Si quelqu'un a une idée, merci pour votre aide. Cordialement. Link to comment Share on other sites More sharing options...
Divine Posted May 8, 2019 Share Posted May 8, 2019 Bonjour, Oui déjà rencontré, c'est un des bugs de la version 1.7 de Prestashop : https://github.com/PrestaShop/PrestaShop/issues/10695 Link to comment Share on other sites More sharing options...
jcandres Posted July 26, 2019 Share Posted July 26, 2019 Bonjour, Pour ce problème moi j'ai fait un override => /override/classes/module -> Module.php <?php abstract class Module extends ModuleCore { /** * Use this method to return the result of a smarty template when assign data only locally with $this->smarty->assign(). * * @param string $templatePath relative path the template file, from the module root dir * @param null $cache_id * @param null $compile_id * * @return mixed */ public function fetch($templatePath, $cache_id = null, $compile_id = null) { if ($cache_id !== null) { Tools::enableCache(); } if ($compile_id === null) { $compile_id = Context::getContext()->shop->theme->getName(); } $template = $this->context->smarty->createTemplate( $templatePath, $cache_id, $compile_id, $this->smarty ); if ($cache_id !== null) { Tools::restoreCacheSettings(); } return $template->fetch(); } } ?> Voila normalement les thèmes ne s'ecrasent plus entre eux. Cordialement 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