Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS Shipping Insurance


olsonsp4c

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 112
  • Created
  • Last Reply

Top Posters In This Topic

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, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • 2 months later...

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.

Link to comment
Share on other sites

  • 1 month later...

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

*bump*

 

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.

Link to comment
Share on other sites

  • 1 month later...

Im having this same problem. Any suggestions?

 

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.

Link to comment
Share on other sites

  • 6 months later...

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

Link to comment
Share on other sites

  • 5 weeks later...
  • 1 year later...

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!

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...