問(wèn)題:模板中用隨身購(gòu)物車(chē)標(biāo)簽一直報(bào)js錯(cuò)誤。
解決:找到 隨身購(gòu)物車(chē)標(biāo)簽 紅色部分內(nèi)容
<a> <xsl:attribute name="href"> <xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx< l:attribute> <xsl:attribute name="target">_blank< l:attribute>查看購(gòu)物車(chē)詳情>> </a> < > < l:when> <xsl:otherwise> <script type="text/javascript" src="{pe:InstallDir()}Shop/PackgeShoppingCart.aspx"> </script> <br/> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx< l:attribute> <xsl:attribute name="target">_blank< l:attribute>查看購(gòu)物車(chē)詳情>> </a> |
修改后:
<a> <xsl:attribute name="href"> <xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx?show=num</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>查看購(gòu)物車(chē)詳情>> </a> </li> </xsl:when> <xsl:otherwise> <script type="text/javascript" src="{pe:InstallDir()}Shop/PackgeShoppingCart.aspx"> </script> <br/> <li> <a> <xsl:attribute name="href"> <xsl:value-of select="pe:InstallDir()"/>Shop/ShoppingCart.aspx?show=num</xsl:attribute> <xsl:attribute name="target">_blank</xsl:attribute>查看購(gòu)物車(chē)詳情>> </a> |
Show后面可帶參數(shù):
detail:詳細(xì)信息
num:購(gòu)物車(chē)數(shù)量
**(即什么都不帶):總金額和數(shù)量
|
新聞熱點(diǎn)
疑難解答
圖片精選