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.

#1 12-11-2003 19:40:37

jasonw22
Member
Registered: 11-26-2003
Posts: 8

Handling + Realtime Shipping

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

 

#2 12-13-2003 10:27:40

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

Re: Handling + Realtime Shipping

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.


Nick Hendler

Offline

 

#3 02-19-2004 17:28:38

TerryA
Member
From: Sanford, Fl
Registered: 07-14-2003
Posts: 1322
Website

Re: Handling + Realtime Shipping

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

 

#4 02-23-2004 08:26:46

TerryA
Member
From: Sanford, Fl
Registered: 07-14-2003
Posts: 1322
Website

Re: Handling + Realtime Shipping

Bump

Offline

 

#5 02-26-2004 10:13:13

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

Re: Handling + Realtime Shipping

It should work on 5.1.2 just fine.  Take a look under Shipping Settings | Manage Shipping Settings to be sure you have realtime handling charges entered.


Nick Hendler

Offline

 

#6 03-03-2004 15:26:41

TerryA
Member
From: Sanford, Fl
Registered: 07-14-2003
Posts: 1322
Website

Re: Handling + Realtime Shipping

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

 

#7 03-04-2004 09:14:46

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

Re: Handling + Realtime Shipping

The shipping costs quoted already have the handling applied.  There's no additional handling charge added.


Nick Hendler

Offline

 

Board footer