jacksoggetto Posted February 13, 2019 Share Posted February 13, 2019 I get to understand the cart content is stored in a php session, and after 30 minute the client will lose all the content of the cart. This is very user unfriendly. How would you do to create a hook that stores the content in the database and then create a link (I can send it manually) to retrieve the cart? thanks 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted February 13, 2019 Share Posted February 13, 2019 May be easier to increase PHP's session timeout via session.gc_maxlifetime and session.cookie_lifetime . You can put that in to a .user.ini file or php.ini . To answer general question, you could do a hook with ClientAreaPageCart and save the $_SESSION['cart''] (or whatever it is in $_SESSION) to a database table. Then fetch that session with using the same hook and in that hook look for a variable in $_GET that has the session id . Then just inject the grabbed session cart in to the $_SESSION['cart'] . 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 14, 2019 Share Posted February 14, 2019 there is an Abandoned Cart addon in Marketplace, but it's not getting great reviews... nor do I think it's been updated for recent versions... 0 Quote Link to comment Share on other sites More sharing options...
jacksoggetto Posted February 15, 2019 Author Share Posted February 15, 2019 Thanks steven, will use that hook. That module is not doing what I need, also i tried the demo version and it's just not working 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 15, 2019 Share Posted February 15, 2019 9 minutes ago, jacksoggetto said: That module is not doing what I need, also i tried the demo version and it's just not working perhaps a better solution for your situation will be Share Cart... Quote With this module your customers can share the cart or save it for later. Furthermore, it is possible that the employees share a shopping cart. This is ideal if the customer wants a ready-made solution, but can not find his way. Customers can save their shopping cart via a link and access it at a later time without having to add and configure all products again. Customers can show their cart via link to other team members, making it easier to review the order. Everyone can change the basket and divide again. You can create ready-made shopping cart links and then advertise them. This simplifies the shopping experience and customers can complete their order faster. The support staff can help the customer with the order. The customer can show support his basket and the support can customize the basket and then send the new shopping cart link to the customer. 0 Quote Link to comment Share on other sites More sharing options...
jacksoggetto Posted February 15, 2019 Author Share Posted February 15, 2019 Here is what I'll do: I save the cart, and also save session[''tkval'] and userid in the database If the userid is empty it means i don't have their email, so if they try to exti the page I'll ask for their email. If I have the user id there is no need for a popup. Once the carts are saved I can send reminder emails with a cart recovery link. Will do a basic version of the module to see how many carts I can recover. No any other modules are doing the same 0 Quote Link to comment Share on other sites More sharing options...
Vitor Posted August 4, 2022 Share Posted August 4, 2022 @jacksoggetto did you create the module? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.