Welcome, Guest ( Customer Panel | Login )




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

smitmap
Starting Member

USA
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?

Thanks

Pam Smith

devshb
Senior Member

United Kingdom
1904 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
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

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

smitmap
Starting Member

USA
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%">
<tr>
<TD valign=top align=center>
<p>
[formatimage sub]</a></p>
</td>

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

</a></p>

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


CODE for testtemplate2.htm
<html>
<head>
<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"/>
</xml>
<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;
}
// -->
</script>
</head>
<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">
<TR>
<TD bgcolor="#333399" width="0"></TD>
<TD bgcolor="#333399" width="0"><B><FONT size="2" color="#FFFFFF">[cname]
</FONT></B></TD></a>
<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>
</font>
</TD>
</TR>
<TR>
<TD rowspan="3" colspan="2" bgcolor="#DADAB6">
<p align="left"> <font size="1" face="Verdana">Code:<b> [ccode]</b>
</font></p>
<TABLE border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<TD bgcolor="#DADAB6">
<DIV align="center"><font face="Arial" size="2"> [cdescription]
[FormatProductOptions sub] </font></DIV>
</TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<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>
</TR>
<TR>
<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>
</TR>
</TABLE>
</div></div>
<div align="right">
 </div>


Go to Top of Page

smitmap
Starting Member

USA
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

pam

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00