Jump to content

Save cart for later


jacksoggetto

Recommended Posts

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

Link to comment
Share on other sites

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'] . 

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated