Skip to content
GPLWP Guides

How to display promotional messages in WooCommerce

WooCommerce Time About 15 minutes 6 steps Updated 17 Nov 2026

WOOCOMMERCE
The short answer

WooCommerce can show a site-wide promotion with its built-in Store Notice, and you can add targeted messages to cart or product areas with hooks. Use the built-in route for one simple announcement; use a top-bar plugin when you need scheduling, display rules, scrolling, or better mobile control.

The route
  1. 01Decide where to show it
  2. 02Use the built-in Store Notice
  3. 03Add a targeted cart message
  4. 04Schedule and check the offer
  5. 05Know the manual route’s limits
  6. 06Use the fast top-bar route

What you need

  • A WooCommerce store on WordPress 6.0 or later
  • Administrator access to WordPress
  • The promotion details, landing page and end date

Decide where to show it

Choose whether the message should appear across the store, only on the cart, or on selected products and pages. Keep the wording short and include the customer action, such as Use code SPRING10 or Free shipping over $75.

Set up the discount, coupon, shipping rule or sale separately. Displaying a message does not create or disable the offer itself.

Use the built-in Store Notice

For one site-wide announcement, go to Appearance > Customize > WooCommerce > Store Notice. Enter the promotional text, enable the notice, preview it and select Publish. WooCommerce documents this feature specifically for promotions such as holiday sales, bundles and free shipping.

If your block theme hides the Customizer, open /wp-admin/customize.php directly. The notice’s position and styling vary by theme, and visitors may be able to dismiss it.

Add a targeted cart message

When the offer matters only after a shopper has opened the cart, add the message before the cart contents with the woocommerce_before_cart action. WooCommerce’s documented pattern is to attach a function to that hook and output the message there.

Place the code in a child theme or a snippets tool rather than the parent theme. A simple implementation can use add_action( 'woocommerce_before_cart', function() { echo '<p>Free shipping on orders over $75.</p>'; } );. Test the cart, checkout and mobile layouts after adding it.

Schedule and check the offer

To schedule a Store Notice change, open the notice in the Customizer, use the settings gear, choose Schedule and set the date and time. Schedule both the start and the removal where appropriate, then confirm the site timezone under Settings > General.

Check the message in an incognito window, on a phone and on a product, cart and checkout page. Clear page-cache and CDN cache before judging a change. The common Friday mistake is removing the notice while leaving the coupon or sale active, so verify the promotion separately.

Know the manual route’s limits

The built-in Store Notice is usually enough for one plain announcement. It becomes awkward when you need different messages by product, category, page, country or customer action, or when you want a prominent bar with a call-to-action button.

Cart-specific notices can be added with code, but they need maintenance when themes, checkout blocks or other extensions change. WooCommerce’s own documentation describes hooks as an advanced customisation route and does not provide implementation support for custom snippets.

Use the fast top-bar route

For scheduled, responsive announcements across selected parts of a store, use Top Bar for WooCommerce. Create a bar, enter the message and choose its position, display targets and call-to-action. Top-bar extensions can target products, categories, pages, posts or countries and can provide priority controls when more than one bar is active.

This is the fast way when you need scroll or delay triggers, mobile-friendly presentation, scheduled campaigns and analytics without maintaining custom theme code. The built-in Store Notice remains the better choice for a single, simple store-wide message.

The fast route

Let Top Bar for WooCommerce do it

Scheduled, responsive top-bar announcements with scroll and delay triggers for stores promoting offers sitewide.

Get Top Bar for WooCommerce

Sources

  1. woocommerce.com /document/woocommerce-customizer/store-notice/?utm_source=op…
  2. woocommerce.com /document/actions-and-filters/?utm_source=openai
  3. woocommerce.com /document/top-bar/?utm_source=openai

Questions

Does WooCommerce have a built-in way to display a promotion?
Yes. WooCommerce includes a Store Notice under Appearance > Customize > WooCommerce > Store Notice. Enter the message, enable it and publish the Customizer changes. It is suitable for a site-wide announcement about a sale, bundle, event or free shipping. It does not create the discount, coupon or shipping rule, so configure and test the actual offer separately.
Why is the WooCommerce Store Notice missing?
The Store Notice is missing when it is disabled, the Customizer changes were not published, or the theme does not output the notice in the expected location. Block themes may hide the normal Customizer menu, so open <code>/wp-admin/customize.php</code> directly. Also clear page-cache and CDN cache, then check the notice on the front end rather than only in the preview.
Can I show a promotional message only on the cart page?
Yes. Add a small custom function to the <code>woocommerce_before_cart</code> action so the message appears before the cart contents. Put the code in a child theme or snippets tool, not a parent theme. This approach is useful for reminders such as free shipping thresholds, but it requires testing after theme or checkout changes.
Can I schedule a WooCommerce promotional message?
Yes. The Store Notice Customizer includes a Schedule option for publishing a change at a chosen date and time. Schedule the message to appear and a later change to remove or replace it, and check that the WordPress site timezone is correct. Removing the notice does not stop a coupon, sale price or shipping promotion from running.
When should I use a top-bar plugin instead of Store Notice?
Use a top-bar plugin when the promotion needs a stronger visual treatment, a button, targeted display rules, scroll or delay triggers, responsive controls, scheduling or campaign reporting. Store Notice is fine for one simple site-wide message, but a plugin avoids building and maintaining custom theme code for several campaigns or display conditions.