Issue #144 Loop WP

Disable Cart Fragments

Hi, friend. 👋

Welcome to Issue #144 of Loop WP!

Last week, we chatted about client relationships.

This week, we are diving into one of my favourite plugins for WooCommerce and some alternative solutions.

Let’s go! 👇

mySites.guru

Screenshot of the mySites.guru dashboard displaying a list of managed websites. The interface shows site names, tags, PHP and WordPress versions, disk space warnings, and management options. Sidebar includes site group tags, important updates, and starred tools for mass upgrades and updates.

Sponsored

Award Winning Admin Tools for managing large numbers of WordPress Sites easily!

Logo of mySites.guru, featuring a stylized black cloud with a keyhole inside it, followed by the text 'mySites.guru' in a combination of bold black ('mySites') and gray ('.guru') letters.

Disable Cart Fragments

The Problem

⚡️ When working with WooCommerce clients, one of the most significant performance issues is "cart fragments" or "mini-cart".

You could remove the mini-cart from the website or only load it on particular pages.

🤔 For many websites and experiences, users expect (a constantly present mini-cart), making removing the mini-cart impossible.

So what do we do?

The Solution(s)

Custom Function

You could have used some custom functions to help:

(Business Bloomer has been a go-to resource for me for years.)

AI Solution

⚡️ Then, AI solutions like Claude, ChatGPT, Cursor, and WP Turbo could help you code your solution.

Of course, you must be careful with the code these solutions generate and test thoroughly.

For example, this looks great, but it doesn’t work correctly, and it tries to do too much.

A Plugin Solution - Disable Cart Fragments

Disable Cart Fragments is a lightweight plugin which effectively speeds up your WooCommerce website by disabling the cart fragments script.

⚡️ It also enqueues the script back when the cart is not empty anymore, so it only works while the cart is empty.

The plugin has no settings. You can install it and forget it.

💶 Did I mention it is free?

Test Test Test

Remember, whichever solution you choose, test on a staging website first and check that your live website works as it should once you implement it.

💡 For example, if you use Elementor’s mini-cart, there is a conflict that initially shows a blank cart.

🚀 Disable Cart Fragments allows the best of both worlds - You can keep using a caching plugin and update the cart totals when the cart is not empty.

(The plugin hasn’t been updated in a couple of years, but it still works, and it doesn't appear in WP Scan or Patchstack’s databases.)

Classifieds
A square icon with a green background. It features a white tag icon in the top left, with the words 'Coupon Affiliates' in white text, followed by 'For Woo' in a smaller font underneath.

Coupon Affiliates - A powerful coupon-based affiliate plugin for WooCommerce. Try it free for 7 days!

A square icon with a hexagonal pattern background in shades of red. The letters 'AI' are prominently displayed on the top, and 'TTS' on the bottom in white, bold font.

AI Text to Speech - Convert your WordPress posts into engaging AI-generated audio in one-click! Choose from 9 unique & realistic voices.

Fast Pixel Happy icon (smiling pixel robot)

Fast. Faster. Fastest. What is even faster? FastPixel! Unlimited Image Optimization, Caching and Global CDN for your WordPress website.

This image shows two stylized, rounded rectangular shapes side by side on a dark background. The shapes are colored with a vibrant gradient that transitions from a deep orange on the left to a bright red on the right. The shapes have soft, rounded corners and appear to have a slight glow or shadow effect, giving them a three-dimensional appearance against the dark background. The overall design is minimalist and modern, Kinsta abstract logo and app icon.

Kinsta, a reliable hosting partner for your WordPress sites. Everything you need: edge caching, CDN, WAF, 24/7 support, free migrations and much more.

Sponsorship Opportunities

🚨 The Google Doc contains all the details if you’re interested in sponsoring the Loop WP Newsletter.

Before You Go

🏕️ If you are just joining this newsletter, this week, I am on holiday (the kids are off for half-term), so it’s a much shorter edition of my newsletter.

As a result, there is no News & Tips section.

I curate the “News & Tips” weekly and won’t be doing this while I’m on holiday, but it will return next week.

See you next week! 😀

Here’s Why Over 4 Million Professionals Read Morning Brew

  • Business news explained in plain English

  • Straight facts, zero fluff, & plenty of puns

  • 100% free

If you have a question about this email or WordPress, reply, and I will answer you as soon as possible.

👋 Until next time,

Simon Harper's handwritten signature