WooCommerce · Elementor

WC Cart widget for Elementor

The WooCommerce cart shortcode, styled in Elementor. Use on a cart template, not on a random marketing page.

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

The WooCommerce cart shortcode, styled in Elementor. Use on a cart template, not on a random marketing page.

Woo Shortcode Cart widget. Renders the standard WooCommerce [woocommerce_cart] 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 Cart”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Background Color”, “Border”, “Border Radius”, “Background 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 Cart.

Inspector controls from this widget’s PHP

ControlWhat the code does
Cart Table — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Cart Table — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table`.
Cart Table — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Table Header — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Table Header — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Table Header — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table thead th`.
Table Header — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Table Header — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table thead th`.
Table Cells — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Table Cells — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Table Cells — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Table Cells — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table tbody td`.
Product Thumbnail — WidthWrites CSS (width, max-width) onto the widget’s front-end markup. (min 30, max 200).
Product Thumbnail — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Remove Button — ColorWrites CSS `color` onto the widget’s front-end markup.
Remove Button — Hover ColorWrites CSS (remove, color) onto the widget’s front-end markup.
Remove Button — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Remove Button — Hover Background ColorWrites CSS (remove, background-color) onto the widget’s front-end markup.
Remove Button — SizeWrites CSS (font-size, width, height, line-height) onto the widget’s front-end markup. (min 16, max 50).
Product Name — ColorWrites CSS `color` onto the widget’s front-end markup.
Product Name — Hover ColorWrites CSS (a, color) onto the widget’s front-end markup.
Product Name — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table td.product-name a`.
Price — ColorWrites CSS `color` onto the widget’s front-end markup.
Price — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table td.product-price, {{WRAPPER}} .wooc…`.
Quantity Input — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Quantity Input — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Quantity Input — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form table.shop_table td.product-quantity .quantity .qty`.
Quantity Input — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Quantity Input — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Quantity Input — WidthWrites CSS `width` onto the widget’s front-end markup. (min 40, max 150).
Update Cart Button (Normal) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Update Cart Button (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Update Cart Button (Hover) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Update Cart Button (Hover) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Update Cart Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-cart-form button[name="update_cart"]`.
Update Cart Button — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Update Cart Button — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Update Cart Button — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form button[name="update_cart"]`.
Update Cart Button — MarginWrites CSS `margin` onto the widget’s front-end markup.
Coupon Field — Input BackgroundWrites CSS `background-color` onto the widget’s front-end markup.
Coupon Field — Input Text ColorWrites CSS `color` onto the widget’s front-end markup.
Coupon Field — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .woocommerce-cart-form .coupon input.input-text`.
Coupon Field — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Coupon Field — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Coupon Field — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .woocommerce-cart-form .coupon button[name="apply_coupon"]`.
Coupon Field — Button PaddingWrites CSS `padding` onto the widget’s front-end markup.
Coupon Field — Button Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Coupon Field — Input PaddingWrites CSS `padding` onto the widget’s front-end markup.
Coupon Field — Input Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Cart Totals — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Cart Totals — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Cart Totals — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .cart_totals`.
Cart Totals — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Cart Totals — Heading ColorWrites CSS `color` onto the widget’s front-end markup.
Cart Totals — Heading TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .cart_totals h2`.
Cart Totals — Label ColorWrites CSS `color` onto the widget’s front-end markup.
Cart Totals — Value ColorWrites CSS `color` onto the widget’s front-end markup.
Proceed to Checkout Button (Normal) — Text ColorWrites CSS `color` onto the widget’s front-end markup.
Proceed to Checkout Button (Normal) — Background ColorWrites CSS `background-color` onto the widget’s front-end markup.
Proceed to Checkout Button (Hover) — Text ColorWrites CSS (checkout-button, color) onto the widget’s front-end markup.
Proceed to Checkout Button (Hover) — Background ColorWrites CSS (checkout-button, background-color) onto the widget’s front-end markup.
Proceed to Checkout Button — TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .wc-proceed-to-checkout a.checkout-button`.
Proceed to Checkout Button — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Proceed to Checkout Button — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Proceed to Checkout Button — BorderElementor border group: type, width, color, and radius when the group includes it. Selector: `{{WRAPPER}} .wc-proceed-to-checkout a.checkout-button`.
Proceed to Checkout Button — MarginWrites CSS `margin` onto the widget’s front-end markup.
Proceed to Checkout Button — Full WidthSwitcher inspector control (`checkout_button_full_width`).

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 Cart 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 Cart 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 Cart after you activate it.

Get King Addons