Hi, thanks for the code below. I copy and pasted to after the ending html tag, however it is not working. When I go to submit a second order it is giving me this error:
Duplicate entry 'mcs6706e3jpj3n2rbqkfvqebr3' for key 'OrderReferenceId'
Also, I think that it is logging the person out all together instead of just clearing the cart.