So Artsound and Lights contracted you to do this work. And loading their site, which works perfectly fine in standalone, inside your shell loader, causes the site to refresh multiple times when someone clicks on a link, which causes somehow the system to either remove the item being added, or is starting a new session with the site, causing the cart to be empty.
Have you asked this question on the 3dVista support forum? It seems like this is a problem with whatever control they use to load pages in their viewer.
// Check if user has already given consent
if (!localStorage.getItem(‘cookieConsent’)) {
// Display a modal or banner explaining the use of cookies
// Include a button to allow users to give consent
// Set a cookie when the user gives consent
document.getElementById(‘consentButton’).addEventListener(‘click’, function () {
localStorage.setItem(‘cookieConsent’, ‘true’);
// Close the modal or banner
});
}