Nieuw lid |
|
maar ik zal wel verkeerd zijn zeker ...
Ik heb deze code:
if ($shipping_weight <= 100 && $total_count == 1) {
if ($shipping_weight+$shipping_weight_envelop <= 50) {
$shipping_cost = 0.78 + $verpakking + $benzine;
} else if ($shipping_weight+$shipping_weight_envelop <= 100) {
$shipping_cost = 0.92 + $verpakking + $benzine;
} else {
$shipping_cost = 1.38 + $verpakking + $benzine;
}
} else {
$shipping_cost = 3.70 + $verpakking + $benzine;
}
if ($shipping_weight <= 100 && $total_count == 1) { if ($shipping_weight+$shipping_weight_envelop <= 50) { $shipping_cost = 0.78 + $verpakking + $benzine; } else if ($shipping_weight+$shipping_weight_envelop <= 100) { $shipping_cost = 0.92 + $verpakking + $benzine; } else { $shipping_cost = 1.38 + $verpakking + $benzine; } } else { $shipping_cost = 3.70 + $verpakking + $benzine; }
shipping_weight = 1, $shipping_weight_envelop = 16 en total_count =1;
en toch wordt voor de laatste optie gekozen. Hoe kan dat?
|