rtsb_name = esc_html__( 'Shipping Method', 'shopbuilder' ); $this->rtsb_base = 'rtsb-shipping-method'; $this->pro_tab = 'style'; parent::__construct( $data, $args ); } /** * Widget Field * * @return array */ public function widget_fields() { return ShippingMethodSettings::widget_fields( $this ); } /** * Set Widget Keyword. * * @return array */ public function get_keywords() { return [ 'Shipping', 'Method' ] + parent::get_keywords(); } /** * Render Function * * @return void */ protected function render() { if ( $this->has_checkout_restriction() ) { return; } $this->theme_support(); $data = [ 'template' => 'elementor/checkout/shipping-method', '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' ); } }