Hmm...the struggle goes on.
I guess now I'm at the part where I should really be paying attention to the way the comments are handled. I've got my form to appear, but now I'm having a difficult time figuring out how to insert the data collected via these two radio buttons into the 'zen_orders' table.
Basically...here's what I've got. I know it's way way wrong (otherwise it would be working, lol) but I reckon my best bet is to post my pathetic code and hope:
This is what I've added to tpl_checkout_shipping.php
PHP Code:
<fieldset>
<legend>Ship Complete</legend>
To keep shipping costs to a minimum, we ship orders complete unless otherwise requested. If you would like to accept a partial shipment in the event your order contains some in-stock and some non-stock products, please choose "yes" below: <br/><br/>
<form id="splitshipment" name="splitshipment" method="post" input type="submit" action="submit">
<label>
<input name="ship_complete_yes" type="radio" value="Yes" />
Yes</label><label>
<input name="ship_complete_no" type="radio" value="No" />No</label>
</form>
<?php $sql="INSERT INTO zen_orders ".
"(ship_complete) ".
"VALUES ".
"('$splitshipment')";?>
</fieldset>
Bookmarks