OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Adding HTML form to product description
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > General Support
Wonderweb Design
Hi everyone. Im building a tickets website at www.findutickets.com and need to gather extra information regarding the requirements of each customer in the product description. Ive placed an example at http://findutickets.com/ticket_shop/produc...products_id=141 the only problem is when i click the submit button it trys to add the product to my cart instead of calling and running the script to submit the form. Any ideas how to make this work? Cheers.
Monika in Germany
sure, and you'll like how easy it is.

Rigth now, the form for the add to cart is started at the very top of the body part of your page. shift the form start down to the tr tag where the button lines begin.

This is due to nested forms, they will not work ... so you have to detangle the forms so they come after each other.
Wonderweb Design
QUOTE (Monika in Germany @ Jan 22 2008, 12:12 PM) *
sure, and you'll like how easy it is.

Rigth now, the form for the add to cart is started at the very top of the body part of your page. shift the form start down to the tr tag where the button lines begin.

This is due to nested forms, they will not work ... so you have to detangle the forms so they come after each other.


great thank you so much for your help
Wonderweb Design
QUOTE (Wonderweb Design @ Jan 22 2008, 12:36 PM) *
great thank you so much for your help, im a little unsure how to do this, could you tell me the pages i need to edit?
Monika in Germany
find this and remove it from where it is now

CODE
<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>


copy it to the spot right after the products_description is displayed in product_info.php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.