Items in cart are not updating or shopping cart is empty

If you are experiencing issues with the items in cart not updating after adding to cart or your shopping cart is showing as empty, then in almost all cases this is an issue with cache. Most sites add caching with a plugin to help speed up your site. Caching helps your site not have to access the database or create static versions of pages to help speed it up. However, on dynamic pages like everything in Sunshine where each person has unique data (like items in cart) caching will cause problems by loading the cached version and not the current dynamic version of the page.

Step 1

Temporarily disable all caching. Look for any caching plugins you may have installed or see if any caching is enabled at the server level by your web host.

Step 2

Test adding to cart and see if it works without caching enabled.

Step 3

If it now works, check either your cache plugin or server level caching on how to set up exclusion rules. Exclude all Sunshine-related pages – each plugin or web host will do this different so look for any documentation or settings related to your caching plugin/host.

If it is still an issue, open a support ticket to have it looked at in more detail.