[Skip to main content](#vessel-content)

#   Save Cart

##

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile") Topic Author
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

15 years 8 months ago [\#6730](#6730) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  *[Save Cart](/forum/4-how-to/6730-save-cart#6730 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")* was created by *[chris711](/forum/user/371-chris711 "View chris711's Profile")*

Hi Nicolas,

Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.

Regards

Chris

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

15 years 8 months ago [\#6758](#6758) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6758 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

Hi,

Normally, when the user is logged in his cart is saved in the database. When he comes back on the website, his latest cart is loaded. So indeed, your users should had his last cart loaded when he logged in again, if he didn't add something into his cart while being logged out in the mean time (because that cart would supercedes his last cart).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile") Topic Author
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

15 years 8 months ago [\#6776](#6776) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6776 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

Is there any way to force a log in before shopping? To ensure cart details are databased.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

15 years 8 months ago [\#6794](#6794) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6794 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

It depends how you made your store but you can restrict menus and modules to only registered users in joomla. That way, you could hide the shop from your non logged in users.

For example, if you have a "shop" menu that your users use actually to access your store:
set that menu to only registered users.
cerate a new shop menu and set it to display only to guest users and make it of type joomla article and link it to a joomla article which will explain to the user that he needs first to login/create an account before he can access the shop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile") Topic Author
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

15 years 8 months ago [\#6795](#6795) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6795 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

I would not want to hide the shop - what about a pop up if someone starts populating the cart without having logged in to suggest they should login to ensure their shopping session is recorded?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

15 years 8 months ago [\#6799](#6799) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6799 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

Then you could use the option "stay and display a notice popup" for the option "When a product is added to the cart" in the config under the tab display. You can edit the message displayed in that popup in the config under the tab languages by overriding the translation of the message of the notice popup:
[ www.hikashop.com/download/languages.html#modify](http://www.hikashop.com/download/languages.html#modify)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile") Topic Author
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

15 years 8 months ago [\#6801](#6801) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6801 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

Thanks Nicolas - will give that a try

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[chris711](/forum/user/371-chris711 "View chris711's Profile")**
- [![chris711's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/371-chris711 "View chris711's Profile") Topic Author
- [ Offline](/forum/user/371-chris711)

Less More

- Posts: 96
- Thank you received: 4
-
-

15 years 8 months ago [\#6808](#6808) by [chris711](/forum/user/371-chris711 "View chris711's Profile")  Replied by *[chris711](/forum/user/371-chris711 "View chris711's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6808 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

Okay that worked and I have a suitable message displayed to suggest users should log in to ensure their cart is remembered in event their session is interrupted. Is there a way to make the appearance of the pop up conditional, so that it is only seen the first time someone puts an item in the cart, and does not appear after that?
Thanks for any help with this.
Regards
Chris

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86316
- Thank you received: 14276
-
-

15 years 8 months ago [\#6809](#6809) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Save Cart](/forum/4-how-to/6730-save-cart#6809 "Hi Nicolas,  Is it possible for a customer to save his cart contents to come back to at a later time - maybe several days later? Also can cart contents be auto stored in a cookie or tmp file or something for a period in case someone is accidentally logged out while shopping - this happened to a customer today and on logging back in the cart was empty so losing a couple of hours browsing and selecting.  Regards  Chris")*

There is no such option directly in hikashop. However, hikashop allows you to override the popup functionality in your template. If you know well PHP, you could look at the file administrator/components/com_hikashop/helpers/cart.php where the add to cart is handled... You can create a file hikashop_button.php in your template's html folder and then define override functions in order to customize the behaviour of the popup notice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY3MzAtc2F2ZS1jYXJ0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.104 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
