prestashopBridge
prestashopBridge copied to clipboard
Add product as a guest
I have written this code and it works fine. But if the user leaves the browser or going to another page the cart is lost. Can you think of how to fix this?
Create a Guest object in each addProduct call is not a good idea.
I think it's better to write a separate function who creates or load a Guest. Then you can use addToCurrentCart function.
Yes, that's a good idea, but i don't know how to load a Guest. You have any idea?