What domain are you testing this on?
What domain are you testing this on?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
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:
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 ...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;
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I have installed only the two files and commented out/added to includes/modules/order_total/ot_optionalinsurance.php
I uninstalled and installed admin/modules/order total/optional insurance. I have insurance set to on in the USPS mod.
Now insurance is being added still, but no insurance options at all. It also shows the cost with insurance added in the "estimated shipping cost"
Thanks!
The shipping quotes will include the insurance in the Shipping Cost ... it is removed only if the checkbox is checked in the checkout_payment on the checkout ...
Do you see the checkout checkbox on the checkout_payment page now?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I recently added Optional Shipping Insurance Module version 3.2.2 to a couple websites. Overall is performed as advertised, but it bothered me a bit that it "forgot" the insurance setting when moving from the confirmation page back to the payment page via the links. In studying the code, I noticed that $_SESSION['opt_insurance'] is used in two locations in /includes/modules/order_total/ot_insurance.php, but is never set. $_SESSION['insurance'] is also used and is set in the collect_posts function. I changed the two instances of $_SESSION['opt_insurance'] to $_SESSION['insurance'] and noted that now the insurance setting is "remembered" when moving from the confirmation page back to the payment page.
Then an easy method of setting the initial value of the insurance setting occurred to me.
In summary, the edits that I did in /includes/modules/order_total/ot_insurance.php:
Change line 116:toCode:if ($_SESSION['opt_insurance']) {Change line 244:Code:if ($_SESSION['insurance']) {toCode:$selected = (($_SESSION['opt_insurance'] == '1') ? true : false);Code:if (isset($_SESSION['insurance'])) { $selected = (($_SESSION['insurance'] == '1') ? true : false); } else { $selected = true; // true for opt-out, false for opt-in }
What shipping module are you using?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I'm using Zone Rates.
Hallo I downloaded the module but I have a question:
Is it possible to make the option not mandatory and let the customer choose if he wants or not the insurance on shpiing ?
Thank You
My Site - Zen Cart & WordPress integration specialist
I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.
Bookmarks