Purchases->login() would be one place if the cart already existed.
Purchases->addToCart() must do something about generating a cart record if one does not exist. So probably that getCartRecord bit, whatever that is called, would be the second place to do the job
find a place this can be integrated.
Purchases->login() would be one place if the cart already existed.
Purchases->addToCart() must do something about generating a cart record if one does not exist. So probably that getCartRecord bit, whatever that is called, would be the second place to do the job