| 开发者 |
coolhuntersgt
rankd.site |
|---|---|
| 更新时间 | 2026年8月14日 23:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[rankd_free_shipping], or turn on auto-inject to have it appear automatically at the top of your cart and checkout pages. Settings are under WooCommerce → Settings → Free Shipping Progress.
What it does
[rankd_free_shipping] works on any page, widget area, or theme template{amount} and {coupon} merge tagsrankd-free-shipping-progress-bar folder to /wp-content/plugins/, or install via Plugins → Add New → Upload Plugin[rankd_free_shipping] on your siteGo to WooCommerce → Settings → Free Shipping Progress and either enable one of the Auto-inject options, or place the shortcode [rankd_free_shipping] somewhere on your site.
Yes, on all pages. Classic cart/checkout responds immediately to WooCommerce cart update events. Block-based themes and other contexts update via a polling loop every 2.5 seconds.
Go to WooCommerce → Settings → Free Shipping Progress and click the Appearance tab. You'll find color pickers for all states, font family, font size, and border radius controls, with a live preview that updates as you make changes.
Not fully. This plugin shows one threshold to all visitors. If your zones have the same threshold there's no problem. If they differ significantly, a geo-aware plugin will serve you better for this feature.
Add .rankd-fs-bar-track { display: none; } to Appearance → Customize → Additional CSS.
Yes. The plugin outputs standard HTML and CSS with body-scoped selectors to handle specificity from page builders. The font selector on the Appearance tab detects fonts already registered by your page builder.
Yes. The progress message itself is excluded from static page caching by design — it's refreshed via AJAX after page load, so even on a fully cached page the displayed amount will update to reflect the current cart. If your host or caching plugin caches AJAX/admin-ajax.php responses (uncommon, but some aggressive configurations do), you may need to exclude admin-ajax.php requests from caching for live updates to work correctly.
The threshold compares against your cart's subtotal before tax (get_cart_contents_total()), which matches how WooCommerce's own free shipping zone settings calculate eligibility in most configurations. If your store has an unusual tax setup where this doesn't match, the rankd_fs_subtotal filter (see Developer Filters below) lets you override the calculation.
Yes. The plugin declares HPOS compatibility and doesn't interact with order data directly — it only reads the current cart session, so HPOS has no effect on its behavior.
wp_add_inline_style() was called on wp_head before the style handle was registered; moved to wp_enqueue_scripts at priority 20 to ensure correct hook order.rankd_fs_threshold, rankd_fs_subtotal, rankd_fs_msg_notice, rankd_fs_msg_success, and rankd_fs_msg_coupon_line for advanced customization. See the Developer Filters section above.WC_Settings_Page for fully reliable saving — previous versions could lose settings under certain WooCommerce configurations.