商城样式中商品图片加上连接_风讯Cms教程
打开\Foosun\Admin\Refresh\Mall_Functiom.asp
找到:大约780行四周
if Not IsNull(AlreadyProductObj("Products_sPicture")) then
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","<img border=""0"" width=""" & PicwidthStr & """ height=""" & PicHeightStr & """ src=""" & TempSysRootDir & AlreadyProductObj("Products_sPicture") & """>")
else
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","")
end if
改为:
if Not IsNull(AlreadyProductObj("Products_sPicture")) then
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","<a target=""_blank"" href=""" & GetOneProductLinkURL(AlreadyProductObj("ProductID")) & """ " & OpenTypeStr & "><img border=""0"" width=""" & PicwidthStr & """ height=""" & PicHeightStr & """ src=""" & TempSysRootDir & AlreadyProductObj("Products_sPicture") & """> </a>")
else
StyleContent = Replace(StyleContent,"{Mall_Products_sPicture}","")
end if
- 相关链接:
- 教程说明:
风讯Cms教程-商城样式中商品图片加上连接。