2017-05-29 54 views
0

我目前正在定制一个prestashop站点。我有2个不同的连接URL,我想在我的模板authentication.tpl中的这两个URL之间有1种不同的样式,因为1个url将用于“客户”组的客户,另一个url将用于组“Enterprise” 。你有什么想法我可以做到这一点。 谢谢。2个模板authentication.tpl不同

+0

你尝试什么吗? https://www.prestashop.com/forums/topic/319134-setting-different-css-for-each-shop-of-a-multistore-site/ – Xatenev

+0

不,没有更多。 – CHRISCOM

回答

0

尝试宽度覆盖AuthController.php并在Connexion的链接添加在URL & SPE = 1

class AuthController extends AuthControllerCore 
{ 
     public function initContent() 
     { 
      Parent::initContent(); 

      if (Tools::getValue('spe')) {    
       $this->setTemplate(_PS_THEME_DIR_.'authentication2.tpl'); 
      } 
     } 
} 

问候

+0

好!是工作!非常感谢。 – CHRISCOM