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 09-11-2008 17:20:18

jimbo
Member
Registered: 11-15-2004
Posts: 56

Free shipping on FedEx ground only

I am currently using Real time rate shipping and calculation on total item weight.
For orders in USA I have FedEx Ground, Express Saver (3days), FedEx 2 days and FedEx overnight option
I want to make just the ground shipments for free, no dollar minimum.
I want all other shipping method still available during check out.
No changes should be made for international orders.
I am so afraid to make a mistake on this cuz the site is live.
Can someone PLEASE help me?

Offline

 

#2 09-11-2008 18:10:53

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Free shipping on FedEx ground only

There is no simple setting to do that within the basic CCP5.1 framework - it's going to require code changes.  There are some mods for this sort of thing on the forum... I got lots of hits on a search and you might find what you need.  However, those are non-guaranteed user-supplied solutions and if you're not comfortable working on a live site, you might be best off looking for a professional solution.  I believe ATS has a mod available that should take care of this for you.  You can read about it .  If that won't do what you need, you should contact Stephen at cartmod.com for a quote on a bespoke mod.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#3 09-11-2008 19:13:21

jimbo
Member
Registered: 11-15-2004
Posts: 56

Re: Free shipping on FedEx ground only

thank you for your reply, I searched the entire 5.1 forum and this is the best I found but it is only available in UPS ground.

https://forum.kryptronic.com/viewtopic.php?id=404

I also have ATS mod installed but it has never worked and Mark is not there to back it up anymore.

Offline

 

#4 09-11-2008 20:23:05

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Free shipping on FedEx ground only

I know Mark has stopped active support, but I think he still has someone there who can help (Pete maybe?).  If that fails, I would suggest you contact Stephen at cartmod.com.  He's quite capable and should be able to either fix your ATS mod or write one for you.


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#5 09-12-2008 13:31:02

theblade24
Member
From: Tampa, Florida
Registered: 11-19-2003
Posts: 384
Website

Re: Free shipping on FedEx ground only

In ste_ship.pl

find

Code:

#######################################################################
# Ste Ship Rate FEDEX Proc                                            #
#######################################################################

sub ste_ship_rate_fedex_proc

and in that routine

find

Code:

#########
######### If the response is a success, we parse the output
######### as % delimited data and return the service name and price.
#########

if ($response->is_success) {

my $reply = $response->content;

$reply =~ s/\n//gs;

my $service_count = "";

$reply =~ s/1133,"(.*?)"/1133,"$1"/gs;

$service_count = "$1";

my $service_countarray = "0";

while ($service_countarray < "$service_count") {

$service_countarray++;

$reply =~ s/1419-$service_countarray,"(.*?)"/1419-$service_countarray,"$1"/gs;

$service_rate = "$1";
$service_rate = sprintf("%.2f",$service_rate);

$reply =~ s/1274-$service_countarray,"(.*?)"/1274-$service_countarray,"$1"/gs;

$service_name = "$1";

if (defined($service_names{$service_name})) {

$service_name = "$service_names{$service_name}";

} else {

$service_name = "";

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

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

$return_status = "ACCEPT";

@services = ($service_name,$service_rate);
push(@return_services,[@services]);

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

} ######### End of while statement.

#########
######### If there was no response, we return an error.
#########

right below    $return_status = "ACCEPT";

insert

Code:

###############Omit Below Here For Free FedEx Ground
if ($service_name eq "FedEx Ground Service" && $tracking_total >= "0.00") {
$service_rate = "0.00";
}
###############Omit Above Here For Free FedEx Ground

So if the order total is equal to or greater than 0.00 (all orders basically) you'll present Fedex Ground with a rate of $0.00.

Someday if you want any order over $100 to have free Fedex Ground then change the tracking_total value to 99.99  and so on for any level you want.

Works like a charm!!!


CCP 5.1
CCP 5.1
CCP 5.1

Offline

 

#6 09-12-2008 14:41:26

jimbo
Member
Registered: 11-15-2004
Posts: 56

Re: Free shipping on FedEx ground only

perfect !! thank you sooo much!!

Offline

 

Board footer