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
product page too far left
Author Message
Reply with quote
Post product page too far left 
i'm having difficulty aligning my product page to the right. i've been looking through the code and i'm out of options. please help
here's the link to the page: http://soulofnewmexico.com/bathEssentials/agora.cgi?product=Bar_Soap

thanks

View user's profile Send private message
Reply with quote
Post  
1. Your store's URL is incorrect.
You will need to change it to the following in the manager:
http://www.soulofnewmexico.com/bathEssentials/agora.cgi

It needs the www. in front to comply with the "2 dot rule" that helps to maintain state in the cart.


2. |n the store_header.inc file you have couple links on the following line:
Code:
<td width="497"><a href="http://soulofnewmexico.com/bathEssentials/agora.cgi?cart_id=2246307.30777*oC6jd72246307.30777">

You have the cart_id hard coded into the link! you cannot hard code ANY cart_id's. This can cause a security issue with the cart...
you can use the following link, though:
Code:
<td width="497"><a href="http://soulofnewmexico.com/bathEssentials/agora.cgi">



3. i am also seeing the following line:
Code:
<TABLE WIDTH=174 HEIGHT=100% BORDER=0 CELLSPACING=0 CELLPADDING=0 align=top>

align=top will not work... it should be valign="top"
In HTML, you should be surrounding the properies of a variable with double quote marks.
So, that line should look more like:
Code:
<TABLE WIDTH="174" HEIGHT="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" valign="top">



4. What is this, in the header file?
Code:
<LEFT>
</LEFT>

it MUST be removed


5. The following MUST be removed from the productPage.inc file:
Code:
<style type="text/css">
<!--
.style4 {   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
}
-->
</style>

For proper placement of CSS elements, please review the following threads:
http://www.agoraguide.com/faq/viewtopic.php?t=1156
http://www.agoraguide.com/faq/viewtopic.php?t=358


6. To align the product page to the right, you need to edit the last line in your header file:
Change:
Code:
<TD WIDTH="727" valign=top>

TO:
Code:
<TD WIDTH="727" align="right" valign="top">


In the productPage.inc file you can even change the following line:
Code:
  $myans .= '<tr><td><table width="100%" border=0>'."\n";

TO:
Code:
  $myans .= '<tr><td align="right"><table width="100%" border=0>'."\n";



7. You have duplicated the controller code so that it appears twice in the productpage.inc file.
So, the following MUST be removed:
Code:
<!--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><TR>
<td colspan=2><!--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
-->
  </TD>
</TR>



However, looking over the code you have in the productPage and seeng the layout in the store, you might be better off just removing all of the controller code fromt he productPage.inc file.
Also, something else, the border on the right should not be part of the code in the productPage.inc file, it should be coded into the footer.
To help you set things up between the header and footer, please review the following thread on setting up headers and footers:
http://www.agoraguide.com/faq/viewtopic.php?t=1310

I know it is a lot to take in, but you will be so much happier with the result once things are set up properly.

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  
scottcrew, thank you for your help. i made those changes but the product page is still shifted to the left. do you have anymore suggestions.

View user's profile Send private message
Reply with quote
Post  
You will needto use the following thread, the one I metioned above, too.:
http://www.agoraguide.com/faq/viewtopic.php?t=1310
Carefully go through the html of your header & footer, as outlined in the thread I mentioned.
Your html is still incorrect which is why your layout is not working properly.

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