| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年10月2日 19:59 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.
Cartdock is not on the WordPress.org directory yet, so if you want to read the
code, report a bug or suggest a change, the repository is at
github.com/wppoland/plogins-anchor.
Documentation and links
/wp-content/plugins/cartdock, or install via Plugins > Add New.Yes. Cartdock only runs when WooCommerce is active.
Yes. The bar mirrors WooCommerce's native variations form: pick options on the page and the bar's price and buy button update to match; the button disables itself if the selected variation is out of stock.
No. The stylesheet and script load only on single product pages, the script is deferred, and the bar is fixed to the viewport and hidden until it is needed. Because it starts outside the document flow, showing it does not shift the page.
Yes. Set the scroll threshold in pixels under WooCommerce > Cartdock (0-5000).
Yes. On simple products the bar shows the title, price and add-to-cart button. On variable products it tracks the selected variation.
Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.
anchor/bar_rendered action and anchor:bar-visible front-end event for PRO analytics.anchor/bar_visible filter so PRO and custom code can hide the bar per product without loading assets.