Product Detail Page
From i.STAR Help
[edit]
Link to "All Products of Same Brand"
To add a link to the product detail page that would bring in all products by same brand or manufacturer, use the code below:
<a href="istar.asp?a=29&manufacturer=<isvar name="$manufacturerCode">">All products by <isvar name="$manufacturerName"></a>
[edit]
Display Content Based on the Selected Product's Manufacturer Code
To display manufacturer specific content (i.e. banner image, paragraph of text,etc.) on the product detail page, based on the manufacturer code of the selected product, use the code below. It can be changed, customized further, but the basic functionality is exemplified here:
<isdata source="IstarDataSources.ProductDetail"> <div id="content"> <isif expr="strcmp($manufacturerCode, 'MANUF1CODEGOESHERE') == 0"> <isinclude name="/custom/productdetail/softgoods/MANUFACTURER1.include"> <isinclude name="/stock/productdetail/productdetail.include"> <iselseif expr="strcmp($manufacturerCode, 'MANUF2CODEGOESHERE') == 0"> Some other content related to manufacturer 2 would be placed here here<br /> <isinclude name="/stock/productdetail/productdetail.include"> <iselse> <isinclude name="/stock/productdetail/productdetail.include"> </isif> </div>
[edit]
Continue Shopping Button to return to Product Detail
Change the content of istar.asp to the code below:
<%
Public Function GetFullURL()
Dim strQueryString
'Get the URL and get it able to append parameters
With Request
strQueryString = .ServerVariables("QUERY_STRING")
GetFullURL = .ServerVariables("URL")
If Len(strQueryString) > 0 Then
GetFullURL = GetFullURL & "?" & strQueryString
If Not Right(GetFullURL, 1) = "&" Then
GetFullURL = GetFullURL & "&"
End If
Else
If Not Right(GetFullURL, 1) = "?" Then
GetFullURL = GetFullURL & "?"
End If
End If
End With
End Function
if request("a") = 6 then
session("csURL") = GetFullURL()
end if
set obj = server.createobject("istar21.istarmanager")
'obj.templatepath = "c:\inetpub\templates\"
obj.processrequest request,response,application,server,session
%>
