Guest cart – disable persistent cart
-
Hi there,
We are having issues when the following happens.
1) a guest does not log in but adds items to the cart.
2) Guest closes the webpage
3) Guest comes back, cart identifies guest via guest cookie and cart fills up with old items that were left in the cart with the previous session.
This is where the issue arises. When trying to clear cart/add to cart we get a Blocked CORS error.
Access to XMLHttpRequest at ‘https://api.fairviewmarketplace.co.za/wp-json/cocart/v2/cart/clear?cart_key=1’ from origin ‘https://fairviewmarketplace.co.za’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.
Would it be possible to clear all guest cookies (sessions) as soon as they close the website. (no persistent cart) Only logged in users should have carts saved.
We also experience no errors when the guest logs in.
Please assist!
- The topic ‘Guest cart – disable persistent cart’ is closed to new replies.