You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used your varnish vcl for my Wooecommerce. The cart is empty whenever i add anything. I tried to disable ajax request but no luck. Here are my exeptions:
### REMOVE IT IF YOU DO NOT USE WOOCOMMERCE ###
if (req.url ~ "/(cart|my-account|checkout|addons|/?(add-to-cart=|added-to-cart=))") {
return (pass);
}
if (req.url ~ "/product/*$") {
return (pass);
}
if ( req.url ~ "/?add-to-cart=" ) {
return (pass);
}
if (req.http.X-Requested-With == "XMLHttpRequest") {
return(pass);
}
The text was updated successfully, but these errors were encountered:
# WooCommerce: The code below makes sure the AJAX "add to cart" function works
set req.url = regsub(req.url, "add-to-cart=\d+_\d+&", "");
I think it's the same problem than #29 (comment)
I'm sorry but I haven't the solution. :(
Try to post to Varnish forum and if you get a response add a comment here. =)
I used your varnish vcl for my Wooecommerce. The cart is empty whenever i add anything. I tried to disable ajax request but no luck. Here are my exeptions:
The text was updated successfully, but these errors were encountered: