set order state to cart before edit/update