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
'add to cart button' doesnt work on productpage.inc layout
Author Message
Reply with quote
Post 'add to cart button' doesnt work on productpage.inc layout 
hi...

i've started customising the productpage.inc files in order to customise the shopping cart for our website. everything is starting to look good which is great!

but.... for whatever reason, i can't get the add to cart button on the initial productpage to work. i've tried modifying the code to no avail. the product page that this was based on is/was 1c if that helps. i've tried copying and pasting items from pages that do work but havent had much success......

i've pasted the code below...

anybody have any ideas? Thanks in advance!!!!!



<TR>
<TD COLSPAN = "4" BORDER="0" CELLPAD="0"><HR></TD>
</TR>

<TR WIDTH="640" BORDER="0" CELLPAD="0">
<TD WIDTH="300">

<FONT FACE=ARIAL SIZE="2" Color=ff0000 FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b><TD ALIGN="CENTER" WIDTH="225" VALIGN="MIDDLE" BORDER="0" CELLPAD="0">

<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2 "><FONT FACE=ARIAL SIZE="1">
Click Here for More Info</a>
</FONT>

</TD>
<TD ALIGN="CENTER" WIDTH="100"><font color="#FF0000"></font></TD>

<TD ALIGN="CENTER" WIDTH="250" VALIGN="TOP" BORDER="0"CELLPAD="0">

<FONT FACE="ARIAL" SIZE="2">

<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
</TD><TD VALIGN="TOP" BORDER="0"CELLPAD="0"><INPUT TYPE="TEXT" NAME="%%itemID%%" SIZE="3"
MAXLENGTH="3" VALUE="1"> </TD><TD VALIGN="MIDDLE"><INPUT TYPE="IMAGE"
NAME="add_to_cart_button" VALUE="Add To Cart"
SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0">

<FONT FACE=ARIAL size="2" TD ALIGN="center" TD VALIGN="middle">
<A HREF="agora.cgi?dc=1&%%href_fields%%"><FONT FACE=ARIAL size="2" TD ALIGN="right" TD VALIGN="middle">Check Out</FONT>
</A>
</TD>

</FORM>

</TR>

</TD>
</TR>
</TABLE>
<!--END SELECT QUANTITY BUTTON-->

View user's profile Send private message
Reply with quote
Post  
if this is the entire code in the ppinc then the tables are messed up. when the table structure is unbalanced then critical information can be dropped by the browser. try this to see if it helps...


<TR>
<TD COLSPAN = "4" BORDER="0" CELLPAD="0"><HR></TD>
</TR>
<TR WIDTH="640" BORDER="0">
<TD WIDTH="300">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b>
<TD ALIGN="CENTER" WIDTH="225" VALIGN="MIDDLE" BORDER="0">
<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2 "><FONT FACE=ARIAL SIZE="1"> Click Here for More Info</a> </FONT> </TD>
<TD ALIGN="CENTER" WIDTH="100">
<font color="#FF0000"></font></TD>
<TD ALIGN="CENTER" WIDTH="250" VALIGN="TOP" BORDER="0">
<FONT FACE="ARIAL" SIZE="2">
<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
<TD VALIGN="TOP" BORDER="0">
<INPUT TYPE="TEXT" NAME="%%itemID%%" SIZE="3" MAXLENGTH="3" VALUE="1"> </TD>
<TD VALIGN="MIDDLE">
<INPUT TYPE="IMAGE" NAME="add_to_cart_button" VALUE="Add To Cart" SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0"></td>
</tr>
<tr>
<TD ALIGN="center" VALIGN="middle">
<FONT FACE=ARIAL size="2">
<A HREF="agora.cgi?dc=1&%%href_fields%%"></td>
<TD ALIGN="right" VALIGN="middle">
<FONT FACE=ARIAL size="2"> Check Out</FONT> </A> </TD>
</TR>
</TABLE><!--END SELECT QUANTITY BUTTON--></FORM></td>
</tr>


i'm not sure if this will lay out properly or at least the way you want it but the tables are balanced and the table tags are corrected. there is no "CELLPAD="0"" attribute that i am aware of. also you had "td" in the middle of a few <td> tags as well as a font tag in the <td> tag. things like no </td> or missing </tr> or <tr> tags will mess up stuff big time. also be aware that the beginning table tag is embedded in code as well as the </table> tag. this is why the ppinc must begin with <tr> and end with </tr>
d

Reply with quote
Post 'add to cart' button works.... 'check out' text link doesn't 
hi... thanks for getting back to me so quickly.... using the new 'code' supplied i was able to get the add to cart button to work again which is great, thanks for that! however, i seem to have lost the 'check out' function on the page... the text is there but it is not an active link. am i missing something?

the cellpad reference was something i was trying in order to try and minimise the height of each of the rows but it didn't do anything. i've since realised that tr height is what i need, and can expand each row but cannot make them smaller in height.... do you have any suggestions for this?

i've put the code below...



<TR>
<TD COLSPAN = "4" BORDER="0" CELLPAD="0"><HR></TD>
</TR>
<TR WIDTH="700" BORDER="0">
<TD WIDTH="450">
<FONT FACE="ARIAL" SIZE="2" font color="#ff0000">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b>
<TD ALIGN="CENTER" WIDTH="250" VALIGN="MIDDLE" BORDER="0">
<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2 "><FONT FACE=ARIAL SIZE="1"> Click Here for More Info</a> </FONT> </TD>
<TD ALIGN="CENTER" WIDTH="150">
<font color="#FF0000"></font></TD>
<TD ALIGN="center" WIDTH="300" VALIGN="middle" BORDER="0">
<FONT FACE="ARIAL" SIZE="2">
<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
<TD VALIGN="bottom" VALIGN="bottom" BORDER="0">
<INPUT TYPE="TEXT" NAME="%%itemID%%" SIZE="3" MAXLENGTH="3" VALUE="1"> </TD>
<TD VALIGN="MIDDLE">
<INPUT TYPE="IMAGE" NAME="add_to_cart_button" VALUE="Add To Cart" SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0"></td>

<TD ALIGN="center" VALIGN="bottom">
<FONT FACE=ARIAL size="2">
<A HREF="agora.cgi?dc=1&%%href_fields%%"></td>
<TD ALIGN="right" VALIGN="bottom">
<FONT FACE=ARIAL size="2"> Check Out</FONT> </A> </TD>
</TR>
</TABLE><!--END SELECT QUANTITY BUTTON--></FORM></td>
</tr>

View user's profile Send private message
Reply with quote
Post  
oops. more table problems...
<TR>
<TD COLSPAN = "4" BORDER="0" CELLPAD="0"><HR></TD>
</TR>
<TR WIDTH="700" BORDER="0">
<TD WIDTH="450">
<FONT FACE="ARIAL" SIZE="2" font color="#ff0000">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b>
<TD ALIGN="CENTER" WIDTH="250" VALIGN="MIDDLE" BORDER="0">
<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2 "><FONT FACE=ARIAL SIZE="1"> Click Here for More Info</a> </FONT> </TD>
<TD ALIGN="CENTER" WIDTH="150">
<font color="#FF0000"></font></TD>
<TD ALIGN="center" WIDTH="300" VALIGN="middle" BORDER="0">
<FONT FACE="ARIAL" SIZE="2">
<!--BEGIN SELECT QUANTITY BUTTON-->
<TABLE>
<TR ALIGN="CENTER">
<TD VALIGN="bottom" VALIGN="bottom" BORDER="0">
<INPUT TYPE="TEXT" NAME="%%itemID%%" SIZE="3" MAXLENGTH="3" VALUE="1"> </TD>
<TD VALIGN="MIDDLE">
<INPUT TYPE="IMAGE" NAME="add_to_cart_button" VALUE="Add To Cart" SRC="%%URLofImages%%/add_to_cart.gif" BORDER="0"></td>

<TD ALIGN="center" VALIGN="bottom">
<FONT FACE=ARIAL size="2">
<A HREF="agora.cgi?dc=1&%%href_fields%%"></td>
<TD ALIGN="right" VALIGN="bottom">
<FONT FACE=ARIAL size="2"> Check Out</FONT> </A> </TD>
</TR>
</TABLE><!--END SELECT QUANTITY BUTTON--></FORM></td>
</tr>

======================================
note the code below....

<TD WIDTH="450">
<FONT FACE="ARIAL" SIZE="2" font color="#ff0000">
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b>
<TD ALIGN="CENTER" WIDTH="250" VALIGN="MIDDLE" BORDER="0">
<A HREF="%%scripturl%%?cart_id=&p_id=%%ProductID%%&xm=on&ppinc=search2 "><FONT FACE=ARIAL SIZE="1"> Click Here for More Info</a> </FONT> </TD>

not sure how this intended to lay out but you either need to close the <td> tag after the
<FORM METHOD = "post" ACTION = "%%scriptURL%%">
%%make_hidden_fields%%
<b>%%name%%</b>

or close out the the <td> then do a </tr><tr> or nest the
<TD ALIGN="CENTER" WIDTH="250" VALIGN="MIDDLE" BORDER="0">
cell in a table
<table>
<tr>
<TD ALIGN="CENTER" WIDTH="250" VALIGN="MIDDLE" BORDER="0">
stuff here</td>
</tr>
</table>

the point being you cannot have a cell within a cell...
<td>
stuff here
<td>
more stuff here</td></td>

d

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