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-09-2002 22:33:31

keyman
Member
From: Pacific Grove, California
Registered: 08-26-2003
Posts: 45
Website

any ideas SHIPPING & HANDLING

I tryed to write a script to work with:

The Continental USA SHIPPING & HANDLING
Orders Up to $25 add $4.00
Orders $25.01 to $99.99 add $6.00
Orders Over $100.00 Free shipping

International SHIPPING & HANDLING
Orders Up to $25 add $10
Orders $25.01 to $99.99 add $15
Orders Over $100.00 add $20

Anybody have any ideas or a script that will work ?

Offline

 

#2 09-10-2002 08:29:33

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

Re: any ideas SHIPPING & HANDLING

Yes, base your code on one of the stepped methods, but place an if statement in there that reads:

if ($fd_trackitem_shipcountry eq "$name_us") {

#########
######### US Shipping Here
#########

} else {

#########
######### Non-US Shipping Here
#########

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

To determine whether you've got a US or Non-US customer.  Add a couple of different options for each pricing level and create a few more radio buttons at the bottom.  If this is beyond you, ec@kryptronic.com can write something for you for a small tech support charge.


Nick Hendler

Offline

 

#3 09-11-2002 11:42:00

dcorwin
Member
Registered: 09-08-2002
Posts: 23

Re: any ideas SHIPPING & HANDLING

What's the non-us equivalent to the following:

if ($fd_trackitem_shipcountry eq "$name_us")

I want to add somehting like this to the custom shipping based on total order cost:

if ($fd_trackitem_shipcountry eq "$name_nonus"){
$ship_total = $ship_total + "2.00";
}

Does that look like correct syntax?

Thanks

Offline

 

#4 09-11-2002 15:18:28

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

Re: any ideas SHIPPING & HANDLING

That would be:

if ($fd_trackitem_shipcountry ne "$name_us") {

Equal to is 'eq'
Not equal to is 'ne'


Nick Hendler

Offline

 

#5 06-04-2003 14:13:39

Guest
Guest

Re: any ideas SHIPPING & HANDLING

Thanks it works....

 

Board footer