Shipping by quantity

Reply

Join Date: Jan 2005
Posts: 10
Reputation: EPierre is an unknown quantity at this point 
Solved Threads: 0
EPierre EPierre is offline Offline
Newbie Poster

Shipping by quantity

 
0
  #1
Jan 24th, 2005
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the HTML and CSS Forum
Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC