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 misalignment after edit!
Author Message
Reply with quote
Post 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!

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
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.'%">&nbsp; </td>';
}
# }
$myans .= '</tr>'."\n";
}
$myans .= '</table></td></tr>'."\n";
}
return $myans;
}
-->


View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
My URL is http://www.nadioki.per.sg/store
Please ignore the missing image as it has yet to be uploaded.

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
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

Rolling Eyes

View user's profile Send private message
Reply with quote
Post  
Figured that out really quick... follow the instructions above...

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 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??

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
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...

View user's profile Send private message
Reply with quote
Post  
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Oh!!! you are so right! It's the FTP programme.
Many thanks!!! Smile

View user's profile Send private message
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