Write cart to firebase.