Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Why wont this form add items to the cart?


Guest

Recommended Posts

Posted

Hi,

I am working on hardcoding a few products into my checkout_shipping page (in case someone wants to add a few things at the last second) and have the following form:

 

 

 

 

<form name="cart_multi" method="post" action="checkout_shipping.php?action=buy_now" >

 

<input type="hidden" name="products_id[2]" value="54">

<input type="hidden" name="products_id[3]" value="53">

 

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListing">

<tr>

<td width="369" class="productListing-heading"> </td>

<td width="103" align="center" class="productListing-heading">Quantity:</td>

</tr>

<tr class="productListing-odd">

<td class="productListing-data">Chocolate Sauce</td>

<td align="center" class="productListing-data"><input type="text" name="add_id[2]" value="0" maxlength="5" size="5"></td>

</tr>

<tr class="productListing-even">

<td class="productListing-data">Popsicles</td>

<td align="center" class="productListing-data"><input type="text" name="add_id[3]" value="0" maxlength="5" size="5"></td>

</tr>

 

 

Any ideas?

 

thanks

Posted

I got it, had to make a new case statement in my application_top so when the form was passed it added the items..

 

I wish there was a way to delete my own posts in this forum.. I have a habit of asking questions and then immediately solving them

 

So, moderator, feel free to trash this!

Archived

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

×
×
  • Create New...