Forums / Addon Shipping Modules / Optional Shipping Insurance Module [Support Thread]

Optional Shipping Insurance Module [Support Thread]

Views: 168,604

Results 301 to 320 of 416
8 Sep 2011, 8:44 PM
#301
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

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:```
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)

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....
20 Sep 2011, 12:11 AM
#302
bonkycat avatar

bonkycat

New Zenner

Join Date:
Aug 2009
Location:
Washington State
Posts:
54
Plugin Contributions:
0

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.

20 Sep 2011, 3:48 PM
#303
kbrown avatar

kbrown

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

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?

21 Sep 2011, 2:09 PM
#304
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

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...

21 Sep 2011, 7:20 PM
#305
kbrown avatar

kbrown

New Zenner

Join Date:
Jul 2011
Posts:
10
Plugin Contributions:
0

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.

21 Sep 2011, 7:31 PM
#306
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

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!

2 Nov 2011, 3:10 AM
#307
abibliss avatar

abibliss

New Zenner

Join Date:
Oct 2011
Posts:
5
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

JorgeR:

What's the solution to this?
Thanks

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:

4 Nov 2011, 4:02 PM
#308
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

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

<?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:

28 Dec 2011, 7:18 PM
#309
eastboy avatar

eastboy

New Zenner

Join Date:
Dec 2011
Posts:
27
Plugin Contributions:
0

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

28 Dec 2011, 7:29 PM
#310
eastboy avatar

eastboy

New Zenner

Join Date:
Dec 2011
Posts:
27
Plugin Contributions:
0

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

18 May 2012, 2:34 PM
#311
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Sorry if this has already been answered, but I can't seem to sort it out.

How can the code be changed so that the insurance is preselected, but not required.I've been running in circles playing with the file to no avail.

-lindasdd

16 Oct 2012, 12:28 AM
#312
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

still don't understand this one

[15-Oct-2012 13:36:42] PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant MODULE_ORDER_TOTAL_INSURANCE_ZONE_5 in /home2/pwcforum/public_html/includes/modules/order_total/ot_insurance.php on line 43

http://www.zen-cart.com/downloads.php?do=file&id=232

i think something isn't matching up cause its for 1.3.8 can anyone help me and either take out zone 5 cause we don't use it anyway or help me update it so it will work with 1.5.1

Thanks

We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out https://www.AD-DiscountPerformance.com

16 Oct 2012, 12:32 AM
#313
dashizna avatar

dashizna

Zen Follower

Join Date:
Mar 2006
Posts:
424
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

i installed this on 1.5.1 and now i get this error

[15-Oct-2012 13:36:42] PHP Warning: constant() [<a href='function.constant'>function.constant</a>]: Couldn't find constant MODULE_ORDER_TOTAL_INSURANCE_ZONE_5 in /home2/*******/public_html/includes/modules/order_total/ot_insurance.php on line 43

please help

We sell ATV, Dirtbike, Streetbike, Snowmobile, Watercraft & Custom stickers & Banners. Check us out https://www.AD-DiscountPerformance.com

16 Oct 2012, 2:40 AM
#314
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Optional Shipping Insurance Module [Support Thread]

Dashizna,
Click "Remove" on that module, and then click "install" and set it up again. That should clear up those messages which were caused by the way in which you did your upgrade.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Oct 2012, 9:59 PM
#315
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

Dashizna-
Take a look back at post#327...
I had to fill in ALL of the zones even if they are not being used. You could also go in to and edit the ot_insurance.php file to remove where it is looking for ZONE_5, but I wouldn't advise that if you are not comfortable working with the php files. (If you do this MAKE SURE TO BACK UP FIRST, just in case!)

16 Oct 2012, 10:08 PM
#316
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

Just took a quick look at the file.
My line 40 reads:

$this->num_zones = $geozones->RecordCount();

you could remove $geozones->RecordCount(); and replace with the number of zones you use. Like so:

//$this->num_zones = $geozones->RecordCount();
$this->num_zones = 4;

I'm sure this is not the "right" way nor the "pretty" way but it should work

16 Oct 2012, 10:10 PM
#317
mikestaps avatar

mikestaps

Zen Follower

Join Date:
Aug 2010
Location:
Grand Blanc, MI
Posts:
305
Plugin Contributions:
1

Re: Optional Shipping Insurance Module [Support Thread]

Linda-
If you change it from a radio button to a check box the customer should be able to uncheck it... I'll take a look at this tomorrow and get back with you.

13 Aug 2013, 2:54 AM
#318
tinderbox avatar

tinderbox

New Zenner

Join Date:
Jun 2013
Location:
Perth Western Australia
Posts:
20
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Hi All,

I have installed the module on ZC version 1.5.1 and I can edit the mod in the admin area but nothing shows up in the store, no option 'check box' for the customer to select. I guess would like what I'm asking is does this mod work with version 1.5.1? I have the settings that I am using,

Shipping Insurance

Enable Insurance Module
True

Sort Order
500

Use Table Rates?
false

Alternate Insurance Type
percent

Insurance Percentage
1.5

Insurance Rate
$0.50

Increment Amount
$100.00

Amount Exempt From Fee
$0.00

Tax Class
--none--

No Insurance Fee on Virtual Products
true

No Insurance Fee on Gift Vouchers
true

No Insurance Fee on Free Shipping
true

Required Insurance Amount
$100.00

Insurance Zone 1
Australia

Zone 1 Insurance Table
50:1.65,100:2.05,200:2.45,300:4.60,400:5.50,500:6.40,600:7.30

Insurance Zone 2
Australia

Zone 2 Insurance Table
50:1.65,100:2.05,200:2.45,300:4.60,400:5.50,500:6.40,600:7.30

thanks Steve.

13 Dec 2013, 3:16 PM
#319
jsarwar avatar

jsarwar

Zen Follower

Join Date:
Jul 2012
Posts:
347
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Hi folks,
I search each thread and could not find answer for this but I was able to figured this out and sharing here so it may be helpful for you all!

Insurance not required but optional and want to have insurance checkbox marked when page loads.
If customer don't want insurance they can simply uncheck box. Using this modification you can get more orders with insurance as box is already selected.

Do following:

Module>Order total >Ot_insurance

Open above mentioned file then press CTRL + F
and type "Checkbox" in search box and hit "ENTER"

Few lines above the line you saw with word "Checkbox" there is a field

$selected = (($_SESSION['opt_insurance'] == '1') ? true : false);

change it to

$selected = (($_SESSION['opt_insurance'] == '1') ? true : true);

If you have standard file with no changes then you can find it by searching for line

Any comment or question contact me Thanks.

24 Sep 2014, 10:23 PM
#320
chibipaw avatar

chibipaw

Zen Follower

Join Date:
Jul 2011
Posts:
167
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Resurrecting this necro thread.
Had anyone noticed that this module no longer works properly with ZC 1.5.3?
insurance used to be exempted in 1.5.1 and prior for Walk-In Store Pickup orders, but after upgrade to 1.5.3, insurance is now added for Walk-In store pickup orders. This is reproducible in both of my shopping carts of different stores.
I know this issue was addressed early in page 9 of this thread, but looks like it might have resurfaced.
Currently running Zen-Cat 1.5.3. Optional Shipping Insurance Module version 3.2.2

Live shopping cart is here: http://www.harajukuhearts.com/

Any help would be appreciated.