romanj Posted March 26, 2007 Posted March 26, 2007 I'm a newbie to OS commerce. I need to show SHIPPING INSURANCE in page checkout_ payment.php. Please show me how to do this. The following code: <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <[b]td class="main" width="100%" valign="top"><b>Add Shipping Insurance? <input name="ship_insurance" type="checkbox" value="1" checked onClick="show_shipping()"></b><div id="shippingcost"></div> //if checkbox Add Shipping Insurance is checked it will call function show_shipping() and will show the cost of Shipping Insurance </td>[/b] <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> <script> function show_shipping(){ if (document.checkout_payment.ship_insurance.checked==true) { message_div = document.getElementById('shippingcost'); message_div.innerHTML = "<strong>Shipping Insurance</strong> : C$([b]this place to show ship insurance[/b]) "; }else { message_div = document.getElementById('shippingcost'); message_div.innerHTML = ''; } } </script> I'm so confused. :'( Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.