Jump to content

Add To Basket Button Not working


Guest dannio

Recommended Posts

Guest dannio

Hi Guys.

I hope somebody can help me here. I am working to a tight deadline an need to get this rolling out.

I have skinned up cubecart in full and now, on the view product page (viewProd.tpl) my add to basket button doesnt work.

I have used the framework of the Classic skin for my skin. I just cannot work out hopw to close the code up properly to make it work. When you click it currently, it refreshes the page and the basket remains empty?

Please can somenbody shed a little light on it for me?

Link to product veiw is: http://localhost/design/store/index.php?act=viewProd&productId=1

Code is as follows:

<!-- BEGIN: view_prod -->

<link href="../../styleSheets/style.css" rel="stylesheet" type="text/css" />

<div class="boxContent">

<!-- BEGIN: prod_true -->

<form action="{CURRENT_URL}" method="post" name="addtobasket" target="_self">

<table width="709" height="407" border="0">

<tr>

<td width="56" rowspan="2" valign="top"><img src="{IMG_SRC}" alt="{TXT_PRODTITLE}" border="0" title="{TXT_PRODTITLE}" /></td>

<td width="253" valign="top"><div align="left">

<div class="prodtitle">{TXT_PRODTITLE} </div>

<div align="center"></div> </td>

<td width="31" rowspan="2" valign="middle"><strong></strong></td>

<td width="347" rowspan="8" align="left" valign="top"><div align="left"><span style="position: relative; text-align: right;"><br /><div class="prodgen">

<div align="left">{LANG_QUAN}

<input name="quan" type="text" value="1" size="2" class="quant" style="text-align:center; />

</div>

</div>

<!-- BEGIN: prod_opts -->

<div align="left">

<table border="0" cellspacing="0" cellpadding="3">

<!-- BEGIN: repeat_options -->

<tr>

<td><div class="prodgen">{VAL_OPTS_NAME}</td>

<td><select name="productOptions[]" class="quant">

<!-- BEGIN: repeat_values -->

<option value="{VAL_ASSIGN_ID}"> {VAL_VALUE_NAME}

<!-- BEGIN: repeat_price -->

<!-- END: repeat_price -->

</option>

<!-- END: repeat_values -->

</select></td>

</tr>

<!-- END: repeat_options -->

</table>

<p><br />

</p>

</div> <!-- END: prod_opts -->

<div align="right">

<div align="right">

<p align="left"><span class="prodprice">{LANG_PRICE} {TXT_PRICE} </span> <span class="prodsale">{TXT_SALE_PRICE} </span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<div style="position: relative; text-align: right;">{LANG_QUAN}

<input name="quan2" type="text" value="1" size="2" class="textbox" style="text-align:center;" />

<a href="java script:submitDoc('addtobasket');" class="txtButton">{BTN_ADDBASKET}</a> </div>

</div></form>

</div>

<p></p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<div align="right">

<div align="right"></div>

</div> </td>

</tr>

<tr>

<td height="87" valign="middle"><p>&nbsp;</p>

<p>&nbsp;</p>

<p align="right">&nbsp;</p>

</p></td>

</tr>

<tr>

<td>&nbsp;</td>

<td valign="top">&nbsp;</td>

<td><p>&nbsp;</p>

<p>&nbsp;</p></td>

</tr>

<tr>

<td>&nbsp;</td>

<td rowspan="5" valign="middle"><div style="position: relative; text-align: right;">

<label></label>

</a>

<div align="right"></div>

</a></div>

</div>

<div align="right"></div>

</div> <div style="position: relative; text-align: right;">

</a>

<div align="center"></div>

</div>

</div>

<div align="right"></div>

</div>

<div align="center"></div>

<p>{TXT_INSTOCK}<span class="txtOutOfStock"> {TXT_OUTOFSTOCK} </span></p> <p>{LANG_PRODUCT_EXPIRED}

<input type="hidden" name="add2" value="{PRODUCT_ID}" />

</p></td>

<td>&nbsp;</td>

<td width="0"></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td><div align="right"></div></td>

</tr>

<tr>

<td>&nbsp;</td>

<td valign="top">&nbsp;</td>

</tr>

<tr>

<td height="59">&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table>

<!-- BEGIN: more_images -->

<!-- END: more_images -->

<br />

</form>

<!-- END: prod_true -->

<!-- BEGIN: prod_false -->

<p>

<!-- BEGIN: prod_true --></p>

<form action="{CURRENT_URL}" method="post" name="addtobasket" target="_self" id="addtobasket">

<!-- BEGIN: more_images -->

<!-- END: more_images -->

<br />

</form>

<!-- END: prod_true -->

<!-- BEGIN: prod_false -->

<p>&nbsp;</p>

<!-- END: prod_false -->

<!-- END: prod_false -->

</div>

<!-- END: view_prod -->

Sorry the link to the version on my webserver is as follows: http://dsitc.co.uk/store/index.php?act=vie...amp;productId=1

Please ignore the lack of images as I havent referanced the paths yet as this is going to be a multiple install project.

many Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...