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.
For handling, I want to add $4 to each order, and $1 to each item, plus the realtime shipping charge that was chosen for the product. (UPS, FedEx, etc.)
So, for an order with 3 items, and a realtime shipping charge of $15, shipping and handling would be $4 + $1 + $1 + $1 + $15 = $21.
How do I go about this?
Offline
In the file ./cgi-bin/library/modules/ste_chkout.pl look for the routine 'ste_chkout_meth_realtime_proc'. In there, replace:
if ($localint eq "L" && $ship_real_handle_local > "0") { $service_rate = ($service_rate + $ship_real_handle_local); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } elsif ($localint eq "I" && $ship_real_handle_int > "0") { $service_rate = ($service_rate + $ship_real_handle_int); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } ######### End of if statement.
With:
if ($localint eq "L" && $ship_real_handle_local > "0") { $temp_rate = ($item_quantity * 1); $temp_rate = ($temp_rate + 4); $service_rate = ($temp_rate + $service_rate + $ship_real_handle_local); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } elsif ($localint eq "I" && $ship_real_handle_int > "0") { $temp_rate = ($item_quantity * 1); $temp_rate = ($temp_rate + 4); $service_rate = ($temp_rate + $service_rate + $ship_real_handle_int); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } ######### End of if statement.
Offline
webmaster,12/13/2003 10:27:40 AM wrote:
In the file ./cgi-bin/library/modules/ste_chkout.pl look for the routine 'ste_chkout_meth_realtime_proc'. In there, replace:
Code:
if ($localint eq "L" && $ship_real_handle_local > "0") { $service_rate = ($service_rate + $ship_real_handle_local); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } elsif ($localint eq "I" && $ship_real_handle_int > "0") { $service_rate = ($service_rate + $ship_real_handle_int); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } ######### End of if statement.With:
Code:
if ($localint eq "L" && $ship_real_handle_local > "0") { $temp_rate = ($item_quantity * 1); $temp_rate = ($temp_rate + 4); $service_rate = ($temp_rate + $service_rate + $ship_real_handle_local); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } elsif ($localint eq "I" && $ship_real_handle_int > "0") { $temp_rate = ($item_quantity * 1); $temp_rate = ($temp_rate + 4); $service_rate = ($temp_rate + $service_rate + $ship_real_handle_int); $service_rate = sprintf("%.2f", $service_rate); $handling_applied = "Y"; } ######### End of if statement.
Does this work on 5.102? I have taken over a project where this mod was made but it isn't working. I double checked by replacing the ste_chkout.pl with an original file and the rates given on shipping stayed the same. We are using UPS Online Tools with this mod. Is there something missing that needs to be added to this mod?
Offline
Bump
Offline
This just isn't working for me. I have the product set to ship realtime via UPS Online Tools. The cart is returning 6 UPS shipping methods as it should. When I go to the next page, the shipping cost remains the same as it was in the previous page. Any ideas?
Offline