Disable Cart Fragments by Optimocha


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.

Cart fragments betiğini devre dışı bırakmak neden önemli?

WooCommerce makes an AJAX request to check your cart and update your cart totals in wherever your theme shows cart contents (like the header menu). This AJAX call is made to override caching plugins, which is good, but it generally takes time.

Disable Cart Fragments bu sorunu nasıl çözüyor?

With our plugin, you have the best of both worlds: You keep using the caching plugin and you still get to update the cart totals when the cart is not empty. This check is made via WooCommerce cart cookies, so it still employs JavaScript but doesn’t rely on slow AJAX requests. The check is made instantly, whether you’re using a caching plugin or not. How cool is that?

WooCommerce Optimizasyon Hizmetleri

Bize Optimocha.com adresinden ulaşabilir ve WooCommerce web sitenizin hız optimizasyonunu yaptırabilirsiniz!

Eklentinin ana özellikleri

  • WooCommerce’ün “cart fragments” betiğini devre dışı bırakır.
  • Checks the cart cookies and if it’s not empty, loads the cart fragments script so the cart totals are still updated.
  • Brings you joy. (WARNING: Might not bring joy in some rare cases.)


  1. Eklentinin zip dosyasını bilgisayarınıza indirin
  2. ZIP dosyasının içeriğini dışarı çıkarın.
  3. disable-cart-fragments klasörünü /wp-content/plugins/ dizinine yükleyin.
  4. WordPress panelindeki ‘Eklentiler’ menüsünden eklentiyi etkinleştirin.
  5. Eklentiyi etkinleştirdiğinizde çalışmaya başlar. Ayar sayfası yoktur; etkinleştirin ve kullanın.


26 Haziran 2023 1 yanıt
Updated my review from 1 to 3 stars as author replied here and presumably allowed the notice to be dismissed (I've replaced the plugin so I cannot verify). This plugin advertises speed optimization services via an admin notification but unfortunately it is dismissible for administrator level accounts but not for shop manager accounts. Either an unfortunate bug or intentionally advertising to less privileged user accounts. Either way, we replaced this plugin with one that doesn't do this.
21 Nisan 2023 1 yanıt
Fantastic and magical plugin. It should be merged as an option in the WooCommerce settings itself
19 Eylül 2022 2 yanıt
Probably the best free plugin for any WooCommerce site! Thank you so much 🙂
7 Haziran 2021 1 yanıt
This little plugin is working really well removing WC fragments when needed and leaving it alone if there are items in the cart. This means my cart menu icon displays correctly if they have items but are on a non-woo commerce page. Simple, no settings, it just goes to work.
15 incelemeyi oku

Katkıda Bulunanlar ve Geliştiriciler

“Disable Cart Fragments by Optimocha” açık kaynaklı yazılımdır. Aşağıdaki kişiler bu eklentiye katkıda bulunmuşlardır.

Katkıda bulunanlar

“Disable Cart Fragments by Optimocha” 5 dile çevrildi. Katkıda bulundukları için çevirmenlere teşekkürler.

“Disable Cart Fragments by Optimocha” eklentisini dilinize çevirin.

Geliştirmeyle ilgilenir misiniz?

Kodu görüntüle, SVN deposuna göz at veya RSS ile geliştirme günlüğüne abone ol.

Değişiklik Kaydı


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


  • 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.


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


  • 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.


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


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


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


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


  • Initial release