| @@ -101,21 +101,10 @@ | ||
| 101 | 101 | * |
| 102 | 102 | * @return string Modified or original template path. |
| 103 | 103 | */ |
| 104 | 104 | public function locate_template( $template, $template_name ) { |
| 105 | - if ( 'checkout/review-order.php' === $template_name && BuilderFns::is_checkout() ) { | |
| 106 | - $id = BuilderFns::is_builder_preview() ? get_the_ID() : BuilderFns::builder_page_id_by_type( 'checkout' ); | |
| 107 | - $elmap = ElementorDataMap::instance(); | |
| 108 | - if ( ! $id ) { | |
| 109 | - return $template; | |
| 110 | - } | |
| 111 | - $get_widget = $elmap->get_widget_data( 'rtsb-shipping-method', [], $id ); | |
| 112 | - if ( ! empty( $get_widget ) ) { | |
| 113 | - $template = Fns::locate_template( 'elementor/checkout/customized-order-review' ); | |
| 114 | - } | |
| 115 | - } elseif ( 'single-product/tabs/description.php' === $template_name && BuilderFns::is_product() ) { | |
| 105 | + if ( 'single-product/tabs/description.php' === $template_name && BuilderFns::is_product() ) { | |
| 116 | 106 | $template = Fns::locate_template( 'elementor/single-product/tab-description' ); |
| 117 | 107 | } |
| 118 | - | |
| 119 | 108 | return $template; |
| 120 | 109 | } |
| 121 | 110 | } |