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

#   Products disappear from cart

##

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

Less More

- Posts: 54
- Thank you received: 2
-
-

9 years 8 months ago -  9 years 8 months ago [\#262755](#262755) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262755 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")* was created by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")*

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 7.0.14

In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.

To reproduce the problem:

Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine
Go to: koffiebonen and add one of the coffees
Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty

All legacy is disabled.

I have send you a message via the contact page withe the backend login credentials.

Could you have a look at this?

Last edit: 9 years 8 months ago by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 8 months ago [\#262764](#262764) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262764 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Hi,

If you do not have a persistant display of the cart ; it means that you have some cache activated.
Please re-download HikaShop 3.0 in order to be sure to have the latest patchs with the code in the "system / hikashopuser" plugin which destroy the cache everytime a cart is displayed.
Otherwise, please deactivate your cache (cache is not compatible with an e-commerce system. It's dynamic content !)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

9 years 8 months ago -  9 years 8 months ago [\#262811](#262811) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262811 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Hi,

Indeed, it was cache related. I downloaded and tested the latest Hikashop build, bat that did not make a difference. After disabling SiteGround's Dynamic Cache the cart functions ok.

This never has been a problem with Hikashop versions 2.6.5 and before. So I wonder why this is causing problems with Hikashop version 3.

Last edit: 9 years 8 months ago by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4ODkyNi1wcm9kdWN0cy1kaXNhcHBlYXItZnJvbS1jYXJ0P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

9 years 8 months ago [\#262817](#262817) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262817 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Hi,

Since the cart system is completely different in HikaShop 3, Siteground's cache system will have to be adapted to work properly with it.
I would recommend to raise a ticket with their support about that.

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

9 years 8 months ago [\#262947](#262947) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262947 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Ok, I raised a ticket at SiteGround. They came up with a briljant answer.... They suspect that Hikashop 3 and the jSGCache plugin (the Joomla plugin where you can adjust the setting for the dynamic cache) don't not play nice together. They told me to contact Hikashop and ask them for the reason why it is not working or details of what is going wrong.

So here I am... inbetween the briljant Hikashop programmers and the excellent SiteGround support people.

So, I have disabled the jSGCache plugin hoping that either Hikashop will find a solution or SiteGround will come up with a new version of the plugin or whatever. The good news is that I really like Hikashop 3. ![:-)](/media/kunena/emoticons/9.png ":-)")

Just to make everything complete you'll find jSGCache's cache autoflush settings in enclosed image and I have send you a screenrecording by mail so you can see what's happening.

Thank you for your time and efforts.

[ ![jSGCachepluginsettings.JPG](/forum/attachment/36471) ](/forum/attachment/36471 "...insettings.JPG")

- [ ![jSGCachepluginsettings.JPG](/forum/attachment/36471) ](/forum/attachment/36471 "...insettings.JPG") [ ](/forum/attachment/36471?download=1 "...insettings.JPG")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4ODkyNi1wcm9kdWN0cy1kaXNhcHBlYXItZnJvbS1jYXJ0P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

9 years 8 months ago [\#262948](#262948) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#262948 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Hi,

Well it doesn't work because when you click on the "add to cart" button, the cache is not cleared in the plugin.
I don't know how the plugin is written so I can't say much more.
You can see in the file plugins/system/hikashopuser/hikashopuser.php this code:
[ monosnap.com/file/GAmwBqv7Ave95zvZG8QF5d3IfAVN3K](https://monosnap.com/file/GAmwBqv7Ave95zvZG8QF5d3IfAVN3K)
That code clears the Joomla cache after a cart is saved so that such issue do not happen with Joomla.
I would recommend them to add the same trigger in their jSGCache plugin in order to flush their cache after a cart is saved and that will fix the problem.

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

9 years 8 months ago [\#263361](#263361) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#263361 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

I've reported the issue to SiteGround.

They write:

"This test environment will be used by the jSGCache developers to check the problem. They will try to provide a solution for the reported issue. Currently we do not have ETA for this task. Note that this is a specific compatibility issue between HikaShop and jSGCache and the investigation/resolution process might take some time."

They used Hikashop 3.0.0 - build 1702211353

In case you are interested to know more about jSGCache plugin code I have attached it to this reply.

Best regards,

Joep

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4ODkyNi1wcm9kdWN0cy1kaXNhcHBlYXItZnJvbS1jYXJ0P3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14264
-
-

9 years 8 months ago [\#263362](#263362) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#263362 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Adding such code in the plugin should solve the problem:
Code:

public function onAfterCartSave(&amp;$cart) { $this-&gt;_purgeCache(false); }

For example just before the line: Code:

private function _purgeCache( $message = true )

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

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

Less More

- Posts: 54
- Thank you received: 2
-
-

9 years 7 months ago [\#263436](#263436) by [jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")  Replied by *[jvstratum](/forum/user/38128-jvstratum "View jvstratum's Profile")* on topic *[Products disappear from cart](/forum/25-install-update/888926-products-disappear-from-cart#263436 "-- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5 -- PHP version -- : 7.0.14  In some cases products that are added to the cart disappear from the cart when you go to another category page. Sometimes only one of the products disappear and sometimes it says that the cart is empty. In some cases the cart contents comes back when you switch category again.  To reproduce the problem:  Go to: jura-koffiemachine/thuis/z-serie and add Z8 machine Go to: koffiebonen and add one of the coffees Go back to: jura-koffiemachine/thuis/z-serie and the cart is empty  All legacy is disabled.  I have send you a message via the contact page withe the backend login credentials.  Could you have a look at this?")*

Tested it and as far as I can judge it works fine. Awesome support!

I've past on your answer to SiteGround. Hopefully they will add it to the next update.

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg4ODkyNi1wcm9kdWN0cy1kaXNhcHBlYXItZnJvbS1jYXJ0P3RtcGw9bWFya2Rvd24=) 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.376 seconds

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

[](#top)
