USPS Shipping Insurance 1.0 by olsonsp4c
This module displays USPS shipping insurance rates on checkout_payment.php and allows for selection/deselecton of this option. It then adds the proper shipping insurance amount to the order total on checkout_confirmation.php.
IMPORTANT NOTE: This order total module will ONLY work if you ship ONE package per order. If you ship in MULTIPLE packages per order, the shipping insurance will NOT calculate properly.
What I could use help on:
1. I can not figure out how to call the $shipping_box_num variable from includes/classes/shipping.php in this order total module. If I could do this, this module would be able to properly calculate shipping insurance on MULTIPLE packages per order.
2. I'd rather that the USPS shipping insurance option appear on catalog/checkout_shipping.php However, I can not figure out how to make the checkbox variable "choose_insurance" carry from checkout_shipping.php through checkout_payment.php and then to checkout_confirmation.php
SCREENSHOTS included. COMPLETE package (hopefully I didn't forget anything)
SUPPORT FORUM: http://forums.oscommerce.com/index.php?showtopic=294640
Please work together to make this a better addon.
Legend: 
Download

Report
FULL PACKAGE with UPDATE INSTRUCTIONS
(please ignore v1.5 below)
Changes since v1.4
------------------
* Fixed the issue: if customer goes back to the checkout shipping page from checkout payment to change their USPS shipping insurance choice, the change is not registered. Now, changes are registered properly.
* Added the edits suggested by draculakos which adds rollover color and a function that enables you to click anywhere inside infobox in order to toggle the USPS shipping insurance checkbox. (1 edit was missing on the forum, I have corrected this)
Scott
FULL PACKAGE with UPDATE INSTRUCTIONS
Changes since v1.4
------------------
* Fixed the issue: if customer goes back to the checkout shipping page from checkout payment to change their USPS shipping insurance choice, the change is not registered. Now, changes are registered properly.
Scott
Changes since v1.3
------------------
* Fixed the issue: the order history doesn't show that insurance was ordered (thanks VITW)
* Fixed the issue: going from "Confirmation" back to "Payment" doesn't retain the fact that insurance was requested (thanks VITW)
* Updated insurance rates to current prices (taken from usps.com)
* I have confirmed that 1.4 does work with the osC rc2a PayPal Website Payments Standard, properly carrying over the insurance value
* Updated the Upgrade section
Scott (olsonsp4c)
USPS Shipping Insurance v1.3
Changes since v1.2
--------------------
* Added code to enable insurance choice to locate on the checkout_shipping.php page (thanks to Herron)
* Update "what I could use help on" section
Enjoy!
Scott (olsonsp4c)
Changes since v1.1
------------------
* Code added to calculate tax including the shipping insurance if a tax class is chosen (thanks to Jake)
Scott (olsonsp4c)
USPS Shipping Insurance 1.1a
Changes since 1.1
-------------------
* Corrected the Tax Class database entry and calculation (verified on a vanilla osC test store)
* Corrected the correct amount to be added to the order total (prep for multi-package support)
To update from 1.1 just remove the old in the admin, overwrite existing files, install in the admin, set options accordingly (make sure that the sort order of this module is a higher number than shipping and tax)
Update instructions for 1.0 inside.
Scott (olsonsp4c)
USPS Shipping Insurance 1.1
Changes since v1.0
------------------
* Corrected the colspan to "3" instead of "4" in the second half of checkout_payment.php
* Corrected the table alignment issues in checkout_payment.php
* Added BEGIN and END comments to the stylesheet
* Added the missing Tax Class database entry and corresponding code edits
* Added update instructions
[well, I did forget a few things :) ]
Scott (olsonsp4c)
USPS Shipping Insurance 1.0 by olsonsp4c
This module displays USPS shipping insurance rates on checkout_payment.php and allows for selection/deselecton of this option. It then adds the proper shipping insurance amount to the order total on checkout_confirmation.php.
IMPORTANT NOTE: This order total module will ONLY work if you ship ONE package per order. If you ship in MULTIPLE packages per order, the shipping insurance will NOT calculate properly.
What I could use help on:
1. I can not figure out how to call the $shipping_box_num variable from includes/classes/shipping.php in this order total module. If I could do this, this module would be able to properly calculate shipping insurance on MULTIPLE packages per order.
2. I'd rather that the USPS shipping insurance option appear on catalog/checkout_shipping.php However, I can not figure out how to make the checkbox variable "choose_insurance" carry from checkout_shipping.php through checkout_payment.php and then to checkout_confirmation.php
SCREENSHOTS included. COMPLETE package (hopefully I didn't forget anything)
SUPPORT FORUM: http://forums.oscommerce.com/index.php?showtopic=294640
Please work together to make this a better addon.