• Resolved mitchelly

    (@mitchelly)


    Any idea why my mini cart is not working on the top right hand side of my homepage and a few other pages?
    https://shoporama.com.au/

    When I hover on the mini cart it shows nothing but it says 1, 2, or more items in it.
    They told me it is cache but I cleared the Hummingbird Cache and tried it with an incognito window but still the same.

    Hummingbird says;

    “You can use the define(‘DONOTCACHEPAGE’, true); constant to instruct Hummingbird not to cache specific pages or templates.”

    So where do I add this to disable it on the Cart, Checkout, and My Account pages?
    Where the actual files are and called so I can add the define(‘DONOTCACHEPAGE’, true); to it and anywhere on those pages? If I add this to function.php file how do I actually relate it to the minicart or cart files?

    I added it in the Theme Cart Folders Cart.php file and didn’t work.
    Also I did this in Hummingbirds

    “URL Strings”
    “You can tell Hummingbird not to cache specific URLs, or any URLs that contain strings. Add one entry per line.”

    wp-.*\.php
    index\.php
    xmlrpc\.php
    sitemap.xml
    cart\.php
    checkout\.php
    myaccount\.php
    my-account\.php

    And still no luck

    Many thanks in advance
    Mitchell

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @mitchelly,

    The define for DONOTCACHEPAGE is mostly aimed to be used with custom themes so it could be but in specific files to exclude specific templates from being cached, so it’s not really applied for your case.

    Can you please check if the issue is indeed related to caching?
    Go to Hummingbird > Caching > Page Cache, clear the cache and then disable it, is the floating cart content properly shown after that?

    Cheers,
    Predrag

    Thread Starter mitchelly

    (@mitchelly)

    Hi Predrag
    I cleared the cache and disactivated the Hummingbird plugin and the mini cart is working now!
    It seem like it is Hummingbird caching
    Cheers

    • This reply was modified 4 years, 2 months ago by mitchelly.
    Thread Starter mitchelly

    (@mitchelly)

    By the way we have Hummingbird on a few different websites and on every single one that we have it is causing the same issue.

    • This reply was modified 4 years, 2 months ago by mitchelly.
    Thread Starter mitchelly

    (@mitchelly)

    Thank you @wpmudev-support1

    As I said it seem like the cache is causing the mini cart not to work properly especially with any of the websites made by different Fuel Themes.

    So is there any way that I can put a code somewhere that Hummingbird doesn’t cache Mini cart, cart or my account, etc?

    If so please tell me in a plain dummy language so I can understand what exactly do, change or add and to which files.

    Many thanks in advance
    Regards
    Mitchell

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @mitchelly,

    The next thing here is to check if the theme is creating an issue or the caching module has an issue. Can you turn on the Hummingbird plugin and then navigate to Hummingbird-> Caching-> Activate Caching. Then navigate to Hummingbird-> Asset Optimisation-> Settings-> Reset. If that does not help, Can you deactivate the Asset Optimisation from the same area as for the reset and then check if that works.

    If that does not work, navigate to Hummingbird-> Advanced tools-> General-> Disable cart fragments-> Disable cart fragments on-> All Pages-> Save Changes and check if that works for you.

    Let me know how that goes with you.

    Thank you,
    Prathamesh Palve

    Thread Starter mitchelly

    (@mitchelly)

    Hi

    First suggestions with cache didn’t work, then I changed the cart fragments to All Pages and saved didn’t work, and next I unticked the “Disable cart fragments” from blue to grey and saved it and now the mini cart is working.
    Many thanks

    Plugin Support Saurabh – WPMU DEV Support

    (@wpmudev-support7)

    Hello @mitchelly,

    I’m glad that worked for you. As it worked for you, I will mark this as resolved but should you have any doubts or need any help, feel free to open a fresh thread and we would be happy to help.

    Thank you,
    Prathamesh Palve

    Thread Starter mitchelly

    (@mitchelly)

    Hi again @wpmudev-support1
    I am sorry but the problem came back, I think when it starts caching it happens again and I cannot access the mini cart from the homepage of the website!
    Now even cannot add to the cart in most cases.
    Regards
    Mitchell

    • This reply was modified 4 years, 2 months ago by mitchelly.
    Thread Starter mitchelly

    (@mitchelly)

    All back again after reseting again!
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘My Mini Cart is not working since Hummingbird Cache is started’ is closed to new replies.