WooCommerce And Cart Widget (2 posts)

  1. Tanmoy
    Posted 4 years ago #

    I'm using WooCommerce for my digital shop. I used WooCommerce Cart widget in right sidebar. But sidebar widget didn't updated after adding product in cart.
    Check http://www.addonpark.com/aopopup/ and press add to cart button. Actually product will be added to cart ut sidebar widget won't be updated. For that user must refresh page.

    I'm using Genesis Framework with child theme developed by me. Special plugins are Mega Menu, w3 total cache.

    Please help to figure out the issue.


  2. blackstudio
    Posted 4 years ago #

    Yeah I was having the same issue. I think it's something to do with w3 total cache. I found this bit of code on another forum which goes into the varnish field in the general settings page of w3 total cache;

    if (req.url ~ "^/(cart|my-account|checkout|addons)") {
    return (pass)

    if ( req.url ~ "\?add-to-cart=" ) {
    return (pass)

    which i believe keeps the cart, account, checkout pages dynamic.

    Hope this helps - it worked for me.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic