EPierre 0 Newbie Poster

Hello all,
This is my first post.
May be my problem is a newby one, but... I try to solve it since 4 full days. So I ask for some help.
I picked up an order form from www.dyn-web.com. It works fine and make the job I want except I must to change the shipping policy from this
Original shipping options:

// shipping options: radio button text, value
//(quantity ordered not taken into account in this form)
$ship_options = array (
array ("Pick up locally", "0"),
array ("UPS Ground", 5),
array ("Fed Ex Overnight", 20)
);

to that:

Contry 1st item 2nd items +
Canada 6.50$ 6.50$ + 2.50$/additional item
USA 8.50$ 8.50$ + 3.50$/additional item
Others countries 9.75$ 9.75$ + 4.50/additional item
and for more than 9 item, call for prices.

Here is what I do, but it does not work

// shipping options
$qty = "quantity";
$qtyship = "commande";
$qtyship = "$qty-1";
$ship_options = array (
array ("Le Canada:", 6.50+$qtyship*2.50),
array ("Les U.S.A.:", 8.50+$qtyship*3.50),
array ("Autres pays:", 9.50+$qtyship*4.50)
);

The result is an amount that stay the same wathever the # of items.
Is there someone to help me ?

EPierre

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.