 |
Page 1 of 1
|
Author |
Message |
webcando
User - One Blade
Joined: 22 Mar 2005
Posts: 65
Location: Massapequa, NY
|
 Centering a table
Please visit this link and tell me what I need to change so the products are centered in the template. I appreciate the help
http://209.59.133.245/~barry/cgi-bin/store/agora.cgi
*** Then do a search***
Dan Nazario
VP Development
Webcando.com
Toll Free: 888-340-1121
Local: 516-798-2226 x336
Cell: 631-463-9025
E-Fax: 720-368-2390
Email: dan@webcando.com
Web: http://www.webcando.com
|
Mon Apr 04, 05 10:15 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
It looks fine to me...
BUT... You have a TON of code that CANNOT be in the header file as it will mess up the cart, especially the checkout process:
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Acanthus Press / Home</title>
<meta name="keywords" content="acanthus press, acanthuspress.com, architecture design, acanthuspress, architect, architectural, books, publisher, Johann Matthaus von Mauch, Charles A. Platt,Herman Miller Collection, Barry Cenower">
<meta name="description" content="Acanthus Press is the leading publisher of fine books on architecture and design, focusing on domestic buildings and all facets of their interiors. ">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://www.acanthuspress.com/acanthus1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>
<body background="http://www.acanthuspress.com/images/background2.gif" topmargin="7" marginheight="7" onLoad="MM_preloadImages('http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f4.gif')">
All of this info needs to be set up in the free form logic:
***JAVASCRIPT/CSS/META TAG Placement***
free form logic, 2nd box:
$sc_standard_head_info = q~ PLACE JAVASCRIPT/CSS/META TAG INFO HERE ~;
***BODY info Placement***
free form logic, 2nd box:
$sc_standard_body_info = qq~ BODY TAG INFO HERE ~;
You will need to manually add this stuff to all of the html pages that you use: all pages used in the 'html', 'html/pages', & "html/forms' directories.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Apr 05, 05 4:19 am |
 |
 |
webcando
User - One Blade
Joined: 22 Mar 2005
Posts: 65
Location: Massapequa, NY
|
 question
Does each meta tag have to be entered seperrately or can they be added together.
Also, is there a global css? I added the css to all of the html pages ans to the free logic but for some reason the product links are not correct.
why is there no header for the check out page? Once you hit complete order, I would like it to still look like the template.
Also, where the products display, how can I remove the quanity/discount and accessories items.
_________________ Dan Nazario
VP of Development
Webcando.com
Email: dan@webcando.com
Web: http://www.webcando.com
|
Tue Apr 05, 05 5:44 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
 Re: question
webcando wrote:Does each meta tag have to be entered seperrately or can they be added together.
Not sure what you mean? You put it in the freeform logic just as it would be done on a regular html page.
webcando wrote:
Also, is there a global css? I added the css to all of the html pages ans to the free logic but for some reason the product links are not correct.
You can create a global css file and link to it, but you have to make sure you put all of the links on the pages as I specified before and the link in the freeform logic.
I am seeing that you have not removed the code from the header file... and the free form logic seems incomplete...
This is what the free form logic should look like:
Code:
$sc_standard_head_info = q~
<meta name="keywords" content="acanthus press, acanthuspress.com, architecture design, acanthuspress, architect, architectural, books, publisher, Johann Matthaus von Mauch, Charles A. Platt,Herman Miller Collection, Barry Cenower">
<meta name="description" content="Acanthus Press is the leading publisher of fine books on architecture and design, focusing on domestic buildings and all facets of their interiors. ">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://www.acanthuspress.com/acanthus1.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
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_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
~;
$sc_standard_body_info = qq~ background="http://www.acanthuspress.com/images/background2.gif" topmargin="7" marginheight="7" text=#000000 Link=#848330 vlink=#848330 onLoad="MM_preloadImages('http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c2_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c3_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c4_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c5_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c6_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c7_f4.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f3.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f2.gif','http://www.acanthuspress.com/images/navbar2/nav2_r4_c8_f4.gif')" ~;
webcando wrote:
why is there no header for the check out page? Once you hit complete order, I would like it to still look like the template.
You have to edit the secure_store_header.inc & secure_store_footer.inc files...
webcando wrote:
Also, where the products display, how can I remove the quanity/discount and accessories items.
These are controlled by the options files YOU select for each product in the product edit area of the manager.[/code]
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Apr 05, 05 6:40 am |
 |
 |
webcando
User - One Blade
Joined: 22 Mar 2005
Posts: 65
Location: Massapequa, NY
|
 Thanks for all your help
ok, got everything almost where I want it. It previews fine on firefox, fine on netscape, but it is left justifed in Internet Explorer. I can't figure this one out.
Also I got all the colors that I want up except the light blue that shows up on the check out page.
Other than that, I'm done. You've been a superb help and if there is anything I can do for you, let me know.
_________________ Dan Nazario
VP of Development
Webcando.com
Email: dan@webcando.com
Web: http://www.webcando.com
|
Tue Apr 05, 05 10:07 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
There are problems in your html. First, you STILL have prohibited code in the header file. You also have problems with your table structure.
To check over your html, take a look at this post:
http://www.agoraguide.com/faq/viewtopic.php?t=1310
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Wed Apr 06, 05 4:03 am |
 |
 |
webcando
User - One Blade
Joined: 22 Mar 2005
Posts: 65
Location: Massapequa, NY
|
 CArt Display
Right now all of the products in my cart are centered vertically, how can I make so that they are all to the top?
I would like to make the Title section of the cart to be longer.
Where can I edit this?
Also. I have a site that has books that belong to a series.
If a customer selects a book and adds it to the cart,
I would like the rest of the series to be added to the cart with a quantity of ZERO.
How can I do this?
_________________ Dan Nazario
VP of Development
Webcando.com
Email: dan@webcando.com
Web: http://www.webcando.com
|
Thu Apr 14, 05 6:24 pm |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
 Re: CArt Display
webcando wrote:Right now all of the products in my cart are centered vertically, how can I make so that they are all to the top?
Don't you want these links on every page of the store? If so, then you will need to add the following code to the store header file:
Code:<!--agorascript-pre {
local(%db_ele,$sku,$category,%category_list);
if (!($sc_db_lib_was_loaded =~ /yes/i))
{ &require_supporting_libraries (__FILE__, __LINE__, "$sc_db_lib_path"); }
&capture_STDOUT;
&get_prod_db_element($db{"product"},*db_ele);
foreach $sku (keys %db_ele) {
$category = $db_ele{$sku};
$category_list{$category}++;
}
foreach $category (sort(keys %category_list)) {
$category2 = $category;
$category2 =~ s/_/ /ig;
print " <a href=\"agora.cgi?cart_id=%%cart_id%%&product=",
"$category\">$category2</a> | \n";
}
&uncapture_STDOUT; }
-->
webcando wrote:
I would like to make the Title section of the cart to be longer.
Where can I edit this?
What do you mean by "Title section"?
webcando wrote:
Also. I have a site that has books that belong to a series.
If a customer selects a book and adds it to the cart,
I would like the rest of the series to be added to the cart with a quantity of ZERO.
How can I do this?
I'm sure this could be done, but the quantity couldn't be zero. Anything with a zero quantity is automatically deleted from the cart.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Fri Apr 15, 05 4:56 am |
 |
 |
|
The time now is Wed May 07, 25 1:23 pm | All times are GMT - 7 Hours
|
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
|
|
|