[ic] Quick question about shipping

Mike Heins mikeh@minivend.com
Thu, 29 Mar 2001 11:19:22 -0500


Quoting Thomas N. Stefanidis (thomas@prometheas.gr):
> Hello,
> i have set the shipping method(and it works fine) but don't know how to
> do the last shipping method :
> 
> from 100 till 120 cost=220$
> .....
> from 180 till 200 cost=300$
> i can't do that --> "after 200 kilogram  add  15$ for every 20 kilogram
> in the last price (300)
> 
> so if the weight will be  220 the cost wil be 315,
> if it's 240 it will be 330.

What is wrong with (replace | with TAB):

MODE|Some shipping mode|200|99999|f my $add = int ((@@TOTAL@@ - 200) / 20); 300 + $add * 15;

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

Friends don't let friends use Outlook. -- Bob Blaylock