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
Change Variable Font
Author Message
Reply with quote
Post Change Variable Font 
Hi,
This is part of the code to display the cart status:

Code:

if ($count > 0) {

  $result = '<div align="center">' .

      '<table border=2 cellspacing=0 bgcolor="#FFFFCC"><tr align=center>' .

      '<td colspan="2" align=center Valign=center>&nbsp;&nbsp;' .

      '<a href="agora.cgi?dc=1&%%href_fields%%">' .

      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/view_cart_button.jpg"></a></td></tr>' .

     '<tr><td align=left><font color="#000000" face="georgia" size="2">' .

     "Items in cart:</td><td> $total_qty &nbsp;\n&nbsp; </td></tr></font>" .

      '<tr><td><font color="#000000" face="georgia" size="2">' .

      "cost subtotal:&nbsp; </td><td>" . &display_price($total_cost).

      "</td></tr>\n".

      '<tr align=center><td align=center colspan="2">' .

      '<a href="%%StepOneURL%%?order_form_button.x=1&%%href_fields%%">' .

      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/check_out_button.jpg"></font></a>&nbsp;&nbsp;</font></td>' .

   "</TR></table></div> <HR>";

 }


How would I go about changing
Quote:
&display_price($total_cost)
and
Quote:
$total_qty
font size and color? I'm truly lost here. It was certainly a challenge reformat the display but I was able to shift it to the side.

Thanks,

Jack Ponte
www.coosncuddles.com/agora

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
Jack,
This should do it:
Code:
if ($count > 0) {
  $result = '<div align="center">' .
      '<table border=2 cellspacing=0 bgcolor="#FFFFCC"><tr align=center>' .
      '<td colspan="2" align=center Valign=center>&nbsp;&nbsp;' .
      '<a href="agora.cgi?dc=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/view_cart_button.jpg"></a></td></tr>' .
     '<tr><td align=left><font color="#000000" face="georgia" size="2">' .
     "Items in cart:</font></td><td><font color="#000000" face="georgia" size="2"> $total_qty &nbsp;\n&nbsp; </font></td></tr>" .
      '<tr><td><font color="#000000" face="georgia" size="2">' .
      "cost subtotal:&nbsp;</font> </td><td><font color="#000000" face="georgia" size="2">" . &display_price($total_cost).
      "</font></td></tr>\n".
      '<tr align=center><td align=center colspan="2">' .
      '<a href="%%StepOneURL%%?order_form_button.x=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/check_out_button.jpg"></font></a>&nbsp;&nbsp;</font></td>' .
   "</TR></table></div> <HR>";
 }


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  
Hi,
I added the FONT tag to this line as I did before posting and I still receive the error when trying to load the page:

"Items in cart:</font></td><td><font color="#000000" face="georgia" size="2"> $total_qty &nbsp;\n&nbsp; </font></td></tr>" .

Error:

We're sorry, an error has occured. Please hit the browser back button, change what was done in error, and try again.

Jack Ponte

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
Jack,
Sorry, 'bout that, you've got to escape the double quotes, like this:
Code:
if ($count > 0) {
  $result = '<div align="center">' .
      '<table border=2 cellspacing=0 bgcolor="#FFFFCC"><tr align=center>' .
      '<td colspan="2" align=center Valign=center>&nbsp;&nbsp;' .
      '<a href="agora.cgi?dc=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/view_cart_button.jpg"></a></td></tr>' .
     '<tr><td align=left><font color="#000000" face="georgia" size="2">' .
     "Items in cart:</font></td><td><font color=\"#000000\" face=\"georgia\" size=\"2\"> $total_qty &nbsp;\n&nbsp; </font></td></tr>" .
      '<tr><td><font color="#000000" face="georgia" size="2">' .
      "cost subtotal:&nbsp;</font> </td><td><font color=\"#000000\" face=\"georgia\" size=\"2\">" . &display_price($total_cost).
      "</font></td></tr>\n".
      '<tr align=center><td align=center colspan="2">' .
      '<a href="%%StepOneURL%%?order_form_button.x=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/check_out_button.jpg"></font></a>&nbsp;&nbsp;</font></td>' .
   "</TR></table></div> <HR>";
 }


Or change the beginning double quotes to single quotes, like this:
Code:
if ($count > 0) {
  $result = '<div align="center">' .
      '<table border=2 cellspacing=0 bgcolor="#FFFFCC"><tr align=center>' .
      '<td colspan="2" align=center Valign=center>&nbsp;&nbsp;' .
      '<a href="agora.cgi?dc=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/view_cart_button.jpg"></a></td></tr>' .
     '<tr><td align=left><font color="#000000" face="georgia" size="2">' .
     'Items in cart:</font></td><td><font color="#000000" face="georgia" size="2"> $total_qty &nbsp;\n&nbsp; </font></td></tr>' .
      '<tr><td><font color="#000000" face="georgia" size="2">' .
      'cost subtotal:&nbsp;</font> </td><td><font color="#000000" face="georgia" size="2">' . &display_price($total_cost).
      "</font></td></tr>\n".
      '<tr align=center><td align=center colspan="2">' .
      '<a href="%%StepOneURL%%?order_form_button.x=1&%%href_fields%%">' .
      '<font color="#0000ff" face="arial,verdana" size=2><img border="0" src="html/images/check_out_button.jpg"></font></a>&nbsp;&nbsp;</font></td>' .
   "</TR></table></div> <HR>";
 }


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 again 
Hi,
That definitely worked. See you soon in the Pro forum.
Cheers,

Jack Ponte

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