For those interested:
To make this module only work when the USPS shipping module is selected change the if statement at the beginning of the ot_insurance.php file from this:
Code:
if ($_SESSION['shipping']['id'] = 'storepickup_storepickup')
To this:
Code:
if ($_SESSION['shipping']['id'] != 'usps_EXPRESS'
&& $_SESSION['shipping']['id'] != 'usps_PRIORITY'
&& $_SESSION['shipping']['id'] != 'usps_PARCEL'
&& !IS_ADMIN_FLAG)
You would need to add more lines for other usps shipping options as needed, for example:
Code:
if ($_SESSION['shipping']['id'] != 'usps_EXPRESS'
&& $_SESSION['shipping']['id'] != 'usps_PRIORITY'
&& $_SESSION['shipping']['id'] != 'usps_PARCEL'
&& $_SESSION['shipping']['id'] != 'usps_FIRST CLASS'
&& $_SESSION['shipping']['id'] != 'usps_MEDIA'
&& !IS_ADMIN_FLAG)
Hope this helps...