Sub Product Pages

General ShopSite user discussion

Sub Product Pages

Postby interwoven » Fri Jun 08, 2007 9:33 pm

Im having trouble getting the page links to "sub pages" to show up on the store pages I set up as a main catagory page. Should I not be attempting to approach sub products with pages or am I probably just missing something from my custom store page template or link override template? My store page template has no Link Loop tags. Is this the problem or is the Link Override template in need of something? I would sure appreciate help from one of you advanced shopsiters.
Confused
interwoven
 
Posts: 7
Joined: Fri Jun 08, 2007 9:11 pm

Postby Jim » Sat Jun 09, 2007 12:57 pm

Please explain in more detail what you are trying to do.

If you are trying to create links to other pages in you store then your template should contain the Loop Links code because that is what generates the html for the links. And the page template should contain the section [--DEFINE LINK_TO_PAGE--] Which defines formatting for the links.

The Link Override template is just used for search results so from what you are describing this probably would not relate to your situation.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby interwoven » Sat Jun 09, 2007 11:26 pm

Yes, sorry my message should have been more descriptive. Hope this one isn’t too long.
What I’m trying to do is have main category pages (e.g. Lamps and Lighting), which displays links to pages containing a group of products that would fall under that category, like “Lenses.html”, “Bulbs.html”, etc. So instead of having sub products, I wanted individual sub product pages.

The existing site has product in general category pages. But there is a need for further grouping of product types. It seemed for the Lamps and Lighting page it would make sense to put sub categories of the general categories on their own pages so the user could see the photos with the descriptions instead of using drop-down menus or some other form of sub products.

I had created the new sub pages with in the Back Office and assigned the appropriate products. The new pages showed up in my List of Pages so I cleared the products from the general category page and assigned the new pages as items on that page. But when I checked the Links and Lighting page in shopsite’s preview, it was now without any product. When I looked at the server with an FTP utility, I could see that Shopsite had generated pages named “Page32.html, Page33.html” etc.

When I view the Edit Page Content Page and “select the pages that link to this one”, the main category page (Lamps and Lighting) does show up.

My custom store template uses direct hypertext links so I had taken out the Loop Links code, thinking I didn’t need them (dumb).

So I dropped this in:

[-- LOOP LINKS --]
<br>[-- LINK --]
[-- END_LOOP LINKS --]

Now the storefront template is showing no product on any pages, only the banner. YIKES! Client will not be happy!

The site is www.apartswarehouse.com. Below is my custom template. Theres a lot going on but if you scroll to the end you’ll get past a lot of Javascript and HTML code.

I just stuck the Define link to Page part but it didn’t help . Im getting too tired to think…..

Thanks for your help Jim!


[-- DEFINE LINK_TO_PAGE --]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[-- Page.FileName --]">
[-- IF PAGE.LinkName --]
[-- PAGE.LinkName --]
[-- ELSE --]
[-- PAGE.Name --]
[-- END_IF --]
</a>
[-- END_DEFINE LINK_TO_PAGE --]


[-- DEFINE PAGE --]

<html>
<head>
<title>[-- PAGE.Name Remove_HTML --]</title>
<link href="2col-fixed.css" rel="stylesheet" type="text/css">

<SCRIPT LANGUAGE="JavaScript">
<!-- Boilerplate1 Preload Script Begins -->

<!--

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
home_ImageMap_home_over = newImage("media/images/home-ImageMap_home_over.gif");
home_ImageMap_account_over = newImage("media/images/home-ImageMap_account_over.gif");
home_ImageMap_about_down = newImage("media/images/home-ImageMap_about_down.gif");
home_ImageMap_home_down = newImage("media/images/home-ImageMap_home_down.gif");
youraccount_ImageMap_account_over = newImage("media/images/youraccount-ImageMap_accoun.gif");
youraccount_ImageMap_account_down = newImage("media/images/youraccount-ImageMap_acc-11.gif");
youraccount_ImageMap_account_click = newImage("media/images/youraccount-ImageMap_acc-12.gif");
youraccount_ImageMap_contact_down = newImage("media/images/youraccount-ImageMap_contac.gif");
youraccount_ImageMap_about_down = newImage("media/images/youraccount-ImageMap_about_.gif");
youraccount_ImageMap_links_down = newImage("media/images/youraccount-ImageMap_links_.gif");
shoppingcart_ImageMap_cart_over = newImage("media/images/shoppingcart-ImageMap_cart_.gif");
shoppingcart_ImageMap_cart_down = newImage("media/images/shoppingcart-ImageMap_ca-18.gif");
shoppingcart_ImageMap_cart_click = newImage("media/images/shoppingcart-ImageMap_ca-19.gif");
shoppingcart_ImageMap_links_down = newImage("media/images/shoppingcart-ImageMap_links.gif");
logo_ImageMap_logo_over = newImage("media/images/logo-ImageMap_logo_over.gif");
logo_ImageMap_logo_down = newImage("media/images/logo-ImageMap_logo_down.gif");
aboutus_ImageMap_about_over = newImage("media/images/aboutus-ImageMap_about_over.gif");
aboutus_ImageMap_about_down = newImage("media/images/aboutus-ImageMap_about_down.gif");
contact_ImageMap_contact_over = newImage("media/images/contact-ImageMap_contact_ov.gif");
contact_ImageMap_contact_down = newImage("media/images/contact-ImageMap_contact_do.gif");
links_ImageMap_cart_down = newImage("media/images/links-ImageMap_cart_down.gif");
links_ImageMap_links_over = newImage("media/images/links-ImageMap_links_over.gif");
links_ImageMap_links_down = newImage("media/images/links-ImageMap_links_down.gif");
boilerplate1_12_ImageMap_cart_down = newImage("media/images/boilerplate1_12-ImageMap_ca.gif");
boilerplate1_13_ImageMap_contact_down = newImage("media/images/boilerplate1_13-ImageMap_co.gif");
boilerplate1_13_ImageMap_about_down = newImage("media/images/boilerplate1_13-ImageMap_ab.gif");
boilerplate1_13_ImageMap_links_down = newImage("media/images/boilerplate1_13-ImageMap_li.gif");
preloadFlag = true;
}
}

// -->
</SCRIPT>
<!-- Boilerplate1 Preload Script Ends -->





</HEAD>

<BODY BGCOLOR=#FFFFFF ONLOAD="preloadImages();">


<div align="center">


<table border="0">
<tr><td colspan=3>

<!-- ImageReady Slices (boilerplate1.psd) -->
<TABLE WIDTH=737 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=57 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=17 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=55 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=9 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=35 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=52 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=333 HEIGHT=1></TD>
<TD>
<IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=1></TD>
</TR>
<TR>
<TD COLSPAN=7>
<IMG SRC="media/images/boilerplate1_01.gif" WIDTH=360 HEIGHT=36 BORDER=0 USEMAP="#boilerplate1_01_Map"></TD>
<TD COLSPAN=2>
<IMG SRC="media/images/boilerplate1_02.gif" WIDTH=377 HEIGHT=36></TD>
</TR>
<TR>
<TD>

<!-- NOTE: The A HREF pointing to the non-store pages has an identical banner but different path. Non-site pages are not under "store/" they are under "...images" -->

<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="home" SRC="media/images/home.gif" WIDTH=57 HEIGHT=17 BORDER=0 USEMAP="#home_Map"></A></TD>


<!-- "..account.html below is a temporary file and must changed probably to "account.html" when this feature is activated-->


<TD COLSPAN=3>
<A HREF="http://www.apartswarehouse.com/account.html"
ONMOUSEOVER="window.status='Your Account'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="youraccount" SRC="media/images/youraccount.gif" WIDTH=81 HEIGHT=17 BORDER=0 USEMAP="#youraccount_Map"></A></TD>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='Your Shopping Cart'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="shoppingcart" SRC="media/images/shoppingcart.gif" WIDTH=87 HEIGHT=17 BORDER=0 USEMAP="#shoppingcart_Map"></A></TD>
<TD ROWSPAN=2>
<IMG SRC="media/images/spacer.gif" WIDTH=135 HEIGHT=29></TD>
<TD ROWSPAN=2>



<!-- LOGO MAP BELOW -->

<A HREF="http://www.apartswarehouse.com/index.html"
ONMOUSEOVER="window.status='A Parts Home'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="logo" SRC="media/images/logo.gif" WIDTH=333 HEIGHT=29 BORDER=0 USEMAP="#logo_Map"></A></TD>



<TD ROWSPAN=2>
<IMG SRC="media/images/spacer.gif" WIDTH=44 HEIGHT=29></TD>
</TR>
<TR>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/aboutus.html"
ONMOUSEOVER="window.status='About Us Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="aboutus" SRC="media/images/aboutus.gif" WIDTH=74 HEIGHT=12 BORDER=0 USEMAP="#aboutus_Map"></A></TD>
<TD>
<A HREF="http://www.apartswarehouse.com/contact.html"
ONMOUSEOVER="window.status='Contacts Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="contact" SRC="media/images/contact.gif" WIDTH=55 HEIGHT=12 BORDER=0 USEMAP="#contact_Map"></A></TD>
<TD COLSPAN=2>
<A HREF="http://www.apartswarehouse.com/links.html"
ONMOUSEOVER="window.status='Links Page'; changeImages('home', 'media/images/home.gif', 'youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'logo', 'media/images/logo.gif', 'aboutus', 'media/images/aboutus.gif', 'contact', 'media/images/contact.gif', 'links', 'media/images/links.gif'); return true;"
ONMOUSEOUT="window.status=''; return true;">
<IMG NAME="links" SRC="media/images/links.gif" WIDTH=44 HEIGHT=12 BORDER=0 USEMAP="#links_Map"></A></TD>
<TD>
<IMG NAME="boilerplate1_12" SRC="media/images/boilerplate1_12.gif" WIDTH=52 HEIGHT=12></TD>
</TR>
<TR>
<TD COLSPAN=7>
<IMG NAME="boilerplate1_13" SRC="media/images/boilerplate1_13.gif" WIDTH=360 HEIGHT=41></TD>
<TD COLSPAN=2>
<IMG SRC="media/images/boilerplate1_14.gif" WIDTH=377 HEIGHT=41></TD>
</TR>
</TABLE>


<MAP NAME="boilerplate1_01_Map">
<AREA SHAPE="rect" ALT="Home Page" COORDS="316,6,318,7" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
<AREA SHAPE="rect" ALT="Home Page" COORDS="304,9,309,10" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self">
</MAP>
<MAP NAME="home_Map">
<AREA SHAPE="rect" ALT="Home" COORDS="17,2,50,15" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_home_over.gif'); return true;"
ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo.gif'); return true;"
ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_home_down.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_home_over.gif', 'logo', 'media/images/logo.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,57,17" HREF="http://www.apartswarehouse.com/index.html">
</MAP>
<MAP NAME="youraccount_Map">
<AREA SHAPE="rect" ALT="Your Account" COORDS="6,5,75,12" HREF="http://www.apartswarehouse.com/account.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-11.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount-ImageMap_accoun.gif'); return true;"
ONCLICK="changeImages('youraccount', 'media/images/youraccount-ImageMap_acc-12.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,81,17" HREF="http://www.apartswarehouse.com/account.html">
</MAP>
<MAP NAME="shoppingcart_Map">
<AREA SHAPE="rect" ALT="StoreFront" COORDS="7,5,81,15" HREF="http://www.apartswarehouse.com/store/index.html" TARGET="_blank"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif'); return true;"
ONMOUSEOUT="changeImages('shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
ONMOUSEDOWN="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-18.gif', 'links', 'media/images/links-ImageMap_cart_down.gif', 'boilerplate1_12', 'media/images/boilerplate1_12-ImageMap_ca.gif'); return true;"
ONMOUSEUP="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_cart_.gif', 'links', 'media/images/links.gif', 'boilerplate1_12', 'media/images/boilerplate1_12.gif'); return true;"
ONCLICK="changeImages('shoppingcart', 'media/images/shoppingcart-ImageMap_ca-19.gif');">
<AREA SHAPE="rect" ALT="" COORDS="0,0,87,17" HREF="index.html">
</MAP>



<MAP NAME="logo_Map">
<AREA SHAPE="rect" ALT="A Parts Home" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;"
ONMOUSEOUT="changeImages('logo', 'media/images/logo.gif'); return true;"
ONMOUSEDOWN="changeImages('logo', 'media/images/logo-ImageMap_logo_down.gif'); return true;"
ONMOUSEUP="changeImages('logo', 'media/images/logo-ImageMap_logo_over.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="#">
<AREA SHAPE="rect" ALT="" COORDS="0,0,333,29" HREF="http://www.apartswarehouse.com/index.html">
</MAP>



<MAP NAME="aboutus_Map">
<AREA SHAPE="rect" ALT="About A Parts" COORDS="19,2,66,9" HREF="http://www.apartswarehouse.com/aboutus.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif'); return true;"
ONMOUSEOUT="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('home', 'media/images/home-ImageMap_about_down.gif', 'youraccount', 'media/images/youraccount-ImageMap_about_.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_ab.gif'); return true;"
ONMOUSEUP="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'youraccount', 'media/images/youraccount.gif', 'aboutus', 'media/images/aboutus-ImageMap_about_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,74,12" HREF="http://www.apartswarehouse.com/aboutus.html">
</MAP>
<MAP NAME="contact_Map">
<AREA SHAPE="rect" ALT="Contact A Parts" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html" TARGET="_self"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_contac.gif', 'contact', 'media/images/contact-ImageMap_contact_do.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_co.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'contact', 'media/images/contact-ImageMap_contact_ov.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,55,12" HREF="http://www.apartswarehouse.com/contact.html">
</MAP>
<MAP NAME="links_Map">
<AREA SHAPE="rect" ALT="Links" COORDS="10,2,36,9" HREF="http://www.apartswarehouse.com/links.html" TARGET="_blank"
ONMOUSEOVER="changeImages('home', 'media/images/home-ImageMap_account_over.gif', 'links', 'media/images/links-ImageMap_links_over.gif'); return true;"
ONMOUSEOUT="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;"
ONMOUSEDOWN="changeImages('youraccount', 'media/images/youraccount-ImageMap_links_.gif', 'shoppingcart', 'media/images/shoppingcart-ImageMap_links.gif', 'links', 'media/images/links-ImageMap_links_down.gif', 'boilerplate1_13', 'media/images/boilerplate1_13-ImageMap_li.gif'); return true;"
ONMOUSEUP="changeImages('youraccount', 'media/images/youraccount.gif', 'shoppingcart', 'media/images/shoppingcart.gif', 'links', 'media/images/links-ImageMap_links_over.gif', 'boilerplate1_13', 'media/images/boilerplate1_13.gif'); return true;">
<AREA SHAPE="rect" ALT="" COORDS="0,0,44,12" HREF="http://www.apartswarehouse.com/links.html">
</MAP>
<!-- End ImageReady Slices -->
</td></tr>


<tr><td colspan=3> <!-- UNDER BOILERPLATE -->







</td></tr>

<!-- New Row -->
<tr><td colspan=2 align="left" height="15px">[-- SEARCH_FORM --]</td><td colspan="1">[-- RegistrationSignIn --]</td></tr>


<tr><td align="center" valign="top" width="198" bgcolor="#ffffcc">
<!-- LEFT COLUMN > -->



<!-- Minicart Include file Tags here screwed up the page so I pasted the whole script here-->

<script language="javascript">
/**** Mini Cart Subtotal Display ****/

/**** REPLACE THE VALUES IN THESE LINES ****/
var serialnum="0000007011";
var cartURL="http://win2k/70/sc/order.cgi?storeid=*1a484557c5eb4b795d9463eed85a11&function=show";
var textColor="black";
var backgroundColor="transparent";
var showCart="yes"; // only "yes" or "no"
var cartColor="black"; // only "black" or "white"
var textAlign="left"; // only "left" "right" or "center"

/**** DON'T CHANGE ANYTHING BELOW HERE ****/

var linkColor=textColor;
var cookies=document.cookie; //read in all cookies
var start = cookies.indexOf("ss_cart_" + serialnum + "=");
var cartvalues = "";
var linecount = 0;
var start1;
var end1;
var tmp;

// Start Output
document.write("<div style=\"color:" + textColor + ";");
document.write("background-color:" + backgroundColor + ";");
document.write("text-align:" + textAlign + ";");
document.write("font-family: Verdana, Arial, Helvetica, sans-serif;");
document.write("font-size: 8pt;");
document.write("\">\n");
if (showCart == "yes")
{
document.write("<a href=\"");
document.write(cartURL + "\"");
document.write(">");
document.write("<img src=\"./media/themesmedia/cart-" + cartColor + ".gif\" border=\"0\" align=\"top\">");
document.write("</a> ");
}

if (start == -1) //No cart cookie
{
document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
document.write("0 Items");
document.write("</a> ");
document.write("</div>\n");
}
else //cart cookie is present
{
start = cookies.indexOf("=", start) +1;
var end = cookies.indexOf(";", start);

if (end == -1)
{
end = cookies.length;
}

cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data

start = 0;
while ((start = cartvalues.indexOf("|", start)) != -1)
{
start++;
end = cartvalues.indexOf("|", start);
if (end != -1)
{
linecount++;

if (linecount == 2) // Total Quantity of Items
{
tmp = cartvalues.substring(start,end);
colon = tmp.indexOf(":", 0);
document.write("<a href=\"" + cartURL + "\" style=\"color:" + linkColor + "\">");
document.write(tmp.substring(colon+1,end - start));
if ((tmp.substring(colon+1,end - start)) == 1 )
{
document.write(" Item");
}
else
{
document.write(" Items");
}
document.write(": ");
}

if (linecount == 3) // Product Subtotal
{
tmp = cartvalues.substring(start,end);
colon = tmp.indexOf(":", 0);
document.write(tmp.substring(colon+1,end - start));
document.write("</a>");
}

start = end;
}
else
break;
}
} // end while loop

//close minicart HTML
document.write("</div>\n");
</script>




<!-- <h3>Store Departments</h3> -->


<!-- No Links Loop Needed below since links are just hypertext -->


<br><hr size="1" width="80%">
<a name="Accessories " id="accessories " href="accessories.html" target="_self" title="Accessories Storefront Page">
Accessories
</a><hr size="1" width="70%">


<a name="Brooms & Scrapers " id="brooms " href="brooms.html" target="_self" title="Brooms & Scrapers Storefront Page">
Brooms &amp; Scrapers
</a><br><hr size="1" width="90%">


<a name="Decals" id="decals " href="decals.html" target="_self" title="Decals Storefront Page">
Decals &amp; Signs
</a><hr size="1" width="90%">


<a name="electrical " id="electrical " href="electric.html" target="_self" title="Electrical Storefront Page">
Electrical
</a><hr size="1" width="90%">


<a name="Exhaust " id="exhaust " href="exhaust.html" target="_self" title="Exhaust Storefront Page">
Exhaust
</a><hr size="1" width="90%">


<a name="First Aid " id="firstaid " href="firstaid.html" target="_self" title="First Aid Storefront Page">
First Aid
</a><hr size="1" width="90%">


<a name="Flooring " id="Flooring " href="flooring.html" target="_self" title="Flooring Storefront Page">
Flooring
</a><hr size="1" width="90%">


<a name="Gloves " id="gloves " href="gloves.html" target="_self" title="Gloves Storefront Page">
Gloves
</a><hr size="1" width="90%">


<a name="Heater Parts " id="heater parts " href="heaters.html" target="_self" title="Heater Parts Storefront Page">
Heater Parts
</a><hr size="1" width="90%">


<a name="Lamps " id="lamps " href="lamps.html" target="_self" title="Lamps Storefront Page">
Lamps
</a><hr size="1" width="90%">


<a name="sealants" id="sealants " href="sealants.html" target="_self" title="Lubricants & Sealants Store Page">
Solvents, Lubricants, Paint &amp; Sealants
</a><hr size="1" width="90%">


<a name="mirrors" id="mirrors" href="mirrors.html" target="_self" title="Mirrors Store Page">
Mirrors
</a><hr size="1" width="90%">


<a name="Motors and Pumps" id="motors " href="motors_pumps.html" target="_self" title="Motors & Pumps Storefront Page">
Motors &amp; Pumps
</a><br><hr size="1" width="90%">


<a name="Radios and Cameras" id="radios " href="radios_cams.html" target="_self" title="Radios & Cameras Storefront Page">
Radios &amp; Cameras
</a><br><hr size="1" width="90%">


<a name="roofvents" id="roofvents" href="roofvents.html" target="_self" title="Roof Vents Store Page">
Roof Vents / Emergency Exits
</a><hr size="1" width="90%">


<a name="seating" id="seating" href="seating.html" target="_self" title="Seating Store Page">
Seating
</a><hr size="1" width="90%">


<a name="stoparms" id="stoparms" href="stop_arms.html" target="_self" title="Stop Arms Store Page">
Stop &amp; Crossing Arms
</a><hr size="1" width="90%">


<a name="specialneeds" id="specialneeds" href="specialneeds.html" target="_self" title="Special Needs Store Page">
Special Needs
</a><hr size="1" width="90%">


<a name="tools" id="tools" href="tools.html" target="_self" title="Tools Store Page">
Tools
</a><br><hr size="1" width="90%">

<a name="wipers" id="wipers" href="wipers.html" target="_self" title="Wipers Store Page">
Wipers
</a><br>
<br><br><br>




</td>


<!-- SPACER CELL -->
<td width="30"></td>


<td width="521" align="left" valign="top"><!-- CONTENT CELL -->
<div id="content">


[-- PAGE.Text1 --]

[-- LOOP LINKS --]
<br>[-- LINK --]
[-- END_LOOP LINKS --]



<table border="1" bordercolordark="#ffffcc" bordercolorlight="#ffffff" cellpadding="1" cellspacing="2">
[-- LOOP PRODUCTS 2--]
<tr>
<td>
[-- PRODUCT --]
</td>
</tr>
[-- END_LOOP PRODUCTS --]
</table>
[-- PAGE.Text2 --]


</div>

<!-- CONTENT CELL ENDS--></td></tr>

<!-- Footer Nav Begins-->

</table>
<table><tr><td width="700"><hr size="1"></td></tr></table>
<!-- Footer Nav Begins-->

<table border=0>
<tr><td width="519" align="center">
<div id="tabletext1">

<a name="A Parts Home" id="A Parts Home" href=&quot;http://www.apartswarehouse.com/links.html" title="Home Page">Home</a>
| <a name="Account" id="Account" href="http://www.apartswarehouse.com/account.html" title="User Account">Your Account</a>
| <a name="StoreFront" id="StoreFront" href="http://www.apartswarehouse.com/store/index.html" target="_blank" title="StoreFront">StoreFront</a>
| <a name="About Us" id="About Us" href="http://www.apartswarehouse.com/aboutus.html" title="About Us">About Us</a>
| <a name="Contact Us " id="Contact Us " href="http://www.apartswarehouse.com/contact.html" title="Contact">Contact Us</a>
| <a name="Links" id="Links" href="http://www.apartswarehouse.com/links.html" title="Links">Links</a>
</div></td></tr>

<tr><td width="519" align="center"><div id="tabletext2">Copyright 2006, A Parts Warehouse.</div></td></tr>
</table>

[-- PAGE.Text3 --]

</body></div>
</html>
[-- END_DEFINE PAGE --]
interwoven
 
Posts: 7
Joined: Fri Jun 08, 2007 9:11 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 56 guests