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

Optional Shipping Insurance Module [Support Thread]

Views: 168,604

Results 81 to 100 of 416
4 Jan 2008, 8:20 PM
#81
gothstone avatar

gothstone

Zen Follower

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

Optional Shipping Insurance Module [Support Thread]

The new version (3.10) causes a conflict with the linkpoint API. It sees us as chargeing more than the total, and gives the error "SGS-002301: Charge total must be the sum of subtotal, tax, value added tax, and shipping."
Dr. Byte had given s solution on this page: http://www.zen-cart.com/forum/showthread.php?t=83025&highlight=SGS-002301 that would work for the low order fee module, but it doesn't work for this. Any ideas?

2 + 2 = 5 for extremely large values of 2

Pez Collectors Store •••••••• My Plugins List

4 Jan 2008, 10:19 PM
#82
gothstone avatar

gothstone

Zen Follower

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

Re: Optional Shipping Insurance Module [Support Thread]

Dr. Byte gave me the fix. If you use the new insurance module with link point, replace your includes/modules/payment/linkpint_api.php with this:

2 + 2 = 5 for extremely large values of 2

Pez Collectors Store •••••••• My Plugins List

11 Jan 2008, 12:43 AM
#83
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

I'm using the USPS API to determine shipping rates, and it's not working with that. I don't get an option to choose insurance in step 1, and in step 2, it adds insurance at $0.00 to the summary. Am I missing something?

If I put an amount in for Required Insurance Amount, I get the checkbox but it says $0 still.

13 Jan 2008, 8:08 AM
#84
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

jettrue:

Here is the new includes/modules/order_total/ot_insurance.php

Please test well before using on a live site.

This is working fine for me in 1.3.8. and also on another 1.3.8 cart I was working on. I do not use Linkpoint, but I am using the USPS API and it is working correctly. Much thanks!!!!

13 Jan 2008, 3:26 PM
#85
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]

Scarlet:

I'm using the USPS API to determine shipping rates, and it's not working with that. I don't get an option to choose insurance in step 1, and in step 2, it adds insurance at $0.00 to the summary. Am I missing something?

If I put an amount in for Required Insurance Amount, I get the checkbox but it says $0 still.

Please post your settings for the insurance, perhaps it is an issue there.

13 Jan 2008, 3:32 PM
#86
scarlet avatar

scarlet

Zen Follower

Join Date:
Jun 2004
Posts:
127
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Here is my config. I had to put require shipping on orders over $25,000 to make the checkbox show up, and I had to change it to a percentage to get a fee over $0. You can see it on https://www.koimillworks.com (in development). I changed it back to table rates.

Insurance 

Enable Insurance Module
true

Offer Shipping Insurance?
true

Sort Order
500

Use Table Rates?
true

Alternate Insurance Type
amount

Insurance Percentage
1.6

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
$25,000.00

Insurance Zone 1
--none--

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
 
14 Jan 2008, 3:59 AM
#87
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Since mine seems to be working correctly, I thought it might help (maybe?) to post my settings:

Enable Insurance Module
true

Offer Shipping Insurance?
true

Sort Order
240

Use USPS Rates?
true

Alternate Insurance Type
amount

Insurance Percentage


Insurance Rate
$0.00

Increment Amount
$0.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
15 Jan 2008, 3:12 AM
#88
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]

Scarlet:

Here is my config. I had to put require shipping on orders over $25,000 to make the checkbox show up, and I had to change it to a percentage to get a fee over $0. You can see it on https://www.koimillworks.com (in development). I changed it back to table rates.
You have to create zones in your admin, and then choose the "Zone" for the table rate you're using in the drop down menu.

17 Jan 2008, 4:07 AM
#89
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,567
Plugin Contributions:
58

Re: Optional Shipping Insurance Module [Support Thread]

If you want to use it for all zones, run the optional international_zone.sql which includes all of the zones in the world (this file may require updating from time to time). Then set your zone in the configuration to this new zone called "International"

24 Jan 2008, 3:33 AM
#90
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Hi, this module is wonderful! I downloaded and installed it easily, but I cannot figure out how to make insurance OPTIONAL, along with a few other things.

  1. I want the feature available, but not required, on all orders (those with free shipping & those where I charge shipping).

  2. I also want the customer to be able to select whether or not they add insurance

  3. I want to use the rates I designate for insurance

I've read through this entire thread and I see people talking about a check box appearing for the insurance option. Mine is automatically adding in to the customers total. Here's my site if it helps: https://www.kings-kreations.com/zen

Since you can't see the checkout without logging in, I'm attaching a link to a screen shot of step 2 of the checkout process.

http://i80.photobucket.com/albums/j173/ajking5464/kingskreations/KK_checkout_screen.jpg

Any help you can offer would be greatly appreciated!

25 Jan 2008, 5:45 AM
#91
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

I tried this coding (below) as indicated and it moved the check box from the right to the left, but my text is below the check box. The text is also appearing in a column about 1/3 the width of the shipping insurance box. What else can I try to fix this?

jettrue:

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> ```
25 Jan 2008, 11:15 PM
#92
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]

gizmo_girl:

I tried this coding (below) as indicated and it moved the check box from the right to the left, but my text is below the check box. The text is also appearing in a column about 1/3 the width of the shipping insurance box. What else can I try to fix this?

It looks like you got the checkbox working.

Try adding this to your css:

html>/**/body input[type=checkbox], html>/**/body input[type=radio] {
	float:left;
	clear:both;
	}
	
html>/**/body .checkboxLabel, html>/**/body .radioButtonLabel {
	margin:0 .2em .5em 0;
	float:left;
	}

and then replace:

LABEL.inputLabel {
	width:9em;
	float:left;
	} 

with

LABEL.inputLabel {
	width:85%;
	float:left;
	margin:0.3em 0;
	} 
26 Jan 2008, 1:44 AM
#93
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Beautiful! THANK YOU!!! :-)

Is there a way to add some bold text in that line? I like it to say something like:
Click here for optional shipping insurance.
We strongly recommend purchasing insurance on breakable items.

Also wondering how you would do line breaks, so it appears just like above. Sorry to ask so many questions, but obviously I'm quite new at this.

Thanks again for the fix, it looks great now! :-))

26 Jan 2008, 2:33 AM
#94
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

gizmo_girl:

Beautiful! THANK YOU!!! :-)

Is there a way to add some bold text in that line? I like it to say something like:
Click here for optional shipping insurance.
We strongly recommend purchasing insurance on breakable items.

Also wondering how you would do line breaks, so it appears just like above. Sorry to ask so many questions, but obviously I'm quite new at this.

Thanks again for the fix, it looks great now! :-))

This might be the wrong way (???), but I added text to mine like this...

In includes/languages/english/modules/order_total/ot_insurance.php

define('MODULE_ORDER_TOTAL_INSURANCE_TEXT_ENTER_CODE', '<b>We strongly recommend purchasing insurance on breakable items</b><br><br>Click here to add optional insurance to your order:');

Maybe there's a better way, but this works fine for me!

26 Jan 2008, 3:28 AM
#95
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Thanks for the wonderfully easy fix! I wasn't sure if HTML tags would work the same in these files. Thank you so much!

26 Jan 2008, 3:48 AM
#96
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

gizmo_girl:

Thanks for the wonderfully easy fix! I wasn't sure if HTML tags would work the same in these files. Thank you so much!

No problem! Yes, you can even use the <img> tags in case you wanted something more glamorous. :smile:

31 Jan 2008, 2:13 AM
#97
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Old minor issue but looks like it can be done in this version:

Can I use the USPS table rates for Non-U.S. zone and rates I plug in for UPS U.S. zone deliveries?

I get it to work with US and UPS but how can I get the USPS table rates to take for the other zone only?

31 Jan 2008, 2:22 AM
#98
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

Third in a row answering my own stuff, takes asking the question though!

Didn't realize that Priority International, in my case, has pretty fixed insurance rates for most Countries (versus rates based on each Country) so I just put those in the zone indicator.

Thank me for my help!

31 Jan 2008, 4:28 AM
#99
gizmo_girl avatar

gizmo_girl

Zen Follower

Join Date:
Nov 2007
Location:
Texas
Posts:
286
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

craftzombie:

No problem! Yes, you can even use the <img> tags in case you wanted something more glamorous. :smile:

Excellent...so I could add an image - something like a unique shipping insurance logo or something, right? :blink:

31 Jan 2008, 5:16 AM
#100
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Optional Shipping Insurance Module [Support Thread]

gizmo_girl:

Excellent...so I could add an image - something like a unique shipping insurance logo or something, right? :blink:

Yes, here is an example:

Say for instance you have the Featured Products on your main page, but you want to use an image instead of just text for the heading. In includes/languages/your_template/english.php, you would find the Featured Products heading, which looks like this:

define('TABLE_HEADING_FEATURED_PRODUCTS','Featured Products');

and you would replace the words Featured Products with your image, like this:

define('TABLE_HEADING_FEATURED_PRODUCTS','<img src="includes/templates/your_template/images/featured.gif" alt="Featured Products">');

You just replace the words with the image tags. Make sure you leave all of the quotation marks, apostrophes, etc. the way they were. So just highlight Featured Products with your mouse and replace that with your tags.

Now in the case of a custom shipping insurance image...

Say you want to add an image that says "Need Insurance?"

you would open up includes/languages/english/modules/order_total/ot_insurance.php and add your image there. This is what mine looks like when I added said image with the other info I have there:

define('MODULE_ORDER_TOTAL_INSURANCE_TEXT_ENTER_CODE', '<img src="includes/templates/my_template/images/insurance.gif"><br><br>We use the standard USPS insurance rates. <a href="http://www.mysite.com/shop/index.php?main_page=insurance_rates">see rates</a><br><br>Click here to add optional insurance to your order:');

and this is what it looks like when you are checking out:

I tend to over explain things and annoy people, but hopefully it wasn't too confusing.

and also.. this is the way I do things. I'm not sure if the Zen gods around here consider that an incorrect way or not. I just try things and if they work for me, I jump up and down like an idiot and my husband looks at me like I'm weird (which happens often). :wink: