• Resolved JPecsenyicki

    (@jpecsenyicki)


    On this site, the WooCommerce mini-cart on the homepage is not updated after a product is added to the Cart.

    However, the mini-cart on all other pages updates correctly.

    Is there a setting in W3 Total Cache that would fix this problem?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jpecsenyicki

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    There should not be any issues with this as Woocommerce is using Ajax Cart Fragments.
    For example, if you have Add to Cart buttons on your category pages AND you want the Cart widget to update accordingly without a page reload (and you have Ajax add to cart enabled), then you need “/?wc-ajax=get_refreshed_fragments“ active.
    This can be set in the Woocomernce setting.
    Can you please check the version of Woocommerce you are using and also W3 Total Cache?
    You should also add /cart/ to Performance>Page Cache>Advanced “Never Cache following Pages” filed.
    Thank you.

    Thread Starter JPecsenyicki

    (@jpecsenyicki)

    Hi Marko,

    Yes, I find it very strange that the same minicart widget works on every page except for the homepage.

    In Woocommerce > Settings > Products > General, the “Enable AJAX add to cart buttons on archives” option is checked.

    In Performance > Page Cache, /cart/, cart, and cart/* have all been added to the “Never cache the following pages” option.

    The site is using WooCommerce 3.9.1 and A2 Fixed W3 Total Cache 0.9.4.6.4.6. (Though I’ve deactivated this and activated the latest standard version of W3 Total Cache, and it does the same thing.)

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jpecsenyicki

    Thank you for the information. We do not support A2 Fixed W3 Total Cache 0.9.4.6.4.6.
    So, in this case, you need to check with them about this. It’s based on W3 Total Cache but with modifications so we cannot know what is going on there.
    I am not seeing the /?wc-ajax=get_refreshed_fragments on your page so you should reach out to Woocommerce support for this.
    Thank you!

    Thread Starter JPecsenyicki

    (@jpecsenyicki)

    Hi Marko,

    I forgot to mention that the minicart on the homepage works fine when A2 Fixed W3 Total Cache is deactivated.

    Anyways, thanks for looking into this for me. I’ll ask about this on the WooCommerce forum.

    Thread Starter JPecsenyicki

    (@jpecsenyicki)

    Hi Marko,

    You said that you were not seeing /?wc-ajax=get_refreshed_fragments on the page.

    On further investigation, I found a setting on a different proprietary plugin installed on the site’s managed WordPress hosting account:

    Dequeue WooCommerce Cart Fragments AJAX calls

    Description: Disable WooCommerce Cart Fragments on your homepage. Also enables “redirect to cart page” option in WooCommerce

    The mini-cart worked correctly after this option was disabled. Had nothing to do with “W3 Total Cache” at all.

    Thanks again for pointing me in the right direction.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @jpecsenyicki

    I am glad to know you found out where the issue is.
    Thank you for the information!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WooCommerce mini-cart on Homepage does not update with W3 Total Cache’ is closed to new replies.