Browse and Search Product Listing Pages

From i.STAR Help

Contents

Searches & Browse Listings

Display Name in URL for Browse pages

i.e. To link to your departments using urls that show the department name www.domain.com/shoes.asp?a=3&dept=SHOE vs. www.domain.com/istar.asp?a=3&dept=SHOE For this create the asp page named shoes.asp and contains the following code:

<%
	set obj = server.createobject("istar21.istarmanager")
	obj.templatepath = "c:\inetpub\templates\"
	obj.processrequest request,response,application,server,session
%>

NOTE: This only works for browse pages when you link to them from your design (buttons)


Department Specific Images Brought in Dynamically

This works based on department code on the browse pages only:

Option 1 Brings in department images loaded into Retail Star. NOTE: These images will be displayed at the size they were loaded at. So if a large image is loaded it will display the large image.

<img src="/istarimages/d/d-<isvar expr="querystring('dept')">.jpg">

Option 2 Brings in images uploaded via FTP into images directory and named specifically dept-DEPTCODE.jpg

<img src="/images/dept-<isvar expr="querystring('dept')">.jpg">


Display subclass specific image dynamically on a browse page:

<isdata source="IStarDataSources.CategoryLister" forcedept="1" forceClass="1" forceSubClass="1" prefix="'leftnav'">
<isloop name="$leftnav_departments">
<a href="<isvar name="$deptBrowseURL">" target="_top"><b  class="leftnavitem"><isvar name="$deptName"></b></a><br><br><br>

	<!--   display classes   -->
	<!--   check if department we are just output is selected   -->
	
	<isif name="$deptSelected">
	<isloop name="$classes">

		<!--   display subclasses   -->
		<!--   check if class we just output is the selected class  -->
		<isif name="$classSelected">
		<isloop name="$subclasses">

		<a href="<isvar name="$subclassBrowseURL">" class="leftnavitem"><img src="images/subclasses/<isvar name="$selectedDeptCode">-<isvar name="$selectedClassCode">-<isvar name="$SubclassCode">.jpg" border="0"></a>

		</isloop>
		</isif>
	</isloop>
	</isif>

</isloop>

Display Style Number on Product Listing Pages

Use this code:

<div class='longdescription'>
	Style: <isvar name="$style"><br>
</div>

Display Brand on Product Listing Pages

Use this code: <isif expr="varexists('$manufname')"><isvar name="$manufname"></isif>

Display View ALL Button on Listing Pages

Use this code for search pages:

<a href='/istar.asp?a=29&search=<isvar expr="querystring('search')">&sortby=&numperpage=999&pos=0'>view all items</a>

Use this code for department browse pages:

<a href='/istar.asp?a=3&dept=<isvar expr="querystring('dept')">&sortby=&numperpage=999&pos=0'>view all items</a>

How to Code Navigation Links

Browse Department/Class/Subclass a=3&dept=TRAINS&Class=G&Subclass=BLDG
Browse manufacturer AND Department/Class/Subclass a=3&manufacturer=205&dept=TRAINS&Class=G&Subclass=ENGINE
Search word “ice” (Fields searched by i.STAR:i.STAR product title, long description, style) a=29&search=ice
Search phrase “ice cream” (NOTE: Characters and spaces need to be URL encoded. All examples given here already have the URL encoding built in.) a=29&search=ice%20cream
Search “ice +cream” (cream required) a=29&search=ice%20%2bcream
Search “ice –cream” (cream excluded) a=29&search=ice%20%2dcream
Browse manufacturer a=29&manufacturer=ACME
Search manufacturer + search terms a=29&manufacturer=ACME&search=magnum
Search Department/Class a=29&dept=trains&Class=engines
Search Department/Class + search terms a=29&dept=trains&Class=engines&search=blue
Search Department/Class + manufacturer + search terms a=29&dept=trains&Class=engines&manufacturer=ACME&search=blue
Search Icons set in Retail Star/Internet Sales Product Setup (*see list of icons below) a=29&icon1=ICON#
Search Group (Groups are created in Retail Star and assigned at the product level in Product Maintenance) a=29&group=GROUPCODE
Search Category (Categories created in Retail Star and assigned at the product level in Product Maintenance) a=29&category=CATEGORYCODE
Search Season (Season assigned in Retail Star at the product level in Product Maintenance) a=29&season=SEASONCODE
Search Size (size codes created in Retail Star and assigned at the product level in Product Mantenance) a=29&size=SIZECODE
Combination search Dept/Class and/or Manufacturer and/or Group and/or Category and/or Season and/or Size and/or Icon and/or Search term a=29&dept=DEPTCODE&Class=CLASSCODE&manufacturer=MFGRCODE&group=GROUPCODE&category=CATEGORYCODE&season=SEASONCODE&size=SIZECODE&serch=SEARCHTERM


Additional Notes:

Search terms ARE NOT case-sensitive; capital and lower case letters are both searched, whichever you enter.

You cannot string several departments (or classes, or subclasses, or groups, or categories together) within one link (i.e. /istar.asp?a=3&dept=CODE1&dept=CODE2 will NOT work)

Using more than one term in a search string implies an *or*.

Using a + before the terms implies the result must have that term in it. Using a – before the term implies the result should not have that term in it. Using a * after a term implies a trailing wildcard.

Terms must be 3 or more characters to return a result and must not be on the “stop word” list. If you need to do a search on something that is on the stop word list or is less than 3 characters (such as “As Seen on TV”), a suggestion is to place a code at the end of the long description for items instead such as ASOTV for As Seen on TV and embed that term in the link’s search. You can also specify the font color for the code to match the page background to make it invisible.