Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Disable Cart Fragments by Optimocha icon

Disable Cart Fragments by Optimocha

v2.3
by Optimocha · 4.9 (16 reviews)

A better way to disable WooCommerce's cart fragments script, and re-enqueue it when the cart is updated. Works with all caching plugins.

10K+ active installs Updated Jun 27, 2023 Tested to 6.2.6 Requires PHP 5.6
Try Demo Download
Pre-installed Ready in ~10s No card

About Disable Cart Fragments by Optimocha

Disable Cart Fragments is a plugin that speeds up your WooCommerce website by disabling the cart fragments script. It enqueues the script back when the cart is not empty, so it only works when the cart is empty. You can also reach out to Optimocha.com for WooCommerce optimization services.

Frequently asked questions

What does the Disable Cart Fragments plugin do?
The Disable Cart Fragments plugin 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.
Why is disabling cart fragments important?
Disabling cart fragments is important because the AJAX request made by WooCommerce to check the cart and update cart totals generally takes time. Disabling cart fragments helps to speed up this process.
How does Disable Cart Fragments solve the issue?
Disable Cart Fragments solves the issue by checking the cart cookies via JavaScript, instead of relying on slow AJAX requests. This allows for instant cart total updates, even when using caching plugins.
What are the main features of the Disable Cart Fragments plugin?
The main features of the Disable Cart Fragments plugin are: disabling WooCommerce cart fragments, checking cart cookies to load the cart fragments script when the cart is not empty, and bringing joy (in most cases).
Where can I get WooCommerce optimization services?
You can reach out to Optimocha.com for WooCommerce optimization services.

Changelog

2.3

  • Tested and ensured compatibility with WordPress 6.2 and WooCommerce 7.8.0.
  • Fixed an issue: Store managers were unable to dismiss the notices.

2.2

  • Tested and ensured compatibility with PHP 8.1, WordPress 6.1.1 and WooCommerce 7.3.0.
  • Added the necessary HPOS (High-Performance Order Storage) compatibility code.

2.1.1

  • Version bumps to ensure DCF is working with WordPress 6.0 and WooCommerce 6.5.1.

2.0

  • Turns out WordPress thinks v1.21 is “newer” than 1.4 – kind of makes sense; we should’ve made v1.21 as v1.2.1. Anyway, we’re releasing v2.0 which is the same as v1.4 but this will set the record straight and people using v1.21 will get updates this time.

1.4

  • Tested up to WordPress’s and WooCommerce’s latest versions.
  • Fixed non-dismissible notice.
  • New uninstall.php.

1.21

  • Forgot to change the version name in the PHP file… (sigh)

1.2

  • Tested with WooCommerce v4.0.1.
  • Changed dependancy of the cart fragments script from woommerce(.min).js to jquery.js.

1.01

  • Edited readme.txt to fix the info on the “Installation” section.
  • Branded the plugin with a nice little icon.

1.0

  • Initial release

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…

LiteSpeed Cache icon

LiteSpeed Cache

4.8 · 7M+ installs

All-in-one unbeatable acceleration & PageSpeed improvement: caching, image/CSS/JS optimization...

WooCommerce icon

WooCommerce

4.5 · 7M+ installs

Everything you need to launch an online store in days and keep it growing for years. From your…