Actually guys, TRY THIS ONE INSTEAD.
It goes here: includes/modules/order_total/ot_insurance.php
It includes NEW USPS rates, and also will turn itself OFF if someone chooses "STORE PICKUP" as their shipping method.
Printable View
Actually guys, TRY THIS ONE INSTEAD.
It goes here: includes/modules/order_total/ot_insurance.php
It includes NEW USPS rates, and also will turn itself OFF if someone chooses "STORE PICKUP" as their shipping method.
Can anyone confirm if this works with V1.3.8 ?
I tried it on V1.3.7, no problems, but when i tried it on V1.3.8 my checkout payment screen is blank (nothing loads). :huh:
What could I be doing wrong?
Thanks
Warren
Same thing happening to me, blank screen on checkout step 2.
So it's definitely a 1.3.8 issue.
I'm using this on 1.37.1 but i cannot get it to work. the tick box option in checkout is there but the rates that i have set up are never applied to the total cost of the order on the final confimration screen.
What am i doing wrong?
Here is the new includes/modules/order_total/ot_insurance.php
Please test well before using on a live site.
Yes i did turn off the USPS rate and no, no amoutn getsa added to the final confirmation screen.
I have just uploaded your revised file and that makes no difference. There is the option to check the require insurance box, when i check that no amount gets added on the final payment screen.
These are my settings:
Code:Enable Insurance Module
true
Offer Shipping Insurance?
true
Sort Order
500
Use USPS Rates?
false
Alternate Insurance Type
amount
Insurance Percentage
5
Insurance Rate
£0.50
Increment Amount
£30.00
Amount Exempt From Fee
£0.00
Apply Insurance Fee To Which Orders
both
Tax Class
--none--
No Insurance Fee on Virtual Products
true
No Insurance Fee on Gift Vouchers
true
As requested by Jettrue, I am going to explain the reason for the update to 3.10.
A sponsor requested the following additions be made to the script:
- be able to see the rate that is being added on the checkout_payment page (works in all currencies).
- make insurance mandatory when an order is over a defined amount.
- make the former USPS rate table admin configurable and generalized to be used for any shipping company.
- distuinguish free-shipping items from regular shipping products so that insurance can be based on the regular shipping products only.
- make all of the above compatible with Fast and Easy Checkout as well.
Jettrue wanted me to also outline that because I have removed the hard-coded USPS rates and put in a general admin table, features such as the max-Canadian insurance rate no longer exist. Well, this is only partially true. If $1000 is the most that can be insured and the cost is $10, simply put 1000:10 in the table that is defined for your zone containing Canada and all orders over $1000 will be charged $10 only. Then, simply add a note on your checkout page that Canadian orders are insured up to a maximum of $1000.
If anyone has requests for the mod, please feel free to contact me and I will try to implement them when convenient.