Jump to content



Photo
* * * * * 2 votes

USPS Shipping Insurance


  • Please log in to reply
112 replies to this topic

#81   Op999

Op999
  • Members
  • 48 posts
  • Real Name:Omar Perez

Posted 30 July 2008 - 12:19

So far it's been working as planned, although does anyone know if I can make insurance required, and not allow a customer to uncheck the box at the checkout stage?

#82   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 30 July 2008 - 15:59

So far it's been working as planned, although does anyone know if I can make insurance required, and not allow a customer to uncheck the box at the checkout stage?



You should just install USPS Methods and use the "with insurance" option and choose that you want insurance included in the admin - that way, all price quotes from usps include shipping insurance automatically.

Scott

#83   draculakos

draculakos
  • Members
  • 86 posts
  • Real Name:Christoforos
  • Gender:Male
  • Location:Greece

Posted 01 August 2008 - 16:54

i found a problem in the script but i don't know how to fix it, if somebody can do it, please post the fix..
The problem is that if you have checked insurance and you are on checkout_confirmation.php or checkout_payment.php and you go back to checkout_shipping, the option of the insurance is UNchecked. And it doesn't matter if you leave it unchecked or if you checked it again. In the confirmation page the insurance will be as checked. So if you want to uncheck it you can't...
The fix i think must do this :
First of all, if you go back to the checkout_shipping, the box of the insurance must be checked (if you have checked it before)
And last, if you uncheck it and you proceed to the next pages, the insurance must turn off..

I think you understand what i am telling..
I am Maintaining :
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8

#84   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 02 August 2008 - 20:31

I have confirmed the problem; however, I am leaving out of town for a week or so and won't be able to work on it. Can someone else look into this as this could be frustrating to customers?

Scott

#85   draculakos

draculakos
  • Members
  • 86 posts
  • Real Name:Christoforos
  • Gender:Male
  • Location:Greece

Posted 08 August 2008 - 20:36

I made some cosmetic changes to script. I wanted to seem like all the other option in the checkout. I mean the rollover colour and the fuction that you click everywhere inside the <tr> and the option is getting checked .(radio in all options, at this time checkbox). For everyone who want to do it i am giving the code..

After this :
function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
Add that function :
function insurancecheck(oRow){
if(oRow.getElementsByTagName('input')[0]&&oRow.getElementsByTagName('input')[0].type=='checkbox'){
var c = oRow.getElementsByTagName('input')[0];
c.checked=(c.checked==false)?true:false;	
}
else{alert('There is not any checkbox on that <tr>')}
}
And then find this :
<tr>
				<td class="main" align="right" valign="middle"><input type="checkbox" name="choose_insurance" value="1" ></td>
				<td class="main" align="left" valign="middle"><? echo TEXT_USPSSHIPPING_INSURANCE_QUOTE; ?></td>
				<td class="main" align="center"><?php echo TEXT_USPSSHIPPING_INSURANCE_DISCLAIMER2; ?></td>
And change it to this :
<tr class="moduleRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" onClick="insurancecheck(this)">
				<td class="main" align="right" valign="middle"><input type="checkbox" name="choose_insurance" value="1" ></td>
				<td class="main" align="left" valign="middle"><? echo TEXT_USPSSHIPPING_INSURANCE_QUOTE; ?></td>
				<td class="main" align="center"><?php echo TEXT_USPSSHIPPING_INSURANCE_DISCLAIMER2; ?></td>
To the contibuter : I think it's a good idea to add it in the next version.. Also if you have any news for the bug, please post it!
I am Maintaining :
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8

#86   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 09 August 2008 - 20:55

Thanks! I like the addition and will integrate it. I am back and will make some time this week to work on the back/forth checked/unchecked value continuing to be retained issue mentioned above, though I'm not an expert at those kind of issues and could use help.

Edited by olsonsp4c, 09 August 2008 - 20:56.


#87   draculakos

draculakos
  • Members
  • 86 posts
  • Real Name:Christoforos
  • Gender:Male
  • Location:Greece

Posted 10 August 2008 - 00:24

thank you:) if you have any good news for the back problem, please inform us /smile.gif' class='bbc_emoticon' alt=':)' />
I am Maintaining :
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8

#88   draculakos

draculakos
  • Members
  • 86 posts
  • Real Name:Christoforos
  • Gender:Male
  • Location:Greece

Posted 12 August 2008 - 05:46

NOTICE : I am using this very good script not as USPS Insuranse, but as gift wrapping option.. I made to it some very small changes, and i am using it as an option for giftwrapping the items of my customers /smile.gif' class='bbc_emoticon' alt=':)' /> I m telling this just to give an idea to other people who may need this thing, because there isn't any script for giftwrapping.. (only one very old, bad made, junk code!)
I am Maintaining :
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8

#89   marketedsites

marketedsites
  • Members
  • 51 posts
  • Real Name:Joe
  • Location:Miami

Posted 04 October 2008 - 07:29

Thanks! I like the addition and will integrate it. I am back and will make some time this week to work on the back/forth checked/unchecked value continuing to be retained issue mentioned above, though I'm not an expert at those kind of issues and could use help.


Any luck on the back/forth checked/unchecked value issue yet?

#90   draculakos

draculakos
  • Members
  • 86 posts
  • Real Name:Christoforos
  • Gender:Male
  • Location:Greece

Posted 18 October 2008 - 16:44

not any news from the creator yet /sad.gif' class='bbc_emoticon' alt=':(' />
I am Maintaining :
Product_Short_Description (i added it on specials.php and in shopping_cart.php)
City Shipping Rates With Admin (fixed the error that was giving wrong total shipping charges)
I had Created :
UTF bug fix on standard reviews system (admin & block)
Corrupted character on mysql with utf-8

#91   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 22 October 2008 - 07:17

sorry guys, i've been otherwise occupied, I hope to get to it soon...

Scott

#92   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 25 October 2008 - 19:52

Hi Scott,

Sorry if this is the wrong thread to ask this, but I don't know where else to ask for help. /blush.gif' class='bbc_emoticon' alt=':blush:' />

What I am looking to do:
  • Add (manditory) insurance to USPS domestic shipping. I do NOT want to give the customer the choice.
  • Show USPS transit times in checkout.
  • Be able to update insurance rates from Admin when USPS changes rates.
  • I do not charge tax.
Here's my problems:


  • I am using USPS Methods 2.9.2 Upper Case Fix2
  • Although ticked in Admin Panel, transit times do not show (weight does).
  • I am using PayPal IPN v2.3.3 (having insurance combined with shipping is fine).
Looking at my options, I'm guessing USPS Methods v3.0 would be my closest/best choice.
The only couple of issues that I am concerned with:


  • I have never been able to display transit times. Will that be an issue that might carry over with this contribution although it states it was added?
  • It sounds like it is giving the option of adding insurance to the customer - "Added the optional shipping insurance order totals module (checkbox)". Can that feature be left out so that insurance is automatically calculated in to the shipping cost? Something showing on the checkout page something like -
I really would appreciate your opinion and ideas on this.
TIA /wink.gif' class='bbc_emoticon' alt=';)' />
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#93   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 28 October 2008 - 05:50

Hi Scott,

Sorry if this is the wrong thread to ask this, but I don't know where else to ask for help. /blush.gif' class='bbc_emoticon' alt=':blush:' />

What I am looking to do:

  • Add (manditory) insurance to USPS domestic shipping. I do NOT want to give the customer the choice.
  • Show USPS transit times in checkout.
  • Be able to update insurance rates from Admin when USPS changes rates.
  • I do not charge tax.
Here's my problems:


  • I am using USPS Methods 2.9.2 Upper Case Fix2
  • Although ticked in Admin Panel, transit times do not show (weight does).
  • I am using PayPal IPN v2.3.3 (having insurance combined with shipping is fine).
Looking at my options, I'm guessing USPS Methods v3.0 would be my closest/best choice.
The only couple of issues that I am concerned with:


  • I have never been able to display transit times. Will that be an issue that might carry over with this contribution although it states it was added?
  • It sounds like it is giving the option of adding insurance to the customer - "Added the optional shipping insurance order totals module (checkbox)". Can that feature be left out so that insurance is automatically calculated in to the shipping cost? Something showing on the checkout page something like -
I really would appreciate your opinion and ideas on this.
TIA /wink.gif' class='bbc_emoticon' alt=';)' />


My opinion is to use usps methods 3.0 - i still use it on my site - you can update the domestic and international insurance rates with this addon (I wrote it, so I think i'm remembering correctly) - you can choose to include insurance rates as mandatory for customers - estimated shipping times show properly on my site currently. make sure you remove and delete the stock osC usps module before installing. To be safe, remove and delete usps 2.9.2 as well and go into your mysql database and ensure it deleted the usps fields in the configuration table manually (open the configuration table and search for USPS).

Scott

#94   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 28 October 2008 - 15:07

Thank you Scott! /wink.gif' class='bbc_emoticon' alt=';)' />

I believe the database should be fine. I just compared the SQL updates of the v2.9.2 by tarheit and your v3.0, they are identical.

Oh, oh... just installed the contribution and double checked myself.

In admin panel, when I click on Edit (for USPS) I receive this message along the top:

Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/handesho/public_html/catalog/admin/modules.php(216) : eval()'d code on line 1

Also although I selected all the options; I lost my handling fee and insurance does not get added. /sad.gif' class='bbc_emoticon' alt=':(' />

Any ideas what to look for?
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#95   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 28 October 2008 - 15:53

Thank you Scott! /wink.gif' class='bbc_emoticon' alt=';)' />

I believe the database should be fine. I just compared the SQL updates of the v2.9.2 by tarheit and your v3.0, they are identical.

Oh, oh... just installed the contribution and double checked myself.

In admin panel, when I click on Edit (for USPS) I receive this message along the top:

Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/handesho/public_html/catalog/admin/modules.php(216) : eval()'d code on line 1

Also although I selected all the options; I lost my handling fee and insurance does not get added. /sad.gif' class='bbc_emoticon' alt=':(' />

Any ideas what to look for?


Did you try the troubleshooting tip 1?

Scott

#96   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 29 October 2008 - 21:14

Did you try the troubleshooting tip 1?

Scott


/huh.gif' class='bbc_emoticon' alt=':huh:' /> /unsure.gif' class='bbc_emoticon' alt=':unsure:' />

Thank you Scott... my bad! /blush.gif' class='bbc_emoticon' alt=':blush:' />

That fixed my problem. /smile.gif' class='bbc_emoticon' alt=':)' />

A word of warning...

When you get to be my age, do NOT pull all-nighters. /wacko.gif' class='bbc_emoticon' alt=':wacko:' />
Also remember to write down your USPS username before de-activating the module. /sad.gif' class='bbc_emoticon' alt=':(' />

Thanks again Scott for both the contribution and your help. /wink.gif' class='bbc_emoticon' alt=';)' />

And thanks to the USPS for assigning me a new username\password so quick! /rolleyes.gif' class='bbc_emoticon' alt=':rolleyes:' />
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#97   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 29 October 2008 - 21:23

/huh.gif' class='bbc_emoticon' alt=':huh:' /> /unsure.gif' class='bbc_emoticon' alt=':unsure:' />

Thank you Scott... my bad! /blush.gif' class='bbc_emoticon' alt=':blush:' />

That fixed my problem. /smile.gif' class='bbc_emoticon' alt=':)' />

A word of warning...

When you get to be my age, do NOT pull all-nighters. /wacko.gif' class='bbc_emoticon' alt=':wacko:' />
Also remember to write down your USPS username before de-activating the module. /sad.gif' class='bbc_emoticon' alt=':(' />

Thanks again Scott for both the contribution and your help. /wink.gif' class='bbc_emoticon' alt=';)' />

And thanks to the USPS for assigning me a new username\password so quick! /rolleyes.gif' class='bbc_emoticon' alt=':rolleyes:' />


You're welcome!

#98   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 09 November 2008 - 20:09

Hey Scott,

Sorry but I'm back to rattle your brain a little. I tried posting this elsewhere but got no replies...

I would like to rearrange how some text is displayed on the checkout_confirmation page.
Specifically:
Shipping Method (Edit)
United States Postal Service (1 x 2.25lbs) (Parcel Post:
Estimated 2 - 9 Days)

To this:
Shipping Method (Edit)
U.S.P.S. (1 x 2.25lbs)
(Parcel Post: Est. 2 - 9 Days)

And this:

United States Postal Service (1 x 2.25lbs) (Parcel Post: Estimated 2 - 9 Days): $10.41
Total: $30.91


To this:

U.S.P.S.: $10.41
Total: $30.91



I found this - $time = 'Estimated 1 - 2 ' . MODULE_SHIPPING_USPS_TEXT_DAYS; in includes\modules\shipping_usps.php so I think if I change all instances of Estimated to Est. that might work for that edit. But I can't figure out how to add a line break between the shipping weight and the transit time or where to change "United States Postal Service" to "USPS". I'm not even sure if the last part of my edit could be done (next to the price).

Any ideas or helpful hints?

- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

#99   olsonsp4c

olsonsp4c
  • Members
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Colorado Springs, CO

Posted 12 November 2008 - 06:59

Hey Scott,

Sorry but I'm back to rattle your brain a little. I tried posting this elsewhere but got no replies...

I would like to rearrange how some text is displayed on the checkout_confirmation page.
Specifically:
Shipping Method (Edit)
United States Postal Service (1 x 2.25lbs) (Parcel Post:
Estimated 2 - 9 Days)

To this:
Shipping Method (Edit)
U.S.P.S. (1 x 2.25lbs)
(Parcel Post: Est. 2 - 9 Days)

And this:

United States Postal Service (1 x 2.25lbs) (Parcel Post: Estimated 2 - 9 Days): $10.41
Total: $30.91


To this:

U.S.P.S.: $10.41
Total: $30.91



I found this - $time = 'Estimated 1 - 2 ' . MODULE_SHIPPING_USPS_TEXT_DAYS; in includes\modules\shipping_usps.php so I think if I change all instances of Estimated to Est. that might work for that edit. But I can't figure out how to add a line break between the shipping weight and the transit time or where to change "United States Postal Service" to "USPS". I'm not even sure if the last part of my edit could be done (next to the price).

Any ideas or helpful hints?


I'll take a crack at it...

Changing United States Postal Service to USPS

In catalog/includes/languages/english/modules/shipping/usps.php (in usps methods 3.0 or less)

define('MODULE_SHIPPING_USPS_TEXT_TITLE', 'United States Postal Service');

to this:

define('MODULE_SHIPPING_USPS_TEXT_TITLE', 'U.S.P.S.');

for the rest of it, I'm clueless at this point...

Scott

#100   jhande

jhande
  • Members
  • 2,236 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:Keene, NH USA

Posted 12 November 2008 - 12:04

Thank you Scott! /wink.gif' class='bbc_emoticon' alt=';)' />

I'll play around with the other edits until I except defeat LOL.
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -