WooCommerce · Elementor

WC Shop Messages widget for Elementor

WooCommerce notices (added to cart, errors) so they still show on a custom Elementor shop layout.

Open live demo

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

WooCommerce notices (added to cart, errors) so they still show on a custom Elementor shop layout.

Woo Shortcode Shop Messages widget. Renders shop messages/notices using [shop_messages] shortcode.

Output depends on WooCommerce objects (products, cart, or account). Empty without WooCommerce data.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “WC Shop Messages”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Show Preview Message”, “Background Color”, “Text Color”, “Border Color”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including WC Shop Messages.

Inspector controls from this widget’s PHP

ControlWhat the code does
Info — Show Preview MessageShow a sample message in editor preview.
Success Message — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Success Message — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Success Message — Border ColorWrites CSS `border-color` onto the widget’s front-end markup.
Success Message — Link ColorWrites CSS `color` onto the widget’s front-end markup.
Success Message — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-message`.
Success Message — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Success Message — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Success Message — MarginWrites CSS `margin` onto the widget’s front-end markup.
Success Message — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-message`.
Error Message — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Error Message — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Error Message — Border ColorWrites CSS `border-color` onto the widget’s front-end markup.
Error Message — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-error`.
Error Message — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Error Message — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Error Message — MarginWrites CSS `margin` onto the widget’s front-end markup.
Error Message — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-error`.
Info Notice — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Info Notice — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Info Notice — Border ColorWrites CSS `border-color` onto the widget’s front-end markup.
Info Notice — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-info`.
Info Notice — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Info Notice — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Info Notice — MarginWrites CSS `margin` onto the widget’s front-end markup.
Info Notice — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-info`.

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Which WC Shop Messages options need King Addons Pro?

Controls marked with the Pro icon in this widget’s PHP. King Addons Pro is a separate license from Elementor Pro.

Does WC Shop Messages require WooCommerce?

Yes. Install WooCommerce and add products (or complete a cart) before this widget has anything to show.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related woocommerce widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for WC Shop Messages after you activate it.

Get King Addons