PHP shipping calculation formula

Виконано Опубліковано %project.relative_time Оплачується при отриманні
Виконано Оплачується при отриманні

I am a web developer designing an ecommerce site for a client in PHP. They informed me at the last minute of some semi-complex shipping requirements that I just don't have time to complete with all of my other work. Here is a little info to get you up to speed: The shopping cart already functions and calculates a general shipping total based on origin, destination and weight. Values processed by the UPS API and UPS sends back the shipping total. My client also needs to add to the shipping charge the weight of the packaging. The complexity comes in deciding which package(s) to use given a particular combination of items. For example: A 22oz shipping box can hold the following combinations: 1 Quarts and 2 Pints, 1-4 Pints or 1-2 Quarts Sample Scenario 1: if an order was for 2 Quarts, 22 ounces would need to be added to the shipping weight total. Sample Scenario 2: For an order of 4 quarts, the code would have to know that 2 shipping boxed were required and add 44 ounces. I have the specs for all packing combinations.. there are approximately 6 for 3 different box sizes. The logic can most certainly be handled within one function but if you have a better suggestion for accomplishing this, I am open to suggestions. For reference, here are combinations of shipping box options:

22 ounce box will fit:

1 Quart and 2 Pints

1 - 4 pints

1 - 2 Quarts

25 ounce box will fit:

5 pints

26 ounce box will fit

3 - 4 Quarts

3 Quarts & 1 Pint

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Apache/PHP/MySQL

Техніка MySQL PHP Архітектура ПЗ Тестування ПЗ Веб-хостинг Управління веб-сайтами Тестування сайтів

ID Проекту: #2920685

Про проект

6 заявок(-ки) Дистанційний проект Остання активність Apr 17, 2007

Доручено:

titus2000vw

See private message.

$46.75 USD за 21 дні(-в)
(64 відгуків(-и))
5.6

6 фрілансерів(-и) готові виконати цю роботу у середньому за $52

xtremesolsvw

See private message.

$85 USD за 21 дні(-в)
(11 відгуків(и))
4.5
itatyourser

See private message.

$21.25 USD за 21 дні(-в)
(12 відгуків(и))
3.1
ExperiencetheWeb

See private message.

$25.5 USD за 21 дні(-в)
(8 відгуків(и))
2.7
fareastc

See private message.

$72.25 USD за 21 дні(-в)
(4 відгуків(и))
2.0
crrj

See private message.

$63.75 USD за 21 дні(-в)
(0 відгуків(и))
0.0