SW Free Shipping Notice for WooCommerce

Description

SW Free Shipping Notice for WooCommerce tells customers how much more they need to spend to get free shipping, and congratulates them once they qualify.

  • Floating bar (6 positions, colors, width, close button) and a [sw_free_shipping_notice] shortcode
  • Shown automatically above the cart (classic page and cart block) and above the classic checkout; the floating bar also shows on the block checkout
  • Updates without a page reload when the cart changes
  • Threshold read from the “Free shipping” method of your shipping zones, or entered manually
  • Coupon discounts can be included in the calculation
  • Optional: select “Free shipping” automatically when the cart qualifies
  • Not shown when nothing in the cart needs shipping (for example, only downloadable products)
  • Choose the pages: shop and categories, product pages, cart, checkout, or all pages
  • Messages with {remaining} and {threshold} placeholders
  • Lightweight: one small CSS file and one small script; HPOS and cart/checkout blocks compatible
  • Translation-ready

Screenshots

Installation

  1. Install and activate WooCommerce.
  2. Upload the sw-free-shipping-notice-for-woocommerce folder to /wp-content/plugins/, or install the plugin from Plugins Add New.
  3. Activate the plugin and open WooCommerce Free Shipping Notice.
  4. Add a “Free shipping” method with a minimum order amount to your shipping zone, or enter the threshold manually.

FAQ

How do I change the colors or layout?

Use the bar color settings on the settings page. For anything else, add CSS in Appearance Customize Additional CSS (or the Site Editor) using the .swfsn-inline and #swfsn-bar selectors.

The notice does not appear.

Check that a threshold is set: either a “Free shipping” method with a minimum order amount in WooCommerce Settings Shipping, or the manual threshold on the settings page. Also check the “Display pages” setting.

Can I place the notice in my own template or block?

Yes. Use the [sw_free_shipping_notice] shortcode (for example, in a Shortcode block).

I use a page cache. Does the notice still update?

Yes, as long as WooCommerce’s AJAX requests (URLs containing wc-ajax=) are excluded from the page cache. Most caching plugins exclude them by default, together with the cart and checkout pages.

Does the plugin send any data to an external server?

No. The “Report a bug” and “Support / Feedback” links open space-works.net only when you click them. The plugin version, WordPress and PHP versions and your site URL are placed after “#” in that link, so they are not sent to the server or recorded in access logs.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“SW Free Shipping Notice for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.6

  • Fix: with the checkout block, the checkout could stay on its loading placeholder and show no fields. The notice is no longer added above the checkout block (the floating bar still shows on the checkout page).

1.1.5

  • Removed the “Additional CSS” fields. To change the look, use Appearance Customize Additional CSS (or the Site Editor) with the .swfsn-inline and #swfsn-bar selectors. CSS saved by earlier versions is no longer output.
  • Translation files are no longer bundled; translations are delivered through translate.wordpress.org.

1.1.4

  • Cart and checkout blocks: the notice now appears above the cart and the checkout, as on classic pages.
  • The floating bar and the notice now update without a page reload when the cart changes (cart/checkout blocks and classic AJAX cart updates).

1.1.3

  • The notice is no longer shown when nothing in the cart needs shipping (for example, only downloadable products).
  • New option: select “Free shipping” automatically when the cart qualifies (off by default).
  • The text domain is now sw-free-shipping-notice-for-woocommerce (same as the plugin slug), as required by WordPress.org. Translation files were renamed accordingly.
  • Plugins screen: added “Report a bug”, “Support / Feedback” and “Donate via PayPal” links.
  • Admin footer: added a “Support / Feedback” link.
  • The bug-report link now carries only the plugin, version, WordPress, PHP, site URL and error code, even when the values are changed by a filter.
  • Declares WooCommerce as a required plugin. Tested with WordPress 7.1 and WooCommerce 11.3.

1.1.2

  • The SpaceWorks footer (developer, report a bug, donation links) now appears only on this plugin’s own admin screen, in the same format as other SpaceWorks plugins.
  • Security: all settings are now sanitized on save and again on output (messages, colors, width, position, pages, additional CSS). HTML tags are no longer accepted in the additional CSS fields.
  • Security: the shortcode and the cart/checkout notice now filter the message the same way as the floating bar.
  • The settings page now requires the manage_options capability (same as saving).
  • Fix: the close button of the floating bar no longer submits forms (type=”button”).

1.1.1

  • “Report a bug” link now opens space-works.net/report-issues/ with plugin, version, WP, PHP and site URL in the URL fragment (was /report-issue/ without details).

1.1.0

  • Switch to English source strings (best-practice i18n). Provide translations including ja_JP.