• Resolved ogn095

    (@ogn095)


    Bonjour à tous,

    N’ayant trouver aucune réponse au sujet de ma demande et étant assez novice, je me permets de créer une demande d’aide.

    J’utilise woocommerce combiné avec wprocket et cloudflare, jusque la rien d’anormal. Cependant, une fonction de cloudflare (rocket loader) à tendance à créer un bug. Celui-ci se situe au niveau du mini panier de woocommerce, ce dernier ne s’affiche pas lorsque je clique sur le bouton du mini panier (lorsque rocket loader est actif).

    J’ai vu sur la documentation de cloudflare que des règles pouvaient être appliquées mais je n’ai aucune idée du fichier à exclure ainsi que de la procédure à suivre.

    Merci de votre aide, cordialement.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ogn095,

    I understand the issue you’re facing — Cloudflare’s Rocket Loader often conflicts with WooCommerce, particularly with JavaScript features like the mini cart which can be frustrating.

    The best fix is to disable Rocket Loader for WooCommerce. You can do this from your Cloudflare dashboard by going to Speed > Optimization, opening the Rocket Loader settings, and adding an exclusion for WooCommerce scripts (cart-fragments.js, woocommerce.js, add-to-cart.js)

    Another option is to create a Page Rule under Rules > Page Rules, using the pattern *yoursite.com/wp-content/plugins/woocommerce/*, and setting Rocket Loader to “Off.”

    If you prefer a simpler approach, you can fully disable Rocket Loader altogether. Since you’re already using WP Rocket, which provides strong optimization on its own, Rocket Loader isn’t essential and can create unnecessary conflicts.

    To do this, go to Speed > Optimization in Cloudflare, turn Rocket Loader off, and then clear all caches (WP Rocket, Cloudflare, and your browser) before testing again. This should resolve the mini cart display issue.

    For further help with setting this up in Cloudflare, I recommend reaching out to their support team for guidance.

    Plugin Support Ejay F – a11n

    (@ejayfernandes)

    Hello @ogn095,

    Since we haven’t received any updates, we’ll be closing this thread.

    If you’ve had a good experience with WooCommerce and the support provided, please consider leaving us a short review here:
    https://wordpress.org/support/plugin/woocommerce/reviews/#new-post

    You’re always welcome to create a new topic if you need assistance in the future.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.