- Loop WP
- Posts
- Issue #144 Loop WP
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
Award Winning Admin Tools for managing large numbers of WordPress Sites easily! |
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
Coupon Affiliates - A powerful coupon-based affiliate plugin for WooCommerce. Try it free for 7 days! |
AI Text to Speech - Convert your WordPress posts into engaging AI-generated audio in one-click! Choose from 9 unique & realistic voices. |
Fast. Faster. Fastest. What is even faster? FastPixel! Unlimited Image Optimization, Caching and Global CDN for your WordPress website. |
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,
