Directory / plugin
Cartdock – Sticky Add to Cart for WooCommerce
v1.1.13 · by WPPoland (Mariusz Szatkowski)
Keep Add to cart within reach on long product pages, on mobile and desktop, with a slim bar that slides in as shoppers scroll.
About this plugin
Cartdock adds a slim sticky add-to-cart bar to the bottom of your WooCommerce
single product pages. It stays hidden until the shopper scrolls past the main
add-to-cart button, then slides into view showing the product title, price and a
buy button, so the add-to-cart control is still reachable on long pages.
On variable products the bar follows the native variations form. As the shopper
picks options, the price and the buy button update to match the selected variation, and the button
disables itself when the chosen variation is out of stock. Cartdock does not load its own copy of jQuery; it listens to
the variation events WooCommerce already fires.
The bar is positioned with CSS position: fixed and starts hidden, so it sits
outside the document flow and does not push other content around or cause
layout shift when it appears.
To read the code, report a bug or suggest a change, the repository is at
github.com/wppoland/cartdock.
Documentation and links
- Documentation: plogins.com/cartdock/docs/
- Plugin page: plogins.com/cartdock/
- Source code: github.com/wppoland/cartdock
- Bug reports and feature requests: github.com/wppoland/cartdock/issues
- Cartdock Pro: plogins.com/cartdock-pro/
Features
- Sticky add-to-cart bar on single product pages, revealed once the shopper scrolls past the main button.
- Scroll threshold you set in pixels (0 to 5000), so you decide how far down the bar kicks in.
- Shows a small product thumbnail, the title, the price and a buy button. The thumbnail is hidden on screens 360px wide and narrower.
- The bar’s Add to cart sends the quantity chosen in the product form, kept within that field’s minimum, maximum and step.
- On variable products the price tracks the variation the shopper has selected, and the button disables itself if that variation is out of stock.
- Marked up as an ARIA region with a visible focus state and screen-reader label.
- Honours prefers-reduced-motion and has a dark-mode style.
- The bar is fixed to the viewport and starts hidden, so it does not cause layout shift.
- Ships with a POT file for translation, and deleting the plugin removes the two options it stores.
- Declares HPOS and cart/checkout blocks compatibility.
Works with other Plogins plugins
- Swift – Buy Now Button for WooCommerce – with Swift active, tick “Show the Swift Buy Now button in the sticky bar” under Ecosystem integrations and the sticky bar shows Swift’s Buy Now button next to Add to cart on simple products.
Cartdock Pro
Cartdock Pro is a separate paid plugin that extends Cartdock.
Included in Cartdock:
- Sticky add-to-cart bar
- Scroll threshold in pixels
- Title, price and button
- Variation-aware
- Dark mode and reduced-motion
Cartdock Pro adds:
- Custom bar button colour and label
- Placement rules
- Campaign scheduling
- Conversion analytics
The free edition is not a trial and its features stay available without a time limit.
- Cartdock Pro – plogins.com/cartdock-pro/
- Compare editions and pricing – plogins.com/cartdock-pro/pricing/
- PRO documentation – plogins.com/cartdock-pro/docs/
External Services
Cartdock does not connect to any external services. It sends no data off your site
and loads nothing from a third-party CDN; its stylesheet and script (assets/css/anchor.css
and assets/js/anchor.js) are served from your own install, and the front-end script reads
only a small anchorConfig object (the scroll threshold) that WordPress prints inline.
All of Cartdock’s data stays in your database: it stores two autoloaded-off options,
anchor_settings (the enable toggle and scroll threshold) and anchor_db_version,
and keeps no per-product data. Both options are removed when you delete the plugin.
Cartdock sends no email and makes no HTTP requests of its own.
Translations
Cartdock is fully translatable and ships the cartdock.pot template. Translations are delivered by WordPress.org language packs from translate.wordpress.org, which is where Polish, German and Spanish are being contributed; the package itself carries no compiled translation files.