Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1406955

    venushairdesign
    Participant

    Hi there,

    We’re having an issue where the minicart essentially doesn’t work on non-Woocommerce pages as it’s being cached.

    Trying to find an answer seems to lead back to whether the minicart is using AJAX or not.

    [here’s a solution suggested to solve the problem on a different theme – https://catapultthemes.com/updating-the-woocommerce-mini-cart-via-ajax/ ]

    Is this the case, that the minicart used on X-Theme isn’t AJAX so out side of WC it’s being cached (or am I completely wrong and it’s another issue)?

    Thank you 🙂

    (Website is https://diosa.uk you can see it works fine on any WC page, but if you go to other pages such as home or contact, it shows a cached version)

    #1407549

    Rupok
    Member

    Hi there,

    Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.

    Thank you for your understanding.

    #1407648

    venushairdesign
    Participant

    Hi Rupok,

    Of course I understand; but the question I asked was ‘is the X-Theme navbar’s minicart AJAX or not?’ – that functionality is “native to X” and if it isn’t AJAX at least I’ll know that this is where our problem (probably) lies.

    Appreciate if you could let us know this 🙂

    #1407705

    venushairdesign
    Participant

    Ignore and apologies…

    For anyone else, the cause was because we implemented a ‘speed’ recommendation from wpspeedguru.com (Alexei Kutsko off the X-Theme FB Forum).

    His ‘Woocommerce Optimization Code’, dequeue’s scripts needed to make the minicart work on non-woocommerce pages – from what I can tell the one script that needs removing is the wp_dequeue_script( ‘wc-cart-fragments’ ); one.

    Sorted! 🙂

    #1407809

    Christopher
    Moderator

    Thanks for sharing.