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
Customzing the way the Products are laid out.
Author Message
Reply with quote
Post Customzing the way the Products are laid out. 
Hello,

If you would take a look at my mini store over here: http://store.exonesis.com/tomorrow/agora.cgi?product=maletshirts

You'll see that the products are piling up to the right. How do I customize the productPage.inc file so that only 1 product displays per table row? >.<

I've tried messing around with the table codes in there, but it doesn't seem to work.

Any help would be greatly appreciated!

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
EDIT: The products are displaying 2 per table row. How do I change it 1 per table row? >.<

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
Sorry...I thought I should post the code in the pageproduct.inc file. I had assumed everyone knew. >.<
Code:

<!--agorascript-pre
{ #Start of controller code, probably should leave this alone ;-)
local ($myans)="";
if ($rowCount == (1+$minCount)) { #first one
  $ags_row_item=0;
  $ags_tot_item=0;
  $myans .= '<tr><td colspan=1><table width="100%" border=1>'."\n";
 }
$ags_row_item++;
$ags_tot_item++;
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
 { # very last one, need to join these two cells, no border
  if ($ags_row_item == 1) { # first and only one
    $myans .= '<td width="100%" colspan=1><table width=100% border=1>'."\n";
    $myans .= '<tr>'."\n";
   }
 }
if ($ags_row_item == 2) { # second one
  $ags_row_item=0; #reset counter
  $myans .= '<td width="50%"><table width=100% border=0>'."\n";
 } else { #first one
  $myans .= '<tr><td width="50%"><table width=100% border=0>'."\n";
 }
return $myans;
} # end of controller code
-->
<TR WIDTH="100%">
<TD ALIGN="CENTER" WIDTH="160" VALIGN="MIDDLE">
<FONT FACE="Trebuchet MS" SIZE="2">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<BR>
%%optionFile%%
<BR>
<P>
<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
 <TD VALIGN="MIDDLE">%%QtyBox%%</TD>
 <TD VALIGN="MIDDLE"><INPUT TYPE="IMAGE"
 NAME="add_to_cart_button" VALUE="Add To Cart"
 SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0">
 </TD>
</TR>
</TABLE>
<!--END SELECT QUANTITY BUTTON-->
</TD>
<TD ALIGN="CENTER" WIDTH="150"><A HREF="javascript:popUp('%%URLOfImages%%%%UserFieldTwo%%,border=0')">%%image%%</A></TD>
</tr>
<!--agorascript-pre
{ # more controller code
local ($myans)="";
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
 { # very last one
  if ($ags_row_item == 1) { # first and only one
    $myans .= '</table></td>'."\n";
    $myans .= '<td width="50%"><table width=100%>'."\n";
   }
 }
return $myans;
} # end controller code
-->
<tr><TD colspan=1>
<FONT FACE="Trebuchet MS" SIZE="2">
<b>%%name%%</b>
<br>
%%description%%
</FONT>
</TD>
</FORM>
</TR>
<TR>
<td colspan=2><table width='100%' border=0 cellpadding=0 cellspacing=0>
<tr><td width='33%' align=center>
<FONT FACE="Trebuchet MS" SIZE="2" color="#FF0000">%%price%%</font>
</td>
<td width='33%' align=center>
<A HREF="%%scripturl%%?dc=1&%%href_fields%%"><FONT FACE=Trebuchet MS>View Cart</FONT>
</A>
</td>
<td width = '33%' align=center>
<A HREF='%%StepOneURL%%?order_form_button.x=1&%%href_fields%%'><FONT
FACE=Trebuchet MS>Check Out</FONT>
</A>
</TD>
</tr></table>
</TD>
</TR>
<!--agorascript-pre
{ # more controller code
local ($myans)="";
if ($ags_row_item == 1) { # first one
  $myans .= '</table></td>'."\n";
 } else { # second one
  $myans .= '</table></td></tr>'."\n";
 }
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
 { # very last one, need to join these two cells, no border
  if ($ags_row_item == 1) { # first and only one
    $myans .= '</tr></table></td>'."\n";
   }
 }
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
 { # very last one
#  if ($ags_row_item == 1) { # finished first one, add a blank dummy
#second
#    $myans .= '<td>&nbsp;</td></tr>'."\n";
#   }
  $myans .= '</table></td></tr>'."\n";
 }
return $myans;
} # end controller code
-->


View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
Ahh...I found the solution. Sorry the search engine wasn't working when I posted this. But it did when I did another search later thanks!

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
These threads help with the productPage layout question:
http://www.agoraguide.com/faq/viewtopic.php?t=2582
http://www.agoraguide.com/faq/viewtopic.php?t=27

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