All pastes #410296 Raw Edit

Miscellany

public php v1 · immutable
#410296 ·published 2007-03-26 08:11 UTC
rendered paste body
					$shipping = number_format($totalCost, 2, ".", ",");			$shippingtotal = number_format($totalCost,2,".",",");			if($shipping < 100.00 && $shipping > 0.01){				//if great then 100 add the following					$shipping = $shipping + 5.95;				}elseif ($shipping > 100 && $shipping < 200){				//if between 100 - 200 add the following value					$shipping = $shipping + 10.00;					}elseif ($shipping > 300.00){								 	$shipping += 10 + floor(($shipping - 200) / 100);			}						$shipping = number_format($totalCost, 2, ".", ",");			$shippingtotal = number_format($totalCost,2,".",",");