Author |
Message |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
 Product Page misalignment after edit!
I am trying out to do a page of products with productPage-4a. However, productPage-4a only provides me with the option of "more info", "product ID" and "Price". I will like to add in "add to cart", "view cart" and "check out" but when I tried to edit, the whole table will misaligned -> becomes something like productPage-1b.
In addition. if I will like to change the color of the border, may I ask how to go about it?
I am a newbie to Agoracart. Can someone kindly advise me? Many thanks!
|
Mon Jun 20, 05 7:54 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Can you post the 4a file you've edited.
We can probably better help you that way...
BTW the table border is controlled with the following, in the 4a file:
$myans .= '<tr><td colspan=3><table width="100%" border=1>'."\n";
You can either use a CSS style sheet and assign a class to this table or you can apply CSS style directly to the tag mentioned above.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Mon Jun 20, 05 8:55 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Here's my script!
I've tried to change the border to zero.. not sure if it works...
<!--agorascript-pre
{
$ags_across = 4; # Number in a row
$ags_row_wd=int(100.0/$ags_across);
local ($myans)="";
if ($rowCount == (1+$minCount)) { #first one
$ags_row_item=0;
$ags_row_nmbr=0;
$ags_tot_item=0;
$myans .= '<tr><td colspan=3><table width="100%" border="0">'."\n";
}
$ags_row_item++;
$ags_tot_item++;
if ($ags_row_item > 1) { # last one
if ($ags_row_item == $ags_across) {
$ags_row_item=0; #reset counter
$ags_row_nmbr++;
}
$myans .= '<td width="'.$ags_row_wd.'%" valign="top">';
} else { #first one
$myans .= '<tr><td width="'.$ags_row_wd.'%" valign="top">';
}
$myans.=qq~<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<table width=100%>
~;
return $myans;
}
-->
<TR WIDTH="100%">
<td align="center">%%image%%</td>
</tr>
<tr>
<td><font color="#FF0000">%%price%%</font></td>
</tr>
<tr>
<td><b>%%name%%</b></td>
</tr>
<tr>
<td>%%description%%</td>
</tr>
<tr>
<td><INPUT TYPE="IMAGE" NAME="add_to_cart_button" VALUE="Add To Cart" SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0">
<A HREF="%%scripturl%%?dc=1&%%href_fields%%"><img src="%%URLofImages%%/viewcart.gif" alt="" border="0"></a>
<A HREF='%%StepOneURL%%?order_form_button.x=1&%%href_fields%%'><img src="%%URLofImages%%/checkout.gif" border="0"></a></td>
</tr>
<!--agorascript-pre
{
local ($myans)="";
if ($ags_row_item == 0) { # last one
$myans .= '</table></FORM></td></tr>'."\n";
} else { # first one
$myans .= '</table></FORM></td>'."\n";
}
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one
if (!($ags_row_item == 0)) { # finish the row
# if ($ags_row_nmbr > 0) { # finish the row with blanks
while ($ags_row_item < $ags_across) {
$ags_row_item++;
$myans .= '<td width="'.$ags_row_wd.'%"> </td>';
}
# }
$myans .= '</tr>'."\n";
}
$myans .= '</table></td></tr>'."\n";
}
return $myans;
}
-->
|
Tue Jun 21, 05 5:23 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Please post your store URL so I can see what is happening with the layout...
It looks like it should be fine, but your images may be causing the table to be larger than you want it to be. With images they will be fully displayed and push a table beyond the width that is defined by the table tag.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jun 21, 05 5:38 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
My URL is http://www.nadioki.per.sg/store
Please ignore the missing image as it has yet to be uploaded.
|
Tue Jun 21, 05 5:53 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Remove </form> tags and put a </form> tag after the following:
Code:<img src="%%URLofImages%%/checkout.gif" border="0"></a>
Then be sure to upload the file in ASCII mode to the server.
What are you using to edit your files?
Last edited by scottcrew on Tue Jun 21, 05 6:04 am; edited 1 time in total
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jun 21, 05 5:56 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Oops.. sorry. Should have asked you to click on Apparels. The exact location should be:
http://www.nadioki.per.sg/store/agora.cgi?product=Apparels&ppinc=4a
|
Tue Jun 21, 05 6:01 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
Figured that out really quick... follow the instructions above...
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jun 21, 05 6:05 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
scottcrew wrote:Remove </form> tags and put a </form> tag after the following:
Code:<img src="%%URLofImages%%/checkout.gif" border="0"></a>
Then be sure to upload the file in ASCII mode to the server.
What are you using to edit your files?
I am using dreamweaver to edit. Can you explain briefly what is ASCII??
|
Tue Jun 21, 05 6:08 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
ASCII is a mode for FTP uploading.
It is used for most files, except graphics and compressed files.
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jun 21, 05 6:12 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
I am using dreamweaver to edit and Adobe Golive for FTP upload. Does that affect anything?
I have changed the </form> as you have advised... it doesn't work...
|
Tue Jun 21, 05 6:14 am |
|
 |
scottcrew
Moderator
Joined: 13 Feb 2004
Posts: 7516
Location: The West Side of MI USA
|
It may not be set up to upload .inc files in ASCII mode
I would suggest getting a simple FTP program like FileZilla, its free.
You can find it at: http://resources.scottcrew.com
HTH!
_________________ God Bless!
Bonnie - AgoraCart Moderator
Get a Gold Membership
|
Tue Jun 21, 05 6:16 am |
 |
 |
nikito
User - Two Blades
Joined: 18 Jun 2005
Posts: 144
|
Oh!!! you are so right! It's the FTP programme.
Many thanks!!!
|
Tue Jun 21, 05 6:35 am |
|
 |
|