Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 2 votes

USPS Shipping Insurance


112 replies to this topic

#101 olsonsp4c

  • Community Member
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Canon City, CO

Posted 12 November 2008, 16:36

View Postjhande, on Nov 12 2008, 04:04 AM, said:

Thank you Scott! ;)

I'll play around with the other edits until I except defeat LOL.

one hint - I looked through the code of includes/modules/shipping/usps.php

I don't think that the other edits are handled there - I looked in includes/classes/shipping.php and couldn't find it either - it's got to be handles elsewhere - also, the default coding makes both of the checkout_confirmation page display the SAME variable, so you'd have to find where the variable is set to begin with (in a function perhaps) and find a way to create a 2nd variable for the U.S.P.S. = total part while placing a "\n" in the existing variable to create the line break. When I looked at the usps.php file, I thought that:

			  if ($time != '') $transittime[$service] = ': ' . $time . '';

You could try modifying this line:

		$shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)';

to:

		$shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)' . "\n";

OR

		  $this->quotes = array('id' => $this->code,
								'module' => $this->title . $shiptitle);

to:

		  $this->quotes = array('id' => $this->code,
								'module' => $this->title . $shiptitle . "\n");

Scott

#102 jhande

  • Community Member
  • 2,050 posts
  • Real Name:Jim Hande
  • Gender:Male
  • Location:White Mountains, NH USA

Posted 13 November 2008, 18:41

View Postolsonsp4c, on Nov 12 2008, 11:36 AM, said:

one hint - I looked through the code of includes/modules/shipping/usps.php

I don't think that the other edits are handled there - I looked in includes/classes/shipping.php and couldn't find it either - it's got to be handles elsewhere - also, the default coding makes both of the checkout_confirmation page display the SAME variable, so you'd have to find where the variable is set to begin with (in a function perhaps) and find a way to create a 2nd variable for the U.S.P.S. = total part while placing a "\n" in the existing variable to create the line break. When I looked at the usps.php file, I thought that:

			  if ($time != '') $transittime[$service] = ': ' . $time . '';

You could try modifying this line:

		$shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)';

to:

		$shiptitle = ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)' . "\n";

OR

		  $this->quotes = array('id' => $this->code,
								'module' => $this->title . $shiptitle);

to:

		  $this->quotes = array('id' => $this->code,
								'module' => $this->title . $shiptitle . "\n");

Scott

Thank you Scott for your persistant efforts to help me.

I will make a note of those edits and see if I can't find where to make a 2nd variable for the USPS = Total. ;)

With all the playing around I've been doing editing osC, I'm starting to pick things up regarding PHP LOL.

Thanks again Scott I truely appreciate it. :)
- :: Jim :: -
- My Toolbox ~ Adobe Web Bundle & WinMerge | Install ~ osCommerce v2.2 MS2 060817 -
- Not 4 Hire ~ Please DO NOT PM me for help. I really do not have a clue what I am doing! -
- Working on a new 2.3.1 install -

#103 olsonsp4c

  • Community Member
  • 548 posts
  • Real Name:Scott Olson
  • Gender:Male
  • Location:Canon City, CO

Posted 18 November 2008, 00:17

USPS Shipping Insurance 1.51 is out: http://addons.oscommerce.com/info/5782

Changes since v1.4
------------------
* Fixed the issue: if customer goes back to the checkout shipping page from checkout payment to change their
USPS shipping insurance choice, the change is not registered. Now, changes are registered properly.
* Added the edits suggested by draculakos which adds rollover color and a function that enables you to click anywhere
inside infobox in order to toggle the USPS shipping insurance checkbox. (one edit was missing that I have corrected from his post on the forum)

Scott

Edited by olsonsp4c, 18 November 2008, 00:18.


#104 helpme:(

  • Community Member
  • 68 posts
  • Real Name:J.
  • Gender:Male

Posted 25 January 2009, 23:53

Installed the contribution and am having a problem during checkout. The subtotal is not calculated correctly.


It looks like this:

1X item $114.40

Sub-Total: $109.40
Discount Coupon applied: -$5.00
Shipping: $0.00
USPS Shipping Insurance: $2.60
Total: $112.00



When is should say:

1X item $114.40

Sub-Total: $114.40
Discount Coupon applied: -$5.00
Shipping: $0.00
USPS Shipping Insurance: $2.60
Total: $112.00


The discount it being subtracted from the subtotal, which I prefer it not to. So if anyone has any suggestions I would appreciate it.

Thanks.

#105 Dennisra

  • Community Member
  • 507 posts
  • Real Name:Joseph D. Jefferson
  • Gender:Male

Posted 12 March 2009, 22:11

This is what the actual order is:
Sub-Total: $69.75
United States Postal Service (1 x 0.3lbs) (0lbs, 5oz) (First Class Mail: Estimated 1 - 5 Days): $1.85
USPS Shipping Insurance: $2.15
Total: $73.75

This is what it looks like in the PayPal payment notification email:
Subtotal $69.75 USD
Shipping and handling $1.85 USD
Total $73.75 USD
Payment $73.75 USD

Why isn't the USPS Shipping Insurance: $2.15 showing up?

#106 mondofood

  • Community Member
  • 27 posts
  • Real Name:Michael
  • Gender:Male

Posted 16 March 2009, 19:42

Howdy,

I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself.


I tried removing the mouseover effect but I still have the issue.

Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you.

#107 mondofood

  • Community Member
  • 27 posts
  • Real Name:Michael
  • Gender:Male

Posted 06 April 2009, 22:14

*bump*

View Postmondofood, on Mar 16 2009, 08:42 PM, said:

Howdy,

I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself.


I tried removing the mouseover effect but I still have the issue.

Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you.


#108 tylerd213

  • Community Member
  • 4 posts
  • Real Name:Tyler

Posted 21 May 2009, 23:03

Im having this same problem. Any suggestions?

View Postmondofood, on Mar 16 2009, 08:42 PM, said:

Howdy,

I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself.


I tried removing the mouseover effect but I still have the issue.

Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you.


#109 mdlemmer

  • Community Member
  • 5 posts
  • Real Name:mark

Posted 26 November 2009, 00:58

I'm kinda new to oscommerce i installed this addon all went well admin side works fine but it doesnt show during check out.
rechecked install followed all steps still doesnt show on checkout
any help would be great

#110 mdlemmer

  • Community Member
  • 5 posts
  • Real Name:mark

Posted 28 November 2009, 18:16

View Postmdlemmer, on 26 November 2009, 00:58, said:

I'm kinda new to oscommerce i installed this addon all went well admin side works fine but it doesnt show during check out.
rechecked install followed all steps still doesnt show on checkout
any help would be great
never mind found out it it was because one file was heavily customized all works great now

#111 alinajoseph

  • Community Member
  • 1 posts
  • Real Name:alina

Posted 28 December 2009, 12:28

hi to all...
thanks for the information...
now i have got some idea...


health insurance tx

#112 kalkal

  • Community Member
  • 92 posts
  • Real Name:Kurt

Posted 02 February 2011, 00:25

View Postmondofood, on 16 March 2009, 19:42, said:

Howdy,

I have an issue where the only way to check the checkbox to add insurance is to hit the box around the checkbox, and not the checkbox itself.


I tried removing the mouseover effect but I still have the issue.

Anyone know how I can make the checkbox actually clickable instead of the box around the checkbox? Thank you.

BUMP**********************

Has this been resolved yet?

where should i look?

Any help would be great!

#113 broadstreetbully

  • Community Member
  • 69 posts
  • Real Name:jason

Posted 07 February 2012, 06:13

anyone have an updated version of this for 2.3.1???