I have added an order custom field to the checkout process named "Would you like this order gift wrapped?" and there is one choice (check box) which is passing value, which is marking that order as a gift, but now store owner has decided to have added some $ amount to the total when that options is checked.
My code looks like:
<td>Would you like this order gift wrapped?</td> <td colspan="2"><input type="checkbox" value="yes" name="order_custom1" /> Yes</td> <td style="text-align:right"><input type="hidden" value="5.00" name="order_custom2" /> $5.00</td> </tr>
Now how I can update total with value of order_custom2 when order_custom1 is not empty on Update Total (or auto update total w/ jQuery on check box checked event)?