| @@ -57,13 +57,17 @@ | ||
| 57 | 57 | * |
| 58 | 58 | * @return void |
| 59 | 59 | */ |
| 60 | 60 | protected function render() { |
| 61 | - $controllers = $this->get_settings_for_display(); | |
| 62 | - $this->theme_support(); | |
| 61 | + if ( $this->has_checkout_restriction() ) { | |
| 62 | + return; | |
| 63 | + } | |
| 64 | + | |
| 65 | + $this->theme_support(); | |
| 66 | + | |
| 63 | 67 | $data = [ |
| 64 | 68 | 'template' => 'elementor/checkout/order-notes', |
| 65 | - 'controllers' => $controllers, | |
| 69 | + 'controllers' => $this->get_settings_for_display(), | |
| 66 | 70 | 'checkout' => WC()->checkout(), |
| 67 | 71 | ]; |
| 68 | 72 | |
| 69 | 73 | if ( $this->is_builder_mode() ) { |
| @@ -70,8 +74,8 @@ | ||
| 70 | 74 | wc_load_cart(); |
| 71 | 75 | } |
| 72 | 76 | |
| 73 | 77 | Fns::load_template( $data['template'], $data ); |
| 74 | - $this->theme_support( 'render_reset' ); | |
| 78 | + | |
| 79 | + $this->theme_support( 'render_reset' ); | |
| 75 | 80 | } |
| 76 | - | |
| 77 | 81 | } |