The wc_setcookie function does not work when the page is cached
-
Hi,
I’m having a problem with the wordpress wc_setcookie function.
Once the page is cached, I use the wc_setcookie( ‘woocommerce_recently_viewed’, implode( ‘|’, $viewed_products ),$expire ); however, when I check with F12 on the Browser, I don’t see the cookie: woocommerce_recently_viewed
If the page is not cached or the page uses ESI, then F12 on the Browser will have a Cookie.
Can you tell me how can i use wc_setcookie function for cached page?
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘The wc_setcookie function does not work when the page is cached’ is closed to new replies.