944,045 Members | Top Members by Rank

Ad:
Jan 24th, 2005
0

Shipping by quantity

Expand Post »
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:
Quote ...
// 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:
Quote ...
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
Quote ...
// 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
EPierre is offline Offline
16 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Ok, whats going on.
Next Thread in HTML and CSS Forum Timeline: per word auto complete





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC