WooCommerce · Elementor
Cart Coupon Form widget for Elementor
Cart Coupon Form is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Get King Addons
This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.
What it actually does
Cart Coupon Form is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Woo Cart Coupon Form widget.
render() writes HTML data attributes: data-ajax-url, data-ka-coupon-toggle, data-mode, data-nonce.
Output depends on WooCommerce objects (products, cart, or account). Empty without WooCommerce data.
The widget script reads data attributes: data-ka-coupon-toggle.
The published page runs AJAX (fetch/jQuery/wp.ajax). The Elementor canvas may not hit the same endpoints.
How to add it in Elementor
- Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
- Open a WooCommerce Builder template. Use the matching cart, checkout, or My Account template so WooCommerce objects exist.
- Insert the widget. Search the panel for “Cart Coupon Form”. Typing “king” lists every King Addons widget.
- Set inspector controls from this widget’s PHP. Configure “Show Heading”, “Heading Text”, “Input Placeholder”, “Button Text”. Style and Content tabs are listed on this page.
- Preview the published page. Woo Cart Coupon Form widget.
When to use it
- A custom cart, checkout, or account template that needs Cart Coupon Form.
- A WooCommerce Builder layout that replaced the theme template.
Inspector controls from this widget’s PHP
| Control | What the code does |
|---|---|
| Content — Show Heading | Switcher inspector control (`show_heading`). |
| Content — Heading Text | Printed in the widget HTML from render(). |
| Content — Input Placeholder | Printed in the widget HTML from render(). |
| Content — Button Text | Printed in the widget HTML from render(). |
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
Why doesn’t Cart Coupon Form work in the Elementor preview?
AJAX handlers run on the published page. Preview the front end (or a Theme Builder preview of a real post) to test submit/filter requests.
Does Cart Coupon Form require WooCommerce?
Yes. This widget reads WooCommerce products, cart, or account objects. Install WooCommerce and add data before the widget has anything to show.
Where should I put Cart Coupon Form?
On a WooCommerce Builder template for cart, checkout, or My Account. It is not meant as a homepage widget.
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
Cart Empty Message
Cart Empty Message is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Checkout ACF Extra Fields
Checkout ACF Extra Fields is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Checkout Steps (Multi-step)
Checkout Steps (Multi-step) is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Checkout Sticky Sidebar
Checkout Sticky Sidebar is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
My Account ACF Extra Fields
My Account ACF Extra Fields is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
My Account Dashboard
My Account Dashboard is a WooCommerce template piece. Use it on a King Addons cart, checkout, or My Account layout, not as a general page widget.
Get King Addons
One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Cart Coupon Form after you activate it.