Cached Cart on all browsers/devices
-
Hi,
I am developing a website with embedded react. So I went on with Woocommerce Rest API and created api keys to access products, etc. But I couldnt add to cart with the default woocommerce api. Hence, I used Cocart to achieve it.
The Flow : fetch all products with woocommerce Rest API by passing consumerkey:secret key. Similarly, add products to cart via cocart and the same headers. Now, The same cart is observed across all browsers/devices. Guest, no wplogin has been done. How do I mitigate this issue?
I thought that the cocart cart hask/cookie is only one across the site. Hence, I added this to my functions.php file to disable it but no luck.
add_filter( ‘cocart_cookie_supported’, function() { return false; });
- The topic ‘Cached Cart on all browsers/devices’ is closed to new replies.