As an FYI I have tested this mod with Marco's USPS module, all works well if you have the settings correct.
If you used this method to hide the optional insurance when UPS is selected:
Code:
if ($_SESSION['shipping']['id'] != 'usps_EXPRESS'
&& $_SESSION['shipping']['id'] != 'usps_PRIORITY'
&& $_SESSION['shipping']['id'] != 'usps_PARCEL'
&& !IS_ADMIN_FLAG)
You need to change it to this: (if you are using upsxml)
Code:
if (($_SESSION['shipping']['id'] == 'free_free')
|| ($_SESSION['shipping']['id'] == 'upsxml_UPS Ground')
|| ($_SESSION['shipping']['id'] == 'upsxml_UPS 3 Day Select')
|| ($_SESSION['shipping']['id'] == 'upsxml_UPS 2nd Day Air')
|| ($_SESSION['shipping']['id'] == 'upsxml_UPS Next Day Air Saver')
|| ($_SESSION['shipping']['id'] == 'upsxml_UPS Next Day Air'))
If you need to hide the Opt. Ins for other shipping modules PM me and I'll help you with that if I can....
Bookmarks