I have tested Magento and Prestashop, and noticed that they allow guest users to add items to card, then ask them to register later upon checkout.
I would love to look into their code but I am not familiar with the framework they used. I’m not even sure that the method used can be applied in Yii. Can someone help me how should I implement it? How shoulld I store the cart items /wishlist of a user if they dont have an account yet?