ModKor Ajax Cart for Magento 2 & Hyva
- SKU
- AjaxCart
- Magento 2.4.8+ (Community Edition)
- Hyva 1.4.6+ (License required)
- Php 8.4+
- Node 20+
Everyone else treats "add to cart" as a notification. ModKor treats it as the highest-intent moment in the session — and makes it instant, on-brand and bot-resistant.
ModKor Ajax Cart adds products without a page reload on category, search, home and product pages — and works with no template overrides, so it keeps working when you restyle your cards or upgrade your theme. It's built for Hyvä from the ground up (not a Luma engine with a bolted-on compatibility layer), ships as one module, and contains zero inline JavaScript — so it passes Hyvä's strict Content-Security-Policy with nothing to whitelist and keeps your Lighthouse score intact.
Turn the add-to-cart moment into revenue
- Free-shipping progress meter — "You're $12 away from free shipping" with a live bar, shown the instant they add. Directly lifts average order value; almost no Magento cart does this.
- Undo — a Gmail-style "Added ✓ · Undo" removes the item if they change their mind. Less anxiety = more adds.
- "Only 3 left" scarcity — truthful, from real salable stock — and an optional "reserved in your cart" countdown.
- Behavioral buttons — the pop-up emphasizes Checkout vs Keep shopping based on cart value and item count.
- Smart upsell — genuine cross-sells first, related as a fallback, nothing if neither — plus a one-click "Add all" button.
Four ways to confirm the add — your choice
- Confirmation pop-up — product, cart count, subtotal, related slider, six alignments, optional auto-close timer.
- Mini-cart — slide out the Hyvä cart drawer instead.
- Inline button → qty stepper — the "Add to Cart" button morphs in place into a live
− 1 +control. No modal. (Rare in Magento — common on the best DTC stores.) - Silent — just the fly-to-cart animation and an updated count.
Delight in the details
- Fly-to-cart animation — the product tile flies into the cart icon, which then bounces. Composited (transform/opacity only), so it's smooth and cheap.
- Bottom sheet on mobile, an "✓ in cart" ribbon on listings, optional add sound and haptic tap, and a "recently added" filmstrip.
- Handles products with options — a listing item that needs a size/colour opens a dialog with your theme's real add-to-cart form (or sends them to the product page — your call).
Bot protection, batteries included
A built-in rate limiter caps add-to-cart requests per IP to stop scripts hammering your cart — with no extra Composer library to install (competitors require symfony/rate-limiter + symfony/lock). Only the add-to-cart route is affected; login and checkout are never touched.
On-brand, fast & CSP-strict
- Matches your Hyvä theme — colours and dark mode automatically — or set an exact palette with a live preview.
- Zero inline JavaScript: one external engine + an inert JSON settings island + CSS-variable theming. Nothing to whitelist under strict CSP; Lighthouse 100 stays 100.
- No template overrides — the engine hooks add-to-cart by delegation, so it survives restyles and theme upgrades.
One module vs. a stack of packages
The leading alternative splits AJAX cart across a Luma core, a separate Hyvä compatibility package, a rate-limiter add-on and a subscription pack — plus two Symfony libraries. ModKor Ajax Cart is one Hyvä-native install with the rate-limiter built in, edited from a single live-preview admin page with per-store-view overrides.
Compatibility
Magento Open Source / Adobe Commerce 2.4.x · PHP 8.1–8.4 · Hyvä storefront · ModKor_Core (ships with the suite) · Bilingual EN + FR · WCAG- and Lighthouse-friendly.





