Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#26 05-03-2005 09:24:33

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: How Do I Add Usps Insurance To Order?

Inside the NAME parameter in the RADIO field, add the term '(Insured)' for the insured option.


Nick Hendler

Offline

 

#27 05-04-2005 01:14:15

MBM
Member
Registered: 04-08-2005
Posts: 24

Re: How Do I Add Usps Insurance To Order?

What exactly should this look like? This here isn't working:

if ($service_name ne "" && $service_name_display ne "" && $service_rate ne "") {

$service_count++;

if ($checked eq "N") {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid\" VALUE=\"$service_name\:$service_rate\" CHECKED> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

$checked = "Y";

} else {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid\" VALUE=\"$service_name\:$service_rate\"> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

} ######### End of if statement.

if ($tracking_subtotal < 50.01) {
$insurance = 1.30;
} elsif ($tracking_subtotal < 100.01) {
$insurance = 2.20;
} elsif ($tracking_subtotal > int($tracking_subtotal/100) * 100) {
$insurance = int($tracking_subtotal/100) + 2.20;
} elsif ($sub_price = int($tracking_subtotal/100) * 100) {
$insurance = int($tracking_subtotal/100) + 1.20;
};

$service_name_display .= " (Insured)";
$service_rate = ($service_rate + $insurance);
$service_rate = sprintf("%.2f", $service_rate);

if ($checked eq "N") {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid '(Insured)'\" VALUE=\"$service_name\:$service_rate\" CHECKED> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

$checked = "Y";

} else {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid '(Insured)'\" VALUE=\"$service_name\:$service_rate\"> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

} ######### End of if statement.

Offline

 

#28 05-04-2005 09:18:22

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: How Do I Add Usps Insurance To Order?

I'm sorry - not the NAME param - the VALUE param.  As in:

Code:


if ($checked eq "N") {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid\" VALUE=\"$service_name (Insured)\:$service_rate\" CHECKED> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

$checked = "Y";

} else {

$return_value .= "<INPUT TYPE=\"RADIO\" NAME=\"shipinfo-$shipid\" VALUE=\"$service_name (Insured)\:$service_rate\"> <FONT FACE=\"$html_base_font_face\" SIZE=\"$html_base_font_size\" COLOR=\"$html_base_font_color\"> $service_name_display - $currency$service_rate<BR></FONT>\n";

} ######### End of if statement.


Nick Hendler

Offline

 

#29 01-01-2006 17:30:16

Big Dave
Member
Registered: 10-24-2003
Posts: 742

Re: How Do I Add Usps Insurance To Order?

OK, following Nicks last post here i get the following:

When I choose Priority Mail with no insurance, I get the following on the invoice:

Code:

USPS Priority Mail

When I choose Priority Mail WITH insurance, I get the following on the invoice:

Code:

USPS Priority MailUSPS Priorit

How do I correct this to show the follwing on the invoice when insured is chosen:

Code:

USPS Priority Mail - (Insured)

Thanks.

Offline

 

#30 01-03-2006 17:36:46

Big Dave
Member
Registered: 10-24-2003
Posts: 742

Re: How Do I Add Usps Insurance To Order?

Come on CCP GODS! I really need your help on this.

Thanks.

Offline

 

#31 01-05-2006 23:49:10

Big Dave
Member
Registered: 10-24-2003
Posts: 742

Re: How Do I Add Usps Insurance To Order?

bump

Offline

 

#32 01-12-2006 16:09:17

Big Dave 2
Member
Registered: 01-11-2006
Posts: 8

Re: How Do I Add Usps Insurance To Order?

bump

Offline

 

#33 01-12-2006 23:57:02

Shawn
Member
Registered: 09-24-2004
Posts: 216

Re: How Do I Add Usps Insurance To Order?

Hi Dave, I stumbled across this post.  Has this been resolved for you yet?  If you want, you can email me the entire script that you are using and I will see if I can get it working for you and I will reply it back to you. 
-Shawn

Last edited by Shawn (09-16-2006 13:46:01)

Offline

 

#34 01-13-2006 19:56:51

Big Dave 2
Member
Registered: 01-11-2006
Posts: 8

Re: How Do I Add Usps Insurance To Order?

Thanks you Shawn... works great.

Offline

 

Board footer