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
Showing ten items not working
Author Message
Reply with quote
Post Showing ten items not working 
Hello,
I recently changed my store at
http://www.urban-fusion.com/agora/agora.cgi?product=silverbeads to show ten items but it appears the first two items show fine but the other items show under my left menu. I tried removing the headers and footers but the first two items still show on the first row and the rest have their own <tr>. Here is what I have for the header:

<!--BEGIN HEADER TABLE-->
<table WIDTH=765 HEIGHT=80 BGCOLOR="#FFFFFF" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td HEIGHT=40 ALIGN=CENTER> </td>
<td HEIGHT=40 ALIGN=right><img src="../../../../../images/uf_shopheader.jpg" width="790" height="114"></td>
</tr>
<tr>
<td HEIGHT=40 ALIGN=CENTER>
</td>
<td HEIGHT=40 ALIGN=right><div align="left"><font face="Times New Roman, Times, serif" color="#ffffff" size=3>FF<font color="#663333">FREE SHIPPING FOR ORDERS OVER $25.00</font></font>

</div></td>
</tr></TABLE>
<TABLE WIDTH=765 BORDER=0 CELLSPACING=0 CELLPADDING=0 align=top>
<TR><TD WIDTH=145 valign=top bgcolor="#FFFFFF" height=100%>
</CENTER>
<table width="142" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><img src="../../../../../images/ufbuttonscart_01.gif" width="142" height="132"></td>
</tr>
<tr>
<td><a href="http://www.urban-fusion.com/agora/agora.cgi?cartlink=babyshopping.html&cart_id=1005978.23280*xe1qu71005978.23280"><img src="../../../../../images/ufbuttonscart_02.gif" width="142" height="35" border="0"></a></td>
</tr>
<tr>
<td><img src="../../../../../images/ufbuttonscart_03.gif" width="142" height="39" border="0"></td>
</tr>
<tr>
<td><a href="http://www.urban-fusion.com/agora/agora.cgi?cartlink=Jewelryshopping.html"><img src="../../../../../images/ufbuttonscart_04.gif" width="142" height="38" border="0"></a></td>
</tr>
<tr>
<td><a href="http://www.urban-fusion.com/agora/agora.cgi?cartlink=candleshopping.html"><img src="../../../../../images/ufbuttonscart_05.gif" width="142" height="40" border="0"></a></td>
</tr>
<tr>
<td><img src="../../../../../images/ufbuttonscart_06.gif" width="142" height="37"></td>
</tr>
<tr>
<td><a href="agora.cgi?cartlink=GoodEarthShopping.html"><img src="../../../../../images/ufbuttonscart_07.gif" width="142" height="40" border="0"></a></td>
</tr>
<tr>
<td><a href="agora.cgi?cartlink=SoapsandLotions.html"><img src="../../../../../images/ufbuttonscart_08.gif" width="142" height="65" border="0"></a></td>
</tr>
<tr>
<td><a href="http://www.urban-fusion.com/registry.html" target="_blank"><img src="../../../../../images/registershopping_01.gif" width="141" height="64" border="0"></a></td>
</tr>
<tr>
<td><a href="http://www.urban-fusion.com/signup.html" target="_blank"><img src="../../../../../images/registershopping_02.gif" width="136" height="66" border="0"></a></td>
</tr>
<tr>
<td><div align="center"><img src="../../../../../images/circle_master2a.gif" width="80" height="72"></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>


<p> </p>
<p><BR>
</p>
<BR>
<CENTER>

</CENTER><br><br>


<br>
<br>
</CENTER></TD>
<TD WIDTH="620" valign=top>
<!--agorascript-pre {
local (@my_cart_fields,$my_cart_row_number,$result);
local ($count,$price,$product_id,$quantity,$total_cost,$total_qty)=0;
if ((!(-f "$sc_cart_path"))||($sc_processing_order =~ /yes/i)) {return ""}
open (CART, "$sc_cart_path") || &file_open_error("$sc_cart_path",
"display_cart_contents_in_header", __FILE__, __LINE__);
while (<CART>)
{
$count++;
chop;
@my_cart_fields = split (/\|/, $_);
$my_cart_row_number = pop(@my_cart_fields);
push (@my_cart_fields, $my_cart_row_number);
$quantity = $my_cart_fields[0];
$product_id = $my_cart_fields[1];
$price = $my_cart_fields[$sc_cart_index_of_price_after_options];
$total_cost = $total_cost + $quantity * $price;
$total_qty = $total_qty + $quantity;
} # End of while (<CART>)
close (CART);
if ($count > 0) {
$result = '<div align="center">' .
'<center><table border=0 width=100% cellspacing=0 bgcolor="#FFFFFF" ><tr>' .
'<td width="25%" align=left>&nbsp;&nbsp;' .
'<a href="agora.cgi?dc=1&%%href_fields%%' .
'"><font color="#666666">View Cart</font></a></td>' .
'<td width="50%" align=center><font color="#FFFFFF">' .
"Items in shopping cart: $total_qty &nbsp;\n&nbsp; " .
"<br>Item cost subtotal:&nbsp; " . &display_price($total_cost) .
"</font></td>\n" .
'<td width="25%" align=right>' .
'<a href="%%StepOneURL%%?order_form_button.x=1&%%href_fields%%' .
'"><font color="#666666">Check Out</font></a>&nbsp;&nbsp;</td>' .
"</tr></table></center></div>";
} else {
$result = "";
}
return $result;
}-->

<!--END HEADER TABLE-->

Here is what I have for the footer:

</form>
</TD></TR><tr><td colspan=3 valign=top>
<TABLE WIDTH=100% BORDER=0 cellspacing=0 cellpadding=0 bgcolor="#FFFFFF" background="agora.cgi?secpicserve=" align=top>
<TR valign=top>
<TD>
<LEFT>
<!--agorascript-pre
&capture_STDOUT;
&cartlinks;
print "<font face=\"Arial\" size=\"2\">";
# take make links underlined
# $cartlinks =~ s/style=\"text-decoration: none\"//ig;
# to layout horizontally with 3 spaces
#$cartlinks =~ s/<br>/&nbsp;&nbsp;&nbsp;/ig;
# to layout horizontally with | dividers spaces
#$cartlinks =~ s/<br>/&nbsp;&nbsp;|&nbsp;&nbsp;/ig;
#print $cartlinks;
print "</font>";
&uncapture_STDOUT; --></LEFT></TD></TR></TABLE>
</td></tr></TABLE>
</td></tr>
</TABLE>
</td></tr>
</table><CENTER>
<p align=center class=style5><a href="agora.cgi?cartlink=Contact_Us.htm" class=style1>Contact Us</a> | <a href="agora.cgi?cartlink=Customer_Service.htm" class=style1>Customer Service</a> | <a href="agora.cgi?cartlink=About_Us.htm" class=style1>About Us</a> </p>
<TABLE WIDTH=550 BORDER=0><TR WIDTH=500 BORDER=0>
<TD WIDTH=550 BORDER=0 ALIGN=CENTER><CENTER><BR>
<small>Copyright 2007 URBANfusion at <a href="http://www.urban-fusion.com">www.Urban-Fusion.com</a></small>
</CENTER></TD></TR></TABLE></CENTER>

Thanks

View user's profile Send private message Send e-mail Visit poster's website
Reply with quote
Post  
They are showing, but they are out of place and not contained the way they should be...
It looks like there are problems in the footer file.
There appear to be too many closing tags for </td></tr></table>

Use the post at the following URL to help even out the table tags between the header and footer:
http://www.agoraguide.com/faq/viewtopic.php?t=1310

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 for your help but I actually removed all the header and footer tags I had and replaced with what was on your link:

Header:
<table><tr><td colspan=2>Header contents</td></tr>
<tr><td>navigation contents</td>
<td>

Footer:
</td></tr>
<tr><td colspan=2>footer contents</td></tr></table>

and it still looks like the display item code "breaks out" of the table in the center and lists the items on the left. Is this a bug?

TIA

View user's profile Send private message Send e-mail Visit poster's website
Reply with quote
Post  
Not a bug... I have set up lots and lots of carts with none of the stuff you are getting...
It's an error between the keyboard and the chair...

In the footer, remove the following from the very beginning of the file:
Code:
</tr>
</form>


It looks like you edited the productPage.inc file and did not follow proper table structure, there...
Try this code in your productPage.inc file:
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=3><table width="100%" border=0>'."\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=2><table width=100% border=0>'."\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="536" VALIGN="MIDDLE">
<P>%%make_hidden_fields%%
<BR>
<font face="ARIAL" size="2"><b>%%name%%</b> </font>
</td>
  </tr>
  <tr>
    <td ALIGN="CENTER">%%image%% </td>
  </tr>
  <tr>
    <td ALIGN="CENTER"><font face="ARIAL" size="2">%%description%%</font></td>
  </tr>
  <tr>
    <td ALIGN="CENTER"><font face="ARIAL" size="2">%%optionFile%% </font></td>
  </tr>
  <tr>
    <td ALIGN="CENTER"><font face="ARIAL" size="2" color="#663300">%%price%%</font>

      &nbsp;
      <p></p></td>
  </tr>
  <tr>
    <td ALIGN="CENTER">
      <!--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>
  </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=2>&nbsp;</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
-->


The #1 reason for display failures is HTML errors...
Be careful when editing files that you are following proper HTML coding practices...

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  
Hey Bonnie,
Thanks for all your help. I made the changes you suggested and it worked but not it seems my add to cart button is not working? I was looking at the html code and I don't see any onclick or submit for the button so I don't know how this work in the first place. What am I missing? TIA

View user's profile Send private message Send e-mail Visit poster's website
Reply with quote
Post  
Rats... looks like I have an error between the keyboard and the chair....

Okay....
Just before the %%make_hidden_fields%% token put:
Code:
<form method="post" action="%%scriptURL%%">


And just after:
<!--END SELECT QUANTITY BUTTON-->

put:
Code:
</form>


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 It worked 
It worked. Thanks for all your help. This client may be calling you about some other (paid) work.

View user's profile Send private message Send e-mail Visit poster's website
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