rtsb_name = esc_html__( 'Billing Form', 'shopbuilder' ); $this->rtsb_base = 'rtsb-billing-form'; parent::__construct( $data, $args ); } /** * Widget Field * * @return array */ public function widget_fields() { return CheckoutFromSettings::widget_fields( $this ); } /** * Set Widget Keyword. * * @return array */ public function get_keywords() { return [ 'Checkout' ] + parent::get_keywords(); } /** * Render Function * * @return void */ protected function render() { if ( $this->has_checkout_restriction() ) { echo esc_html( apply_filters( 'woocommerce_checkout_must_be_logged_in_message', esc_html__( 'You must be logged in to checkout.', 'shopbuilder' ) ) ); return; } $this->theme_support(); $data = [ 'template' => 'elementor/checkout/billing-form', 'controllers' => $this->get_settings_for_display(), ]; if ( $this->is_builder_mode() ) { wc_load_cart(); } Fns::load_template( $data['template'], $data ); $this->theme_support( 'render_reset' ); } }