2016-10-26 24 views
2

我需要在我的網站上進行一些更改,但我遇到了一些問題。Prestashop上的客戶羣登錄後重定向

我有2個角色組(用戶和經銷商)。當經銷商登錄進入「我的帳戶頁面」並且用戶登錄重定向至預覽頁面時,我需要這一點。

我試圖改變authentication.top

{if is_array($customerGroups)} 
{if $customerGroups[0]['id_group'] == 4} 
{if isset($back)}<input type="hidden" class="hidden" name="back" value="{$back|escape:'html':'UTF-8'}" />{/if} 
else 
<input type="hidden" class="hidden" name="back" value="{$smarty.server.HTTP_REFERER}" /> 

我有這樣的錯誤

Fatal error: Uncaught 
--> Smarty Compiler: Syntax error in template "/home/mysite/public_html/themes/default-bootstrap/authentication.tpl" on line 760 "" unclosed {if} tag 
<-- thrown in /home/mysite/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 760 

回答

1

需要把一個封閉的標籤

{/if} 
+0

你好,是的,對不起我分心這一行錯誤。但這不行。如果我試圖放在用戶組之間重定向沒有什麼不同。即使輸入用戶重定向到「我的帳戶」頁面。 如果我把簡單的''功能並重定向到預覽頁面。但是,如果我使用條件來改變ID關係的重定向鏈接..不是沒有功能的。 – skifast