Jump to content
Latest News: (loading..)
Sign in to follow this  
olsonsp4c

USPS Shipping Insurance

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

Share this post


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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

*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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

 

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

 

Has this been resolved yet?

 

where should i look?

 

Any help would be great!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×