The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Display 4 row with custom left nav
Author Message
Reply with quote
Post Display 4 row with custom left nav 
I want to customize the productpage.inc I want the left nav to look diffrent.
I put:
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<th width="150" bgcolor="#FF99FF" scope="row">&nbsp;</th>
<td width="618"><table align="center" bgcolor="#ffffff" border="0" width="568">
<tbody>
<tr>

right before the and </table></td></tr> after it

<!--agorascript-pre .
It shows the products but in is in a line straight down instead of rows of 4. When I take it out it shows in rows of 4. Should I put this somewhere else in the productpage.inc or should it be on the store_header.html

View user's profile Send private message
Reply with quote
Post  
put your left nav in the header.inc. the header inc should end with either
</td>
<td valign=top>
or
</td>
<td valign=top><table (table attributes)>
<tr>
<td valign=top

don't forget to close all tables, rows and cells left open in the header file with the footer file.

the ppinc is a complete nested set of tables. what you have to do is set up the layout in the header and footer so the ppinc displays where you want it to. so the left nav, even if nested, usually ends in a table cell then the content area (where the ppinc goes) is the next cell in the same row, which, is why the first example shows a closing cell then opens another. if you paste the header and footer into a text file and rename to test.html then the file should display exactly the way you want it to less the ppinc. if it's messed up then it will be messed up with the ppinc in it so fix the tables.
d

Reply with quote
Post  
ramel_12,
There is already a productPage that comes with the default installation of AgoraCart that is a 4 across display.
To view the different productPages that come with AgoraCart you might want to review the following post:
http://www.agoraguide.com/faq/viewtopic.php?t=2582

The left nav stuff is all in the store_header.inc file, not part of the productPage.

What is the URL to your store?

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Thanks U2. I was ueing the 4 row as my default I was just getting killed by the left nav.

View user's profile Send private message
Reply with quote
Post  
OK I'm back I got the nav to the right. But now it is wider then I want. I need a total 768 but it looks wrong and the Nav is not the right width now. here is a link. http://vsdeals.com/cgi-bin/vsCart/agora.cgi?xm=on&product=Bras

I used Dreamweaver if that makes any difference

View user's profile Send private message
Reply with quote
Post  
P.S.
If you add something to the cart then click view cart the cart looks like I want it to look like

View user's profile Send private message
Reply with quote
Post  
Well.... I am definitely seeing some problems with your files.

1. You have info in your header file that CANNOT be there.
Namely:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
body {
   margin-left: 0px;
   margin-top: 0px;
   margin-right: 0px;
   margin-bottom: 0px;
   background-color: #FFCCFF;
}
-->

</style><body onLoad="MM_preloadImages('http://www.vsdeals.com/images/header_23-over.gif','http://www.vsdeals.com/images/header_25-over.gif','http://www.vsdeals.com/images/header_27-over.gif','http://www.vsdeals.com/images/header_29-over.gif','http://www.vsdeals.com/images/header_31-over.gif','http://www.vsdeals.com/images/header_33-over.gif','http://www.vsdeals.com/images/header_35-over.gif','http://www.vsdeals.com/images/header_37-over.gif','http://www.vsdeals.com/images/header_13-over.gif','http://www.vsdeals.com/images/header_15-over.gif','http://www.vsdeals.com/images/header_17-over.gif','http://www.vsdeals.com/images/header_19-over.gif','http://www.vsdeals.com/images/header_21-over.gif')">

For proper placement of this info, please refer to the following threads:
http://www.agoraguide.com/faq/viewtopic.php?t=1156
http://www.agoraguide.com/faq/viewtopic.php?t=358

2. This stuff, cannot be in the footer, either. Also, it looks a little messed up:
Code:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.style1 {
   font-family: Verdana, Arial, Helvetica, sans-serif;
   font-size: 12px;
}
-->
</td>
  </tr>
</table>
</style>


3. There is also a few coding errors in the productPage.inc file that is causing problems.
Ot looks like the page is coded as (the problem areas are highlighted in red):
Quote:

Missing tags:
<TR><TD>

<table align="right" bgcolor="#FFFFFF" width="600" border=0>
<tr>
<td bgcolor="#FFFFFF" width="25%" valign="top">
<FORM METHOD = "post" ACTION = "agora.cgi">
%%make_hidden_fields%%

<table bgcolor="#FFFFFF" width=80%>
Tags are missing: <TR><TD>
<div align="center">%%image%%</div>

Missing tag: </TD>
</tr>

<tr>
<td><div align="center"><font face="Verdana" size="2"> <b>%%name%%</b> <br>
<font color="#FF0000">%%price%%</font> <br>

</font> </div>
</td>
</tr>
<tr>
<td align="center">
<div align="center">
<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2"> <font size="2" face=Arial, helvetica, sans-serif>More Info</font></a>
</div>
</td>
</tr>
</table>
The </form> tag needs to be moved inside a </td> tag:
</FORM>

</td>
<td width="25%">&nbsp; </td>
<td width="25%">&nbsp; </td>
<td width="25%">&nbsp; </td>
</tr>
</table>
</td>
</tr>


HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum