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

Optional Shipping Insurance Module [Support Thread]

Views: 168,600

Results 1 to 20 of 416
30 Oct 2006, 4:23 AM
#1
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Optional Shipping Insurance Module [Support Thread]

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

I've delayed putting this back up forever, but I can confirm this works with 1.3.6. This will be in the download section soon.

What this mod does:

This module allows shipping insurance to be charged in three ways. You can either choose standard USPS rates, a percentage of the subtotal, or by an incremental rate of your choosing. It calculates US, Canadian, and then international rates. It limits canadian to $8.60 or orders up to $675 (USPS Canadian shipping indemnity limit). This module WILL NOT add insurance to virtual items or gift certificates.

Please post any issues or questions here!

17 Nov 2006, 6:31 PM
#2
plumloopy avatar

plumloopy

New Zenner

Join Date:
Apr 2006
Posts:
66
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

I don't need this for insurance, but by changing the label, I can use this to allow people to choose a delivery confirmation add on for $2 at checkout. All I do is set it to a flat amount of $2 per increment and make the increment a super high dollar amount so it's never more than $2.

Then I go into one of the files (english/modules/order_total/***.php) and change the jive about insurance to read "Check this for Delivery Confirmation..."

My point is people all over this board are looking for a way to charge a fee during checkout for an added service - be it gift wrapping (per product is too cumbersome for some) or what I included. There is one mod for such an add on but it didn't work for me, is unsupported and far too complicated.

Woo Hoo!

Chris

18 Nov 2006, 4:37 PM
#3
saddlebred avatar

saddlebred

Inactive

Join Date:
Nov 2006
Posts:
56
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Okay, I have an idea, but since I don't know php, I'm not exactly sure how to impliment it. Our customers can choose between USPS and UPS shipping. What I would like to do is offer them shipping insurance based on which shipping option they choose. So, my thought is to have 2 ot_insurance.php files. one would be called ot_uspsinsurance.php and the other would be ot_upsinsurance.php. The USPS one would be set to calculate the USPS insurance rates. While the UPS one would be set to increment. Now, my question is, how can I get it to call the right insurance file based on the shipping option that the customer chooses. Any ideas?
Thanks,
Melissa
http://store.equineshop.biz

27 Nov 2006, 7:21 PM
#4
chuby2 avatar

chuby2

New Zenner

Join Date:
Feb 2006
Posts:
8
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

jettrue:

I've delayed putting this back up forever, but I can confirm this works with 1.3.6. This will be in the download section soon.

What this mod does:

This module allows shipping insurance to be charged in three ways. You can either choose standard USPS rates, a percentage of the subtotal, or by an incremental rate of your choosing. It calculates US, Canadian, and then international rates. It limits canadian to $8.60 or orders up to $675 (USPS Canadian shipping indemnity limit). This module WILL NOT add insurance to virtual items or gift certificates.

Please post any issues or questions here!

Thanks for this add-on !!

Is there a way to format the text and move the checkbox to the left ?

I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.

Please advise

30 Nov 2006, 12:21 AM
#5
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Optional Shipping Insurance Module [Support Thread]

saddlebred:

Okay, I have an idea, but since I don't know php, I'm not exactly sure how to impliment it. Our customers can choose between USPS and UPS shipping. What I would like to do is offer them shipping insurance based on which shipping option they choose. So, my thought is to have 2 ot_insurance.php files. one would be called ot_uspsinsurance.php and the other would be ot_upsinsurance.php. The USPS one would be set to calculate the USPS insurance rates. While the UPS one would be set to increment. Now, my question is, how can I get it to call the right insurance file based on the shipping option that the customer chooses. Any ideas?
Thanks,
Melissa
http://store.equineshop.biz

Sorry, I don't have any ideas on that, but if you have both offered during checkout, one titled USPS insurance, one titled UPS insurance, then the customer has to choose one or the other. Not perfect, but I think doable.

30 Nov 2006, 12:23 AM
#6
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Optional Shipping Insurance Module [Support Thread]

chuby2:

Thanks for this add-on !!

Is there a way to format the text and move the checkbox to the left ?

I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.

Please advise

Hi!

Just add this to your css:
#checkoutPayment .inputLabel {
width:85%;
}

I think that will do the trick.

6 Dec 2006, 10:23 PM
#7
samad64 avatar

samad64

Totally Zenned

Join Date:
May 2006
Location:
Texas
Posts:
554
Plugin Contributions:
2

Re: Optional Shipping Insurance Module [Support Thread]

jettrue,

thanks for this module. The fix you posted in the post above this one does format the text correctly.. however the checkbox is still to the right side. Could I bother you into helping me move it to the left of the text? :)

6 Jan 2007, 9:40 PM
#8
funtony avatar

funtony

New Zenner

Join Date:
Jun 2005
Location:
Temecula, CA, USA
Posts:
17
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

I love this mod, but the items in my store 'Require Insurance' and I need an insurance module that requires insurance. Is there a way to alter this mod to 'Require Insurance' or is there a mod for Shipping Insurance where you can check to make shipping insurance 'Mandatory'?

Thanks for all of your help in advance!

Tony
When You Wish Magic
http://www.whenyouwishmagic.com/store

24 Jan 2007, 4:02 AM
#9
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Hello,

I have installed this mod, however I have encountered an error during the the checkout process (Step 3 of 3 - Order Confirmation).

It comes up with the following error:

"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"

The insurance cost is inculded in the order total at this stage, however if I click "confirm order", it comes up with the folowing error:

"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"

Anyone have any ideas ?

24 Jan 2007, 7:05 AM
#10
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

That issue is not occuring now - however I don't know if I did anything to fix it.

My apologies to those people who might have that problem in the future, but I don't know why it is suddenly working.

Cheers.

25 Jan 2007, 11:54 AM
#11
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Quote:
Originally Posted by chuby2 [IMG]http://www.zen-cart.com/forum/images/ZCgreen/buttons/viewpost.gif[/IMG]
*Thanks for this add-on !!

Is there a way to format the text and move the checkbox to the left ?

I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.

Please advise*

Hi!

Just add this to your css:
#checkoutPayment .inputLabel {
width:85%;
}

I think that will do the trick.

Hello.

Where exactly in the css file do we put the above code ?

I am also looking to format the text and move the checkbox as currently there are only a couple of words per line, as below:

Click add optional
insurance to your
order. text text
text text text.

Thanks,
Anthony

25 Jan 2007, 11:56 AM
#12
xman888 avatar

xman888

Zen Follower

Join Date:
Jan 2007
Posts:
226
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Hello,

Its OK, I just added it underneath this line:

#checkoutPayment LABEL.radioButtonLabel {
font-weight: bold;
}

and it worked fine.

Cheers.

9 Feb 2007, 5:22 PM
#13
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Optional Shipping Insurance Module [Support Thread]

Funtony:

Is there a way to alter this mod to 'Require Insurance' or is there a mod for Shipping Insurance where you can check to make shipping insurance 'Mandatory'?

For anyone else looking to do this, this answer was provided by the module author:

Open up includes/modules/order_total/ot_insurance.php

Go to line approx. line 214 and change it to this:

'field' => zen_draw_hidden_field('opt_insurance', '1'))));

> 
> That will make your change! Voila!
> 
> Though you'll need a couple of tweaks. You'll notice now that the fieldset box that is supposed to surround your insurance text doesn't enclose the text. So open up includes/templates/YOUR_TEMPLATE_NAME/tpl_checkout_payment_default.php and change around line 101:
> 
> ```
<?php echo $selection[$i]['fields'][$j]['field']; ?>
<br class="clearBoth" />
</fieldset>

(you're just adding the <br class="clearBoth" />)

Then of course you want to open up includes/languages/english/order_total/YOUR_TEMPLATE_NAME/ot_insurance.php and change the text to say something like "Shipping Insurance will be added to your order".

Now, having made it mandatory, the next requirement is to exclude it completely from the Store Pickup option! This would probably take a proficient php coder a matter of minutes...but I'm not, and I'm starting now! :D (So any suggestions are welcome!)

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

22 Feb 2007, 9:31 PM
#14
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

xman888:

Hello,

I have installed this mod, however I have encountered an error during the the checkout process (Step 3 of 3 - Order Confirmation).

It comes up with the following error:

"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"

The insurance cost is inculded in the order total at this stage, however if I click "confirm order", it comes up with the folowing error:

"Warning: Missing argument 2 for zen_add_tax() in /home/xmanhos/public_html/shop/includes/functions/functions_taxes.php on line 94"

Anyone have any ideas ?

Im having this same issue. It seems as tho it is calculating correctly. When a customer needs to be taxed it is adding the tax and the insurance, but not adding to the insurace based on tax cost.. So i believe its working correctly, just need to remove this error from our site..

anyone have a fix for this.. I see that the pervious issue of this kind fixed itself. heh.
Thanks

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

23 Feb 2007, 1:56 PM
#15
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Optional Shipping Insurance Module [Support Thread]

wickedklown:

Im having this same issue. It seems as tho it is calculating correctly. When a customer needs to be taxed it is adding the tax and the insurance, but not adding to the insurace based on tax cost.. So i believe its working correctly, just need to remove this error from our site..

anyone have a fix for this.. I see that the pervious issue of this kind fixed itself. heh.
Thanks

Don't have a fix for it, cause I don't have the same issue.

What version of zen cart are you using?

Go to "Module", the "order total" in your admin, and tell me the sort orders for the order total modules you have installed.

Do you have an out of the ordinary tax setup? Perhaps some items with tax, some items without? Does this occur with every item? Are you taxing the insurance fee?

23 Feb 2007, 4:01 PM
#16
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

jettrue:

Don't have a fix for it, cause I don't have the same issue.

What version of zen cart are you using?

Go to "Module", the "order total" in your admin, and tell me the sort orders for the order total modules you have installed.

Do you have an out of the ordinary tax setup? Perhaps some items with tax, some items without? Does this occur with every item? Are you taxing the insurance fee?

Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 500
Shipping Insurance ot_insurance 600
Shipping ot_shipping 300
Sub-Total ot_subtotal 100
Tax ot_tax 200
Total ot_total 999

that is my layout. no i dont have insurance added to the tax, or anything like that. all my products have a tax setup on them. and it seems to calculate correctly. This occures every time i click on the add insurance to the order.
If i dont add insurance its fine.
Thanks

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

23 Feb 2007, 7:51 PM
#17
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Optional Shipping Insurance Module [Support Thread]

wickedklown:

Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv 500
Shipping Insurance ot_insurance 600
Shipping ot_shipping 300
Sub-Total ot_subtotal 100
Tax ot_tax 200
Total ot_total 999

that is my layout. no i dont have insurance added to the tax, or anything like that. all my products have a tax setup on them. and it seems to calculate correctly. This occures every time i click on the add insurance to the order.
If i dont add insurance its fine.
Thanks

I've been doing some testing, and duplicated your sort order above, with no issues.

What version of zen cart are you using?

Have you tried re-uploading a fresh version of /includes/functions/functions_taxes.php?

23 Feb 2007, 7:58 PM
#18
wickedklown avatar

wickedklown

Zen Follower

Join Date:
Aug 2005
Posts:
370
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

actualy, i just hired someone to fix it. we use 1.3.6 right now, but we have updated all the changes released in 1.3.7

They got it fixed, im unsure what the exact problem was, however it is working.
While working on it, we noticed that the display in IE7 was all squaished to the left hand side of the page.
We also fixed this so that the display is correct on all browsers. Dont know if anyone else was experancing these problems.

Super Orders2
Info at a glance
export email address
encrypted master pass
quick updates
recover carts
order Tracking
Tabbed products lite - admin edition
Hosted with sashbox.net <- best host around...

24 Feb 2007, 1:13 AM
#19
kenaniah avatar

kenaniah

Zen Follower

Join Date:
Jun 2005
Posts:
111
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

This was a tremendous help. Would anyone know how to get the checkbox to show up before the wording?

Thanks!

xman888:

Quote:
Originally Posted by chuby2 [IMG]http://www.zen-cart.com/forum/images/ZCgreen/buttons/viewpost.gif[/IMG]
*Thanks for this add-on !!

Is there a way to format the text and move the checkbox to the left ?

I added a couple of lines to the default text, and it comes out about a third of the box wide, with several rows.

Please advise*

Hi!

Just add this to your css:
#checkoutPayment .inputLabel {
width:85%;
}

I think that will do the trick.

Hello.

Where exactly in the css file do we put the above code ?

I am also looking to format the text and move the checkbox as currently there are only a couple of words per line, as below:

Click add optional
insurance to your
order. text text
text text text.

Thanks,
Anthony

28 Feb 2007, 11:11 PM
#20
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Optional Shipping Insurance Module [Support Thread]

kenaniah:

This was a tremendous help. Would anyone know how to get the checkbox to show up before the wording?

Thanks!

Hi there,

OK, to do this, open up includes/templates/YOUR_TEMPLATE/templates/tpl_checkout_payment_default.

Around line 91, you'll see this section:

<fieldset>
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
</fieldset>

Replace it with this:

<fieldset>
<legend><?php echo $selection[$i]['module']; ?></legend>
<?php echo $selection[$i]['redeem_instructions']; ?>
<div class="gvBal larger"><?php echo $selection[$i]['checkbox']; ?></div>
<?php echo $selection[$i]['fields'][$j]['field']; ?>
<label class="inputLabel"<?php echo ($selection[$i]['fields'][$j]['tag']) ? ' for="'.$selection[$i]['fields'][$j]['tag'].'"': ''; ?>><?php echo $selection[$i]['fields'][$j]['title']; ?></label>
<div class="clearBoth"></div>
</fieldset>