eCommerce Guest Checkout Implementation

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?

Off the top of my head you could store a cookie with a unique salted md5 and then store their order in the database and use it as the key. Shouldn’t be too hard to implement.

Lux

Hi luxint,

Thanks for the reply.

I will try that. :)