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
Aligning to the Left
Author Message
Reply with quote
Post Aligning to the Left 
What files do I need to update in order to align tables to the left.
Specifically, there are three things I want left-aligned:
    I want the Product Page inc to be left-aligned within the table that I have it set up in. I can't find anything specific within the ppinc file to keep it from center aligning in the table cell

    I want the View Cart information to align to the left (and if possible the complet order button to be to the right of the continue shopping button, rather than below it

    I want the Quantity through Sub-Total information on my Order Form page to Left Align


Any help on this?

store URL: http://shop.23deep.com/



Last edited by micheldevon on Wed Mar 21, 07 3:28 pm; edited 3 times in total
Reply with quote
Post  
double post: nothing to see here folks.



Last edited by micheldevon on Wed Mar 21, 07 3:35 pm; edited 2 times in total
Reply with quote
Post  
Foirst thing I see in your store that needs to be fixed is that you need to remopve the following from the header file:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>23 deep: CAPITALISM!</title>
<style>
body
{
height:100%;
background: #5074D1 url('http://www.23deep.com/img/23bottomright.gif') no-repeat fixed bottom right;
}
td#down
{
background: #5074D1 url('http://www.23deep.com/img/23down.gif') repeat-y fixed left; vertical-align:bottom;
}
td#across
{
background: #5074D1 url('http://www.23deep.com/img/23across.gif') repeat-x top;
}
a:link#text {color: Black; text-decoration: underline;}
a:visited#text {color: Black; text-decoration: overline; }
a:hover#text {color: Black; background-color:#92D34F;}
</style>

</head>

<body bgcolor="#5074D1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="MM_preloadImages('file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/wallet2.gif','file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/shirt2.gif','file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/skirt2.gif','file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/candle2.gif','file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/jewel2.gif','http://www.23deep.com/img/wallet2.gif','http://www.23deep.com/img/shirt2.gif','http://www.23deep.com/img/skirt2.gif','http://www.23deep.com/img/candle2.gif','http://www.23deep.com/img/jewel2.gif','file:///C|/Documents%20and%20Settings/Owner/Desktop/Caffeine/23deep/shop/etc2.gif')">


All of your CSS needs to be handled by the CSS Editor in the manager.
You should be able to handle setting up your alignment, left, through the CSS Editor.
For one, try editing the ac_product_table CSS class in the CSS Editor.

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  
Well, I did move all of my CSS into the CSS Editor last night and it stopped working. Which is why I put it back where it is now.

Honestly, is it going to break my page? It hasn't yet, and I've been running tests on multiple browsers. Or is this just a stickler for clean code thing. Because, if so, that's not really any help. It's just nit-picky.

Reply with quote
Post  
scottcrew wrote:
try editing the ac_product_table CSS class in the CSS Editor


I took your advice there, and now the product tables are aligning how I would like.

What are the CSS classes for the view cart and order form tables?

Reply with quote
Post  
And I just moved the style sheets out of my header file and broke my page... brilliant.

Code:
Error loading library ./admin_files/agora_user_lib.pl:

syntax error at ./admin_files/agora_user_lib.pl line 79, near "


yay

Reply with quote
Post  
That would not cause the error...
Something else seems to have ocurred...

Just visited the site, again, and now you have the following which MUST be removed:
Code:
<style>
body
{
height:100%;
background: #5074D1 url('http://www.23deep.com/img/23bottomright.gif') no-repeat fixed bottom right;
}
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<body bgcolor="#5074D1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

The javascript needs to be placed in its own file and linked to using the box specified in the CSS Editor.
The body tag information needs to be placed in the styles for the body tag in the CSS Editor,
as does the <style> information... you have in the header.
The removal of this information WILL NOT cause an error, rather, it can cause errors in the function of the cart.

Also, remove the following from the footer file:
Code:
</body>
</html>


If there are other areas of the store that you want to edit the CSS for, just view the source code for the page and look for the class specifications and edit accordingly.

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's all been fixed per your instruction.

Can I make a suggestion? Just some text on the the CSS page in the Manager.
Could it be possible to make it clear that you aren't supposed to paste actual Javascript code into that box, and could it be possible to make it clear that you shouldn't leave the
Code:
<style> and </style>
in the CSS box.

I didn't realize that javascript code wasn't supposed to go in that box until you wrote
Quote:
The javascript needs to be placed in its own file and linked to using the box


It may seem obvious to someone with a background in code, but it wasn't to me. And pasting the javascript code into the box, rather than linking to it was what kept breaking my page. That was why I kept putting the javascript in the header form.

Quote:
The removal of this information WILL NOT cause an error, rather, it can cause errors in the function of the cart.

It does cause errors when the instructions in the manager aren't clear as how to actually follow the instructions.


Now if I can only get my shipping line to show back up in the Order Form page, and get my shipping login working again after last night's lib.pl crash... I'll be good

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