Stuck for months need help.

Okay first of all I want to express hi…. " hi". La and orange county Bob and this is certainly my first publish. I very new to web development and am by no means literate in proper web site design. So about this past year I decided to purchase a Developer deal from 1and1. com. It is a templated web page. So now after loads of issues and challenges arising from purchaser service issues and my ignorance, I am trying to complete a vital a part of this website. The shipping area while in the site that We are building relies about php. I have hardly any experience and not much education in php. Right down to the problem. OUR shipping coding will be below:

$weight=0;
foreach ($basket_items when $i)
//Weight counted here.
$overall_weight+= item_get_field(‘weight’, $i) * item_get_field(‘count’, $i);

in case ($overall_weight > 110) $shipping_fee = THREE MONTHS. 00;
elseif ($overall_weight > 80) $shipping_fee = 62. 00;
elseif ($overall_weight > 75) $shipping_fee = 61. 00;
elseif ($overall_weight > 70) $shipping_fee = SIXTY. 00;
elseif ($overall_weight > 65) $shipping_fee = 59. 00;
elseif ($overall_weight > 64) $shipping_fee = 58. 00;
elseif ($overall_weight > 63) $shipping_fee = 57. 00;
elseif ($overall_weight > 62) $shipping_fee = 56. 52;
elseif ($overall_weight > 61) $shipping_fee = FIFTY FIVE. 50;
elseif ($overall_weight > 60) $shipping_fee = FIFTY FIVE. 00;
elseif ($overall_weight > 59) $shipping_fee = 54. 52;
elseif ($overall_weight > 58) $shipping_fee = 53. 00;
elseif ($overall_weight > 57) $shipping_fee = FIFTY-TWO. 50;
elseif ($overall_weight > 56) $shipping_fee = FIFTY-TWO. 00;
elseif ($overall_weight > 55) $shipping_fee = 51. 52;
elseif ($overall_weight > 54) $shipping_fee = 51. 00;
elseif ($overall_weight > 53) $shipping_fee = 52. 00;
elseif ($overall_weight > 52) $shipping_fee = 43. 00;
elseif ($overall_weight > 51) $shipping_fee = 49. 00;
elseif ($overall_weight > 50) $shipping_fee = 41. 00;
elseif ($overall_weight > 49) $shipping_fee = FORTY. 00;
elseif ($overall_weight > 48) $shipping_fee = 39. SEVENTY-FIVE;
elseif ($overall_weight > 47) $shipping_fee = 39. 52;
elseif ($overall_weight > 46) $shipping_fee = 39. FORTY;
elseif ($overall_weight > 45) $shipping_fee = 39. 26;
elseif ($overall_weight > 44) $shipping_fee = 39. 00;
elseif ($overall_weight > 43) $shipping_fee = 38. 00;
elseif ($overall_weight > 42) $shipping_fee = 37. 00;
elseif ($overall_weight > 41) $shipping_fee = 36. 00;
elseif ($overall_weight > 40) $shipping_fee = THIRTY-FIVE. 00;
elseif ($overall_weight > 39) $shipping_fee = 34. 00;
elseif ($overall_weight > 38) $shipping_fee = THIRTY-THREE. 75;
elseif ($overall_weight > 37) $shipping_fee = THIRTY-THREE. 50;
elseif ($overall_weight > 36) $shipping_fee = THIRTY-THREE. 25;
elseif ($overall_weight > 35) $shipping_fee = 32. SEVENTY-FIVE;
elseif ($overall_weight > 34) $shipping_fee = 32. 52;
elseif ($overall_weight > 33) $shipping_fee = 32. 26;
elseif ($overall_weight > 32) $shipping_fee = 32. 00;
elseif ($overall_weight > 31) $shipping_fee = 35. 00;
elseif ($overall_weight > 30) $shipping_fee = TWENTY-EIGHT. 75;
elseif ($overall_weight > 29) $shipping_fee = TWENTY-EIGHT. 50;
elseif ($overall_weight > 28) $shipping_fee = TWENTY-EIGHT. 25;
elseif ($overall_weight > 27) $shipping_fee = 27. 65;
elseif ($overall_weight > 26) $shipping_fee = 27. 50;
elseif ($overall_weight > 25) $shipping_fee = 26. 75;
elseif ($overall_weight > 24) $shipping_fee = 26. 60;
elseif ($overall_weight > 23) $shipping_fee = 26. 00;
elseif ($overall_weight > 22) $shipping_fee = TWENTY-FOUR. 00;
elseif ($overall_weight > 21) $shipping_fee = 12. 00;
elseif ($overall_weight > 20) $shipping_fee = TWENTY TWO. 00;
elseif ($overall_weight > 19) $shipping_fee = 10. 00;
elseif ($overall_weight > 18) $shipping_fee = NINETEEN. 00;
elseif ($overall_weight > 17) $shipping_fee = 18. 00;
elseif ($overall_weight > 16) $shipping_fee = 17. 00;
elseif ($overall_weight > 15) $shipping_fee = SIXTEEN. 00;
elseif ($overall_weight > 14) $shipping_fee = 15. 70;
elseif ($overall_weight > 13) $shipping_fee = FOURTEEN. 00;
elseif ($overall_weight > 12) $shipping_fee = TOUGH LUCK. 00;
elseif ($overall_weight > 11) $shipping_fee = 10. 90;
elseif ($overall_weight > 10) $shipping_fee = 10. 75;
elseif ($overall_weight > 09) $shipping_fee = 10. 00;
elseif ($overall_weight > 08) $shipping_fee = 11. 65;
elseif ($overall_weight > 07) $shipping_fee = 11. 00;
elseif ($overall_weight > 06) $shipping_fee = 06. 35;
elseif ($overall_weight > 05) $shipping_fee = 05. 10;
elseif ($overall_weight > 04) $shipping_fee = LATE 2003. 80;
elseif ($overall_weight > 03) $shipping_fee = LATE 2003. 50;
elseif ($overall_weight > 02) $shipping_fee = 02. 52;
elseif ($overall_weight > 01) $shipping_fee = 02. 00;

Let me be using different costs for this shipping fee for the reason that fees now, shall no longer be valid. This coding is contained just a tab in my control center. This coding is comprised within each merchandise listing:

in case (article_get_field(‘Weight’)==’5′)
article_set_field(‘weight’, 5);

There is a place to enter in " additional product attributes", where we’ve entered in under the attribute appoint: weight, and while in the value area: We’ve put statictext: 5

All this I have WE or my step-dad features written. He isn’t a web site designer either so its something that him and i are happy we all could atleast carry out.
So my problem are these claims.
While it is working now. This does not produce the outcomes that I need. When we test out this out. but there’s more produce the shipping fee that him and i think it should

EXAMPLE
I check out my website. I choose baracuda torch (I advertise glassblowing supplies by the way)
This item costs $735. 00
It weighs FIVE pounds (the coding We’ve listed as coding in a product listing is perfect for the cuda)
Hence the idea when your Baracuda torch is ordered given it weighs 5 lbs. The shipping cost really should be: $5. 20
How I came for this conclusion Through this portion of the code:
elseif ($overall_weight > 05) $shipping_fee = 05. 10;

OUR overall weight is usually 5 pounds, the shipping cost really should be $5. 20. BUT
After i test it out and about my shipping expense i

This entry was posted in Web Design and tagged , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *