PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.1.3
ShopBuilder – WooCommerce Builder For Elementor v2.1.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
← All changes | app/Controllers/SupportController.php +5 -9 2.1.132.1.3 View file →
@@ -19,9 +19,8 @@
19 19 /**
20 20 * SingletonTrait.
21 21 */
22 22 use SingletonTrait;
23 -
24 23 /**
25 24 * Construct function
26 25 */
27 26 private function __construct() {
@@ -27,9 +26,9 @@
27 26 private function __construct() {
28 27 add_action( 'init', [ $this, 'plugins_support' ], 9 );
29 28 add_action( 'init', [ $this, 'themes_support' ], 9 );
30 29 add_filter( 'woocommerce_locate_template', [ $this, 'locate_template' ], 10, 3 );
31 - if ( defined( 'RTSB_DEVELOPER_MODE' ) && RTSB_DEVELOPER_MODE ) {
30 + if( defined( 'RTSB_DEVELOPER_MODE' ) && RTSB_DEVELOPER_MODE ){
32 31 $this->developer_support();
33 32 }
34 33 }
35 34
@@ -48,13 +47,11 @@
48 47 public function plugins_support() {
49 48 // Check for plugin using plugin name.
50 49 $active_plugin = apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
51 50 $supports = [
52 - 'woo-address-book/woocommerce-address-book.php' => PluginsSupport\WooAddressBook::class,
53 51 'woo-product-variation-gallery/woo-product-variation-gallery.php' => PluginsSupport\RtwpvgSupport::class,
54 52 'woo-product-variation-swatches-pro/woo-product-variation-swatches-pro.php' => PluginsSupport\RtwpvsSupport::class,
55 53 ];
56 - $supports = apply_filters( 'rtsb/plugins/support', $supports );
57 54 foreach ( $supports as $active_path => $class ) {
58 55 $is_active = in_array( $active_path, $active_plugin, true );
59 56 if ( $is_active && class_exists( $class ) && method_exists( $class, 'instance' ) ) {
60 57 $class::instance();
@@ -94,13 +91,10 @@
94 91 * @return void
95 92 */
96 93 public function locate_template( $template, $template_name, $template_path ) {
97 94 if ( 'checkout/review-order.php' === $template_name && BuilderFns::is_checkout() ) {
98 - $id = BuilderFns::is_builder_preview() ? get_the_ID() : BuilderFns::builder_page_id_by_type( 'checkout' );
99 - $elmap = ElementorDataMap::instance();
100 - if ( ! $id ) {
101 - return $template;
102 - }
95 + $id = BuilderFns::is_builder_preview() ? get_the_ID() : BuilderFns::builder_page_id_by_type( 'checkout' );
96 + $elmap = ElementorDataMap::instance();
103 97 $get_widget = $elmap->get_widget_data( 'rtsb-shipping-method', [], $id );
104 98 if ( ! empty( $get_widget ) ) {
105 99 $template = Fns::locate_template( 'elementor/checkout/customized-order-review' );
106 100 }
@@ -109,5 +103,7 @@
109 103 }
110 104
111 105 return $template;
112 106 }
107 +
108 +
113 109 }