Re: Optional Shipping Insurance Module Support Thread...
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....
Re: Optional Shipping Insurance Module Support Thread...
Thanks to Mikestaps I was confident installing this on zen 1.3.9h. It works beautifully on my site with the standard zen cart usps shipping.
It did take me a long time to get this module working. Although it was probably my error, it should be clarified that you MUST use the SQL included to use the table rate, international or otherwise.
I noticed the included table rates were outdated, so here is the most current information for those wanting to use it.
50:1.80,100:2.30,200:2.85,300:4.75,400:5.80,500:6.85,600:7.90,700:8.95
Anything over $700.00 value you will want to add yourself.
Re: Optional Shipping Insurance Module Support Thread...
I've got the shipping insurance module enable and all of the settings appear correct but the shipping insurance entry never appears in the order total when checking out at all. What would be causing it to not show up at all and not effect the order total at all?
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
kbrown
I've got the shipping insurance module enable and all of the settings appear correct but the shipping insurance entry never appears in the order total when checking out at all. What would be causing it to not show up at all and not effect the order total at all?
Make sure you have zones set up and selected in the table rates, even if you are not using the table rates...
http://www.sicassracing.com/files/ins_1.gif
Re: Optional Shipping Insurance Module Support Thread...
Thanks a million mikestap, that totally fixed it.
I wasn't using zones at all so I didn't have any set up. I created an "Everywhere" zone and assigned shipping insurance to it and now it shows up fine.
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
kbrown
Thanks a million mikestap, that totally fixed it.
I wasn't using zones at all so I didn't have any set up. I created an "Everywhere" zone and assigned shipping insurance to it and now it shows up fine.
:thumbsup: glad I could help!
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
JorgeR
What's the solution to this?
Thanks
Quote:
Originally Posted by
mikestaps
Jorge-
I'm going to look at using the same theory that in post#
315 to accomplish this. I am also looking at making this compatible with Marco's USPS module, so it may take me a little while....
Hi,
Could you kindly elabrate on which file to edit so that when optional insurance is not selected, it will not show up in the order total as $0.0. Your advise is very much appreciated. :smile:
Re: Optional Shipping Insurance Module Support Thread...
Quote:
Originally Posted by
abibliss
Hi,
Could you kindly elabrate on which file to edit so that when optional insurance is not selected, it will not show up in the order total as $0.0. Your advise is very much appreciated. :smile:
Ok, so I figured out the in tpl_checkout_confirmation_default.php these lines are what "prints" the order totals:
around line 164
Code:
<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->process();
?>
<div id="orderTotals"><?php $order_total_modules->output(); ?></div>
<?php
}
?>
I would think you could add in a if statement to exclude the ot_insurance module is it is not selected, just not really sure how to do that right now.
This is on the list of to do's, but unfortunately that list is getting pretty long! :ohmy:
Re: Optional Shipping Insurance Module Support Thread...
Hello
i am using zen cart 1.3.9h. i have installed various add ons with no problem but I've hit a snag with this one.
I installed it as per instructions and it shows up in admin. I have set it to the following settings
Enable Insurance Module: True
Sort Order : 102
Use Table rates : NO
Alternate insurance type : percent
Insurance percenatge : 3
insurance rate : .50
Increment Amount : 100
Amount Exempt from fee : 0
Tax Class : none
Required insurance amount : 0
Basically I just want the option to charge 3% shipping insurance if the customer chooses it.
i have tried altering the above settings, but I cannot get the option to show up when the customer is concluding their purchase.
any help appreciated, i just cannot see where im going wrong
many Thanks
Re: Optional Shipping Insurance Module Support Thread...
Sorry just forgot to add
i have not installed the SQl patch. I am only shipping to my local country South Africa. I have removed all other countries from the sql database.
Would i need to install the SQL patch anyway
thanks