| 开发者 | elis85 |
|---|---|
| 更新时间 | 2026年11月18日 13:07 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
woocommerce-message, woocommerce-error, woocommerce-info, woocommerce-notice), including the ones added by AJAX (cart fragments, checkout errors, applied coupons).[ainfn_show id="custom_xxx"] or [ainfn_show name="My Notification"]
JavaScript
AinfnFloatingNotices.displayCustomNotification('custom_xxx');
Developer hooks
ainfn_scanned_plugin_notifications (filter): add or change the third-party notification definitions used by the plugin scanner.ainfn_allow_guest_notice_detection (filter, default false): let visitors who are not logged in report new notices for the admin list./wp-content/plugins/, or install it from the Plugins screen.Yes. Any notice printed with the standard WooCommerce notice markup is shown as a floating notice. Browse your shop while logged in as a store manager, and the new notices appear in the admin list, where you can customize them.
It handles the classic WooCommerce notice markup. Block-based cart and checkout pages show their own notices.
Coupon success messages are, and so are coupon errors that WooCommerce shows as a notice, for example "Sorry, it seems the coupon … is invalid - it has now been removed from your order." Those use the Invalid Coupon setting. On the classic cart, an invalid-code error is shown inline next to the coupon field, so it stays where WooCommerce puts it.
SUMO Reward Points, PW Gift Cards, SUMO Waitlist, YITH Wishlist, WooCommerce Subscriptions and WooCommerce Points and Rewards. Developers can add more with the ainfn_scanned_plugin_notifications filter.
Yes. Create them in the Custom Notifications tab and show them with the [ainfn_show] shortcode or the JavaScript API.
all-in-floating-notices-for-woocommerce).[ainfn_show] shortcode queues its notice with wp_add_inline_script() on the enqueued front-end script instead of printing a <script> tag. The admin preview and copy-ID buttons no longer use inline onclick handlers.ainfn / AINFN / AinfnFloatingNotices prefix.ainfn_allow_guest_notice_detection filter.esc_html_e, esc_attr).Requires Plugins: woocommerce, Donate link, screenshots. The readme no longer says invalid-coupon errors are converted (WooCommerce shows them inline on the classic cart).