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....
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:You need to change it to this: (if you are using upsxml)Code:if ($_SESSION['shipping']['id'] != 'usps_EXPRESS' && $_SESSION['shipping']['id'] != 'usps_PRIORITY' && $_SESSION['shipping']['id'] != 'usps_PARCEL' && !IS_ADMIN_FLAG)
If you need to hide the Opt. Ins for other shipping modules PM me and I'll help you with that if I can....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'))
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.
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?
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.
Ok, so I figured out the in tpl_checkout_confirmation_default.php these lines are what "prints" the order totals:
around line 164
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.Code:<?php if (MODULE_ORDER_TOTAL_INSTALLED) { $order_totals = $order_total_modules->process(); ?> <div id="orderTotals"><?php $order_total_modules->output(); ?></div> <?php } ?>
This is on the list of to do's, but unfortunately that list is getting pretty long!![]()
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