This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add a shipping insurance surcharge to your cart / checkout | |
* change the insurance amount based on value of cart | |
* Uses the WooCommerce fees API | |
* Written for use with USPS Simple Woo Shipping plugin - Change $chosen_methods to your shipping methods | |
* Uses USPS shipping rates | |
* Based on Gist by MattRy | |
* | |
*/ |