Title: Ajaxified Cart
Author: Abhishek Kumar
Published: <strong>14 maart 2017</strong>
Last modified: 2 augustus 2026

---

Plugins zoeken

![](https://ps.w.org/ajaxified-cart-woocommerce/assets/banner-772x250.jpg?rev=1616858)

![](https://ps.w.org/ajaxified-cart-woocommerce/assets/icon-256x256.jpg?rev=1616858)

# Ajaxified Cart

 Door [Abhishek Kumar](https://profiles.wordpress.org/abhishekfdd/)

[Download](https://downloads.wordpress.org/plugin/ajaxified-cart-woocommerce.2.0.2.zip)

 * [Details](https://nl.wordpress.org/plugins/ajaxified-cart-woocommerce/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/ajaxified-cart-woocommerce/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/ajaxified-cart-woocommerce/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/ajaxified-cart-woocommerce/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/)

## Beschrijving

WooCommerce core does not provide AJAX add-to-cart on the single product page or
for variable products listed on archive pages (it redirects to the single view).
This plugin adds an unobtrusive AJAX workflow for:

 * Simple products (single product page button becomes AJAX)
 * Variable products on archive & block-based Product Collection (opens an accessible
   modal to choose attributes, then adds via AJAX)
 * Classic themes and modern block/FSE themes (2025 and later) with Product Collection
   blocks

Highlights:
 * Works with WooCommerce fragments (mini-cart updates automatically)*
Accessible modal (focus trap, ESC to close, restore focus) * Nonce-secured AJAX 
endpoints; sanitized and validated input * Settings page to enable/disable variable
product archive functionality * Block theme compatibility (intercepts “Select options”
buttons) with slug/product_id fallback * Performance-minded (loads minified bundles
built via Webpack; falls back to source if missing) * Translations auto-loaded from
WordPress.org (no manual POT/PO generation required)

Privacy: This plugin does not send any data to external services. It only uses WooCommerce
cart/session APIs.

### Development

Build commands:

 1. Install dependencies:
     npm install
 2. Production build (minified + source maps):
     npm run build
 3. Watch during development:
     npm run watch
 4. Lint JS:
     npm run lint

Translations: WordPress.org language packs auto-load this plugin’s strings. The 
former POT/PO/MO tooling and i18n loader file were removed (WP 4.6+). Do not add
a load_plugin_textdomain() call; simply keep the Text Domain header accurate.

WooCommerce is a registered trademark of Automattic Inc. This plugin is not affiliated
with or endorsed by Automattic/WooCommerce.

## Installatie

 1. Upload the `ajaxified-cart-woocommerce` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. (Optional) Visit Settings > General > Ajaxified Cart to enable variable product
    archive AJAX.
 4. (Developers) Build assets if modifying JS: `npm install && npm run build`.

## FAQ

### Does it work with block / FSE themes like Twenty Twenty-Five?

Yes. Variable product “Select options” buttons in Product Collection blocks are 
intercepted, opening a modal for attributes.

### How do I enable AJAX for variable products on archive pages?

Go to Settings > General > Ajaxified Cart and check “Enable ajaxified cart for variable
products on archive page”.

### Can I customize the modal styling?

Yes. Override or enqueue your own CSS after `abwc-modal` or copy the CSS file and
adjust.

### Will this conflict with caching or optimization plugins?

Typically no. Ensure the localized nonce is not stripped and that minification does
not remove required data attributes.

### Does it support multi-site?

Yes, it works on multi-site installations.

### How are translations handled?

They are served automatically from WordPress.org language packs; no manual tools
or bundled .mo files are needed.

## Beoordelingen

![](https://secure.gravatar.com/avatar/f748cd8fbf55d4ff015139df4bc30dfade0a6096d3432dd661d904a2b590aef7?
s=60&d=retro&r=g)

### 󠀁[Simple & Functional](https://wordpress.org/support/topic/simple-functional-25/)󠁿

 [janon123](https://profiles.wordpress.org/janon123/) 12 februari 2026

Activate it and forget it! Works with variations, pimwick gift cards and many other
plugins on a heavily customized site. Thank you!

![](https://secure.gravatar.com/avatar/6d3f8a4138e7d0976588e2619e9a334005a68a12e3ef1f345ecd27f3261345b0?
s=60&d=retro&r=g)

### 󠀁[Compatibility issues](https://wordpress.org/support/topic/compatibility-issues-37/)󠁿

 [uniqcode](https://profiles.wordpress.org/uniqcode/) 2 februari 2021

This plugin works fine for simple products, but it does not submit any additional
form fields, which means it's incompatible with many plugins like Extra Product 
Options, Gift Cards etc, that collect additional options and information on the 
product page.

![](https://secure.gravatar.com/avatar/7435ea19ee9c8d28e9119f03d4d84c82352ba3aff3db5158835e51f53c6f9ba1?
s=60&d=retro&r=g)

### 󠀁[It works. And it works great!](https://wordpress.org/support/topic/it-works-and-it-works-great-2/)󠁿

 [alnimos](https://profiles.wordpress.org/alnimos/) 15 januari 2021

Very simple and very useful. Thanks, MAN!

![](https://secure.gravatar.com/avatar/7315c567321ba9b67dd32712df8ba9c45335a19e53f755f0d748e452ade354f7?
s=60&d=retro&r=g)

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-1661/)󠁿

 [classikd](https://profiles.wordpress.org/classikd/) 28 maart 2020

Thank you a lot

![](https://secure.gravatar.com/avatar/aed3b58066302472baa80a9a7a85724cf2d5bf4a6ab431895af1e0a72920e37a?
s=60&d=retro&r=g)

### 󠀁[Exactly what I need](https://wordpress.org/support/topic/exactly-what-i-need-122/)󠁿

 [kookool](https://profiles.wordpress.org/kookool/) 21 maart 2020

Great Job. Thanks

![](https://secure.gravatar.com/avatar/b8cf7dfb74a1f693fa7fa982d4b2837b1252ea216907c91765c2af7ecde49ce2?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-22647/)󠁿

 [steloot](https://profiles.wordpress.org/steloot/) 7 augustus 2019

Was searching for a simple solution to Add to cart without redirection or reloading
the page. This did the trick! Thanks!

 [ Lees alle 13 beoordelingen ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/)

## Bijdragers & ontwikkelaars

“Ajaxified Cart” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ Abhishek Kumar ](https://profiles.wordpress.org/abhishekfdd/)

[Vertaal “Ajaxified Cart” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/ajaxified-cart-woocommerce)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/ajaxified-cart-woocommerce/),
haal de [SVN repository](https://plugins.svn.wordpress.org/ajaxified-cart-woocommerce/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/ajaxified-cart-woocommerce/)
via [RSS](https://plugins.trac.wordpress.org/log/ajaxified-cart-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.2

 * Fix: Prefixed bootstrap variable for URL to satisfy WPCS global prefix rule.
 * Tweak: Shorter plugin header/tagline (<150 chars) for WordPress.org guidelines.
 * Security: Refinement of variation attribute sanitization (removed phpcs ignore,
   explicit key/value cleanup).
 * Cleanup: Removed unused POT tooling file and generator script; relies on WP.org
   language packs.
 * Cleanup: Removed uninstall references/documentation.

#### 2.0.1

 * Security: Strengthened sanitization for quantity, variation data, product slug,
   and variation_id validation.
 * Added Requires Plugins header for explicit WooCommerce dependency.
 * Escaped output of hidden AJAX input via wp_kses.
 * Removed legacy translation loader & uninstall cleanup code; simplified README.

#### 2.0.0

 * Build migration: moved from Grunt to Webpack (minified bundles + source fallback).
 * Performance & code structure improvements.
 * Compatibility updates: Tested up to WordPress 6.8.3 and recent WooCommerce versions.
 * Block theme support: Product Collection block variable products open an AJAX 
   modal.
 * Security: Added nonce verification + full sanitization for all AJAX inputs.
 * Accessibility: Focus trap, ESC close, refresh link, restored focus to triggering
   button, improved modal semantics.
 * Internationalization: Auto-load via WordPress.org (removed manual textdomain 
   loader & POT tooling).
 * Styling: Introduced dedicated modal stylesheet (abwc-modal.css).
 * Compliance: ABSPATH guards across files, WPCS docblock adjustments, sanitized
   settings.
 * Fallback logic: Ensures dist minified JS used when available, source files otherwise.

#### 1.0.0

 * Initial release

#### 1.0.1

 * Code Refactor for performance

#### 1.0.2

 * Single Product page AJAX fix

#### 1.0.3

 * Cart Display fix

#### 1.2.0

 * Added admin settings page for enabling/disabling ajaxified cart for variable 
   products on shop page.
 * Now ajaxified cart is working for variable products on shop page.
 * Notices fixed on product single page.

#### 1.2.1

 * Fatal error fix

#### 1.2.2

 * Simple products archive ajax add to cart when variable product archive ajax option
   is enabled issue fix.
 * Fixed 500 error when trying to add more variation products to cart than stock
   holds.

## Meta

 *  Versie **2.0.2**
 *  Laatst geüpdatet **3 maanden geleden**
 *  Actieve installaties **300+**
 *  WordPress versie ** 5.8 of nieuwer **
 *  Getest t/m **7.0.8**
 *  PHP versie ** 8.0 of nieuwer **
 *  Taal
 * [English (US)](https://wordpress.org/plugins/ajaxified-cart-woocommerce/)
 * Tags
 * [add to cart](https://nl.wordpress.org/plugins/tags/add-to-cart/)[ajax](https://nl.wordpress.org/plugins/tags/ajax/)
   [block themes](https://nl.wordpress.org/plugins/tags/block-themes/)[cart](https://nl.wordpress.org/plugins/tags/cart/)
   [woocommerce](https://nl.wordpress.org/plugins/tags/woocommerce/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/ajaxified-cart-woocommerce/advanced/)

## Waarderingen

 4.8 van 5 sterren.

 *  [  12 5 sterren beoordelingen     ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/?filter=5)
 *  [  0 4 sterren beoordelingen     ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/?filter=4)
 *  [  1 3 ster beoordeling     ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/?filter=3)
 *  [  0 2 sterren beoordelingen     ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/?filter=2)
 *  [  0 1 sterren beoordelingen     ](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/?filter=1)

[Je beoordeling](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/reviews/)

## Bijdragers

 *   [ Abhishek Kumar ](https://profiles.wordpress.org/abhishekfdd/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/ajaxified-cart-woocommerce/)

## Doneren

Wil je de groei van deze plugin ondersteunen?

 [ Doneer aan deze plugin ](https://github.com/abhishekfdd)