# king-addons/51.1.44/includes/helpers/Woo_Builder/Abstract_Checkout_Widget.php

King Addons for Elementor – 100+ Elementor Widgets, 4 000+ Elementor Templates, WooCommerce Builder, Mega Menu, Popup Builder, version 51.1.44. 42 lines.

- Page: https://pluginprobe.com/plugins/king-addons/51.1.44/code/includes/helpers/Woo_Builder/Abstract_Checkout_Widget.php
- Raw: https://pluginprobe.com/plugins/king-addons/51.1.44/raw/includes/helpers/Woo_Builder/Abstract_Checkout_Widget.php
- Modified: 2025-12-27T05:19:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/king-addons/51.1.44/code/includes/helpers/Woo_Builder/Abstract_Checkout_Widget.php#L10-L20`.

```php
<?php
/**
 * Base class for Checkout builder widgets.
 *
 * @package King_Addons
 */

namespace King_Addons;

use Elementor\Widget_Base;

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Provides checkout context utilities.
 */
abstract class Abstract_Checkout_Widget extends Widget_Base
{
    /**
     * Render placeholder when checkout context is missing.
     *
     * @return void
     */
    protected function render_missing_checkout_notice(): void
    {
        if (!\Elementor\Plugin::$instance->editor->is_edit_mode()) {
            return;
        }

        echo '<div class="king-addons-woo-builder-notice">' . esc_html__('This widget works only on the WooCommerce checkout page.', 'king-addons') . '</div>'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    }
}








```
