VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Catagory pages not linking to product pages.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

11 Posts

Posted - April 20 2005 :  08:40:10  Show Profile  Visit smitmap's Homepage  Reply with Quote
On pages 25 and 26 of the developers guide it tells how to code your templates to get them to read the sub- & products pages. I did this and it didn't work.

I went to the help desk did what they said to put only [formatimage sub] & [formathyperlinks sub]. I did this and it still doesn't work.

Anyone have any suggestions?


Pam Smith

Senior Member

United Kingdom
1898 Posts

Posted - April 20 2005 :  08:53:40  Show Profile  Visit devshb's Homepage  Reply with Quote
it might be that your pages aren't using templates; if you go to configuration and enter "%temp%" into the search field, then press [search], you'll get some of the relevant config options.

if you do another search for "%html%" you'll get more.

Simon Barnaby
[email protected]
Web Design, Online Marketing and VPASP addons

Edited by - devshb on April 20 2005 08:54:51
Go to Top of Page

Starting Member

11 Posts

Posted - April 20 2005 :  10:15:50  Show Profile  Visit smitmap's Homepage  Reply with Quote
I checked %temp% I saw all three of the templates that I am using in thier proper fields.

xcategorydisplaytemplate - tmp_categorytemplate.htm
xcategoryproducttemplates - yes
xcategoryusetemplate - yes
xproductdisplaytemplate - testtemplate2.htm
xproducttemplate - extendedtemplate.htm

Hide on categories - sub - products -- no

hassubcategories - yes on main category - no on subcategories

products - marked with category & subs

Don't have a category template for sub-category(need one?)

CODE for tmp_categorytemplate.htm (per help desk)
<div align="center">

<table border="0" cellpadding="2" width="100%">
<TD valign=top align=center>
[formatimage sub]</a></p>

<td align=center valign=top>
[formathyperlinks sub]


<td valign=top align=center>
<font style='FONT-WEIGHT:600;FONT-SIZE:8pt;COLOR:black;FONT-FAMILY:Tahoma,Verdana'>[catmemo]

CODE for testtemplate2.htm
<title>Template for products</title>
<link rel="stylesheet" type="text/css" href="shop.css">
<meta NAME="description" content="Chappell Supply and Equipment Online Catalog">
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
<meta name="Microsoft Theme" content="colestheme 1011, default">
<script language="JavaScript">
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }

function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }

function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
// -->
<body topmargin="250" leftmargin="150" marginwidth="0" marginheight="0" onload="FP_preloadImgs(/*url*/'images/button2F.gif', /*url*/'images/button2E.gif', /*url*/'images/button18.gif', /*url*/'images/button17.gif')" style="position: relative; left: 150; width: 72; top: 250; right: 760; text-align: justify; float: right" rightmargin="760">
<div align="center">
<div align="right">
<TABLE border="0" cellpadding="4" width="641" style="border-collapse: collapse">
<TD bgcolor="#333399" width="0"></TD>
<TD bgcolor="#333399" width="0"><B><FONT size="2" color="#FFFFFF">[cname]
<TD rowspan="2" bgcolor="#DADAB6">
<p align="center"><span style="font-weight: 400">
<a target="_parent" href="shopexd.asp?id=[catalogid]">
<img border="0" src="[cimageurl]" alt="Click on picture for more information"></a> </span>
<p align="center">
<font size="1">
<a target="_parent" href="shopexd.asp?id=[catalogid]">Click here for more information</a></p>
<TD rowspan="3" colspan="2" bgcolor="#DADAB6">
<p align="left"> <font size="1" face="Verdana">Code:<b> [ccode]</b>
<TABLE border="0" cellspacing="0" cellpadding="0" align="center">
<TD bgcolor="#DADAB6">
<DIV align="center"><font face="Arial" size="2"> [cdescription]
[FormatProductOptions sub] </font></DIV>
<TD align=center height="20" valign="bottom" bgcolor="#DADAB6"><B>
<font size="1" face="Verdana">Price:</font> </B><I><B>
<font size="2" face="Arial">[formatcurrency cprice]</font></B></I> </TD>
<TD align=center valign="bottom" height="0" bgcolor="#DADAB6"><B>Qty:</B>
[formatquantity sub]
<a href="shopaddtocart.asp?productid=1&quantity=1">
<img border="0" id="img1" src="images/button16.gif" height="20" width="100" alt="Add to Cart" fp-style="fp-btn: Metal Capsule 1; fp-font-style: Bold; fp-font-color-hover: #800000; fp-font-color-press: #008000; fp-transparent: 1; fp-orig: 0" fp-title="Add to Cart" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button17.gif')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button16.gif')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button18.gif')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button17.gif')"></a></a></TD>
<div align="right">

Go to Top of Page

Starting Member

11 Posts

Posted - April 20 2005 :  10:27:19  Show Profile  Visit smitmap's Homepage  Reply with Quote
add subcat template now its reading products. thanks for your trouble. I may be back though.

Have a good day


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000