사용자가 로그인 한 경우 welcome, [name]
을 표시하고, 그렇지 않으면 register link
을 표시해야합니다.사용자가 로그인하고 표시 이름을 확인하려고 시도합니다.
aspdotnet
storefront를 사용하면 다음은 welcome,
(로그인 한 이름없이)과 register link
을 모두 표시합니다. 제대로 작동하지 않는 것 같습니다.
<xsl:when test="/root/System/CustomerFirstName!=''">
Welcome, <a href='/account.aspx'><xsl:value-of select="/root/System/CustomerFirstName" disable-output-escaping="yes" /></a>
</xsl:when>
<xsl:otherwise>
<a href='createaccount.aspx?checkout=False' class='register'>
Register </a>
</xsl:otherwise>
</xsl:choose>
나는 심지어 here에서 30 페이지를 따라 갔지만 아무 소용이 없습니다.
작업중인 AspDotNetStorefront 버전을 지정해주십시오. –