Bob's Auto Parts

Order Results

Order processed at '; echo date('H:i, jS F'); echo '

'; echo '

Your order is as follows:

'; $totalqty = 0; $totalqty = $tireqty + $oilqty + $sparkqty; echo 'Items ordered: '.$totalqty.'
'; if( $totalqty == 0) { echo 'You did not order anything on the previous page!
'; } else { if ( $tireqty>0 ) echo $tireqty.' tires
'; if ( $oilqty>0 ) echo $oilqty.' bottles of oil
'; if ( $sparkqty>0 ) echo $sparkqty.' spark plugs
'; } $totalamount = 0.00; define('TIREPRICE', 100); define('OILPRICE', 10); define('SPARKPRICE', 4); $totalamount = $tireqty * TIREPRICE + $oilqty * OILPRICE + $sparkqty * SPARKPRICE; echo 'Subtotal: $'.number_format($totalamount,2).'
'; $taxrate = 0.10; // local sales tax is 10% $totalamount = $totalamount * (1 + $taxrate); echo 'Total including tax: $'.number_format($totalamount,2).'
'; if($find == 'a') echo '

Regular customer.

'; elseif($find == 'b') echo '

Customer referred by TV advert.

'; elseif($find == 'c') echo '

Customer referred by phone directory.

'; elseif($find == 'd') echo '

Customer referred by word of mouth.

'; else echo '

We do not know how this customer found us.

'; ?>