Make no changes to anything ...
Follow these steps ...
1 Get the Zip from from post #367 ...
2 Only install the files for the Order Total module for the Optional Insurance
/includes/modules/order_total/ot_optionalinsurance.php
/includes/languages/english/modules/order_total/ot_optionalinsurance.php
3 Edit the file:
/includes/modules/order_total/ot_optionalinsurance.php
and around line 144 comment out this line by adding the
// and below it add the code in
RED:
Code:
//echo 'shipping insurance: ' . $_SESSION['shipping']['insurance'] . '<br>';
$selected = (($_SESSION['insurance'] == '1') ? true : false);
//override optional setting and force decline to be checked from the start
$selected = true;
this will make the checkbox on the checkout_payment default as Decline Insurance by having it pre-checked so that if the customer wants the Insurance on the shipping they need to uncheck it ...
Bookmarks