Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

location of the "add to cart" Form


superjadex12

Recommended Posts

I would be greatful if anyone could tell me where the code that generates the <FORM> tag located on the product page can be edited ?

 

This is the form that handles the product attributes and the add to cart button. It gets displayed as:

<form name="cart_quantity" action="/product_info.php?products_id=12&action=add_product" method="post">

 

And the php code is:

 

echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));

 

I want to be able to put a javascript "onsubmit" handler in that form, for obvious reasons.

I tried editing that php code but nothing would work. It collect data from elsewhere, but I don't know where.

I apoligize if this question has been answered, but the search is not exactly google-esque.

Thank you!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...