Order processing

Order processing , except for saving the purchase.
fixed the cart issues.