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
Layout Changed when i changed the footer
Author Message
Reply with quote
Post Layout Changed when i changed the footer 
Hello!

I had the clients cart looking great...they wanted to add a "shipping cost" table in the product display to motivate people to buy more and save on shipping. added the table in the footer and made sure i closed all my tags. when i went to load up the cart to take a look at it...the product page wasnt the same layout/colors and when an item is added to the cart, the "thanks for adding..." text is squished into the side of the page, and not the top under the title as it was before.

can someone tell me what i am missing to get it back to "normal"

Normal is the the product display page would be 2 column, and the back ground would be the gray color.

www.mycarisstuck.com/cart/agora.cgi (and click the "towtruck" link)

Thanks!
Scott

View user's profile Send private message
Reply with quote
Post  
looks like you got it fixed.
there is one thing in your header that displays an artifact. check out...
</td></tr><tr>/<tr><tr></tr></TABLE>
notice the forwrd slash. it displays on the page.
d

Reply with quote
Post  
Dan:

Thanks for the reply...

Actually its still not "fixed" it works better, but my big concern is the "items in cart..." code that pops up when an item is added. this was centered under the "tow truck in a box" header, and now its all squished over on the left. any ideas?

and that artifact cannot be located. I have searched every thing i could find, but it does not appear in the code. when i view source i can sometimes find it, but it doesnt appear in the same place in the actual code.

thanks!

View user's profile Send private message
Reply with quote
Post  
according to the broswer source it's in your store header file...
<!--BEGIN HEADER TABLE-->
<table WIDTH=765 HEIGHT=28 BGCOLOR="#666666" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<tr>
<td HEIGHT=40 ALIGN=CENTER>
<font face="Verdana, Arial" size="6" color="#FFFFFF"><b>Tow Truck in a Box</b><br><font face="Verdana, Arial" size=1 color="white"><i>Powered by AgoraCart - AgoraCart.com
Thanks for Visiting our Store!</i></font>
</td><td HEIGHT=40 ALIGN=right><font face="Verdana, Arial" color="#ffffff" size=2><form METHOD="POST" ACTION="agora.cgi">
<input TYPE="hidden" NAME="cart_id" VALUE="5393284.7120*3-4iq2">
</font>
</td></tr><tr>/<tr><tr></tr></TABLE>
<TABLE WIDTH=765 BORDER=0 CELLSPACING=0 CELLPADDING=0 align=center>
<TR><TD WIDTH=145 valign=top bgcolor="#666666" height=100%>




<div align="center"><center><table border=0 width=100% cellspacing=0 bgcolor="#666666"><tr><td width="25%" align=left><a href="agora.cgi?dc=1&cart_id=5393284.7120*qm2Ty6&exact_match=on&product=TowTruck"><font color="#ffffff">View Cart</font></a></td><td width="50%" align=center><font color="#000000">Items in shopping cart: 1 &nbsp;
&nbsp; <br>Item cost subtotal:&nbsp; $ 39.95</font></td>
<td width="25%" align=right><a href="https://www.mycarisstuck.com/cart/agora.cgi?order_form_button.x=1&cart_id=5393284.7120*qm2Ty6&exact_match=on&product=TowTruck"><font color="#ffffff">Check Out</font></a>&nbsp;&nbsp;</td></tr></table></center></div>
<br>
<br>
</TD><TD WIDTH="620" valign=top>
<!--END HEADER TABLE-->

please post your store header, store footer and ppinc. maybe i can duplicate the cart summary thingy and fix it for you and figure out the artifact dealy.
i take it you want the cart summary to lay out on a single line and not be "boxed up" like it's displaying now, right?
d

Reply with quote
Post  
Dan:

All my code is on my other computer...I will post it once it is up and running...

Originally, the summary was across the page under the "tow truck" stuff. i looked like this

---------------------------------------------------------------------
Items in cart:
View cart Checkout
subtotal:
----------------------------------------------------------------------

I hope that show right with formatting...

thx

View user's profile Send private message
Reply with quote
Post  
it doesnt look right there....

it was on one line centered "items in crt:"
next line aligned left View cart....then aligned right checkout
last line was centered "subtotal"

View user's profile Send private message
Reply with quote
Post  
try this in your header...
</TD>
</tr>
<tr>
<TD WIDTH="620" valign=top>
<!--END HEADER TABLE-->

Reply with quote
Post  
well that helped but there is more. here's what i have with the rendered page saved. i corrected the layout.

Code:

<!--BEGIN HEADER TABLE-->
<table align="center" bgcolor="#666666" border="0" cellpadding="0" cellspacing="0" height="28" width="765">
<tbody>
  <tr>
    <td align="center" height="40">
      <font color="#ffffff" face="Verdana, Arial" size="6"><b>Tow Truck in a Box</b><br>
     <font color="white" face="Verdana, Arial" size="1"><i>Powered by AgoraCart - AgoraCart.com Thanks for Visiting our Store!</i></font></font></td>
   <td align="right" height="40">
     <font color="#ffffff" face="Verdana, Arial" size="2"></font>
     <form method="post" action="agora.cgi">
     <font color="#ffffff" face="Verdana, Arial" size="2">
     <input name="cart_id" value="" type="hidden"></font></form></td>
  </tr>
  <tr>
  </tr>
  <tr>
  </tr>
  <tr>
  </tr>
</tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="765">
<tbody>
  <tr>
    <td bgcolor="#666666" height="100%" valign="top" width="765">
   <div align="center"><center><table bgcolor="#666666" border="0" cellspacing="0" width="100%">
   <tbody>
     <tr>
       <td align="left" width="25%">
        <a href="http://www.mycarisstuck.com/cart/agora.cgi?dc=1&amp;cart_id=5393284.7120*uA4Zz1&amp;exact_match=on&amp;product=TowTruck"><font color="#ffffff">View Cart</font></a></td>
      <td align="center" width="50%">
        <font color="#000000">Items in shopping cart: 1 &nbsp;&nbsp; <br>
        Item cost subtotal:&nbsp; $ 39.95</font></td>
        <td align="right" width="25%">
        <a href="https://www.mycarisstuck.com/cart/agora.cgi?order_form_button.x=1&amp;cart_id=5393284.7120*uA4Zz1&amp;exact_match=on&amp;product=TowTruck"><font color="#ffffff">Check Out</font></a>&nbsp;&nbsp;</td>
     </tr>
   </tbody>
   </table></center></div><br><br>
    </td>
  </tr>
  <tr>
    <td valign="top" width="620">
<!--END HEADER TABLE-->


no need to post the header, footer and ppinc for now. just examine your table structure in the header file. note i ended and started a table row just before the end of the header. also note i changed the td width that encapsules the cart summary table.
let me know if you have any problems.
d

Reply with quote
Post  
thanks for helping dan!

That script you gave me was from the rendered file, so it showed something in the cart when there isnt anything in the cart.

it looked right though. but when i launched that page, the "border" on the left side of the cart was missing.

here is the header file that i have (without your changes):

<!--BEGIN HEADER TABLE-->
<table WIDTH=765 HEIGHT=28 BGCOLOR="#666666" BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<tr>
<td HEIGHT=40 ALIGN=CENTER>
<font face="Verdana, Arial" size="6" color="#FFFFFF"><b>Tow Truck in a Box</b><br><font face="Verdana, Arial" size=1 color="white"><i>Powered by AgoraCart - AgoraCart.com
Thanks for Visiting our Store!</i></font>
</td><td HEIGHT=40 ALIGN=right><font face="Verdana, Arial" color="#ffffff" size=2><form METHOD="POST" ACTION="agora.cgi">
<input TYPE="hidden" NAME="cart_id" VALUE="%%cart_id%%">
</font>
</td></tr><tr><tr><tr></tr></TABLE>
<TABLE WIDTH=765 BORDER=0 CELLSPACING=0 CELLPADDING=0 align=center>
<TR><TD WIDTH=145 valign=top bgcolor="#666666" height=100%>




<!--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="#666666"><tr>' .
'<td width="25%" align=left>' .
'<a href="agora.cgi?dc=1&%%href_fields%%' .
'"><font color="#ffffff">View Cart</font></a></td>' .
'<td width="50%" align=center><font color="#000000">' .
"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="#ffffff">Check Out</font></a>&nbsp;&nbsp;</td>' .
"</tr></table></center></div>";
} else {
$result = "";
}
return $result;
}-->
<br>
<br>
</TD><TD WIDTH="620" valign=top>
<!--END HEADER TABLE-->


The other thing i am wondering about is how to change the background in the center of the cart so that it is all gray, and just has the green on the sides?

Thanks!

View user's profile Send private message
Reply with quote
Post  
try this...
Code:

<!--BEGIN HEADER TABLE-->
<table align="center" bgcolor="#666666" border="0" cellpadding="0" cellspacing="0" height="28" width="765">
<tbody>
  <tr>
    <td align="center" height="40">
      <font color="#ffffff" face="Verdana, Arial" size="6"><b>Tow Truck in a Box</b><br>
     <font color="white" face="Verdana, Arial" size="1"><i>Powered by AgoraCart - AgoraCart.com Thanks for Visiting our Store!</i></font></font></td>
   <td align="right" height="40">
     <font color="#ffffff" face="Verdana, Arial" size="2"></font>
     <form method="post" action="agora.cgi">
     <font color="#ffffff" face="Verdana, Arial" size="2">
     <input name="cart_id" value="" type="hidden"></font></form></td>
  </tr>
  <tr>
  </tr>
  <tr>
  </tr>
  <tr>
  </tr>
</tbody>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="765">
<tbody>
  <tr>
    <td bgcolor="#666666" height="100%" valign="top" width="765">
<!--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="#666666"><tr>' .
'<td width="25%" align=left>' .
'<a href="agora.cgi?dc=1&%%href_fields%%' .
'"><font color="#ffffff">View Cart</font></a></td>' .
'<td width="50%" align=center><font color="#000000">' .
"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="#ffffff">Check Out</font></a>&nbsp;&nbsp;</td>' .
"</tr></table></center></div>";
} else {
$result = "<p>&nbsp;</p>";
}
return $result;
}--> <p>&nbsp;</p></td>
  </tr>
  <tr>
    <td valign="top" width="620" bgcolor="#666666">
<!--END HEADER TABLE-->


not sure waht you mean about missing border. try the above then we'll take each issue one at a time.
d

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