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.
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
I'm sorry - not the NAME param - the VALUE param. As in:
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.
Offline
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:
USPS Priority Mail
When I choose Priority Mail WITH insurance, I get the following on the invoice:
USPS Priority MailUSPS Priorit
How do I correct this to show the follwing on the invoice when insured is chosen:
USPS Priority Mail - (Insured)
Thanks.
Offline
Come on CCP GODS! I really need your help on this.
Thanks.
Offline
bump
Offline
bump
Offline
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
Thanks you Shawn... works great.
Offline