Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Form in product info


notubes_pete

Recommended Posts

I am trying to make a out of stock notification button. But i wish it just to email me when the request to be notified. And not have to make a user to get a notification.

So i made a simple email form. I have tested it.

 

But when i past it in to the Products Description, of the out of stock product its submit button adds the product to cart and dose not send the email.

 

Is there a way to not have the product description inside a form?

 

here is my code

<table width="246" border="0" align="center">
 <tr>
<td width="231">
Notify me when in stock<br>
<form action="nofity.php" method="post">
 <input type="text" name="email" size="25">	
 <INPUT TYPE="hidden" NAME="subject" VALUE="echo $products_name;">
	<input name="submit" type="submit" value="Submit" />
</form>
</td>
 </tr>
</table>

Link to comment
Share on other sites

Move the main form below the products description:

 

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

 

Put it where you see:

 

<td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td>

 

Sonia

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...