Guest dannio Posted March 16, 2009 Share Posted March 16, 2009 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> <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> </p> <p> </p> <div align="right"> <div align="right"></div> </div> </td> </tr> <tr> <td height="87" valign="middle"><p> </p> <p> </p> <p align="right"> </p> </p></td> </tr> <tr> <td> </td> <td valign="top"> </td> <td><p> </p> <p> </p></td> </tr> <tr> <td> </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> </td> <td width="0"></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td> </td> <td><div align="right"></div></td> </tr> <tr> <td> </td> <td valign="top"> </td> </tr> <tr> <td height="59"> </td> <td> </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> </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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.