Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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. :'(

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...