Guest Posted March 18, 2007 Posted March 18, 2007 Button buy now dosent work in new_products.php Anyone have an idea? Here is the code <tr> <td colspan="2" class="main" valign=top align="right" style="padding-right:10px; >'. tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).' <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="padding-top:10px; padding-right:1px;" ><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">'.tep_image_button('button_details.gif', IMAGE_BUTTON_DETAILS).'</a></td><td style="padding-top:10px;">'.tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('button_add_to_cart.gif', IMAGE_BUTTON_BY_NOW).'</td> </tr> </table></form> </td> </tr> </table>'); }
khime Posted March 18, 2007 Posted March 18, 2007 Cant see the top of the code, things like this occur normally if you have deleted the preceding <form> tag which should appear near the top of the column 2 part
Guest Posted March 18, 2007 Posted March 18, 2007 Cant see the top of the code, things like this occur normally if you have deleted the preceding <form> tag which should appear near the top of the column 2 part Thanx! I added <form> to the top of my code and the button works now.. When you click it it takes you to the new product listing where you can choose to add to cart! It would have been best to make that button add the product to the cart imeadeatly, but this is better than not working! :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.