PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.5.1
ShopBuilder – WooCommerce Builder For Elementor v2.5.1
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/ShopBuilder.php +4 -3 2.2.22.5.1 View file →
@@ -6,9 +6,8 @@
6 6 */
7 7
8 8 namespace RadiusTheme\SB;
9 9
10 -use RadiusTheme\SB\Controllers\CacheController;
11 10 use RadiusTheme\SB\Helpers\Migration;
12 11 use RadiusTheme\SB\Helpers\Installation;
13 12 use RadiusTheme\SB\Modules\ModuleManager;
14 13 use RadiusTheme\SB\Traits\SingletonTrait;
@@ -13,8 +12,9 @@
13 12 use RadiusTheme\SB\Modules\ModuleManager;
14 13 use RadiusTheme\SB\Traits\SingletonTrait;
15 14 use RadiusTheme\SB\Controllers\Shortcodes;
16 15 use RadiusTheme\SB\Controllers\Dependencies;
16 +use RadiusTheme\SB\Controllers\CacheController;
17 17 use RadiusTheme\SB\Controllers\Admin\AdminInit;
18 18 use RadiusTheme\SB\Controllers\AssetsController;
19 19 use RadiusTheme\SB\Controllers\BuilderController;
20 20 use RadiusTheme\SB\Controllers\SupportController;
@@ -21,8 +21,9 @@
21 21 use RadiusTheme\SB\Controllers\Hooks\FilterHooks;
22 22 use RadiusTheme\SB\Controllers\Hooks\ActionHooks;
23 23 use RadiusTheme\SB\Controllers\Frontend\Ajax\AddToCart;
24 24 use RadiusTheme\SB\Controllers\Frontend\Ajax\AjaxLogin;
25 +use RadiusTheme\SB\Controllers\Frontend\Ajax\UpdateCheckoutSection;
25 26
26 27 // Do not allow directly accessing this file.
27 28 if ( ! defined( 'ABSPATH' ) ) {
28 29 exit( 'This script cannot be accessed directly.' );
@@ -78,9 +79,9 @@
78 79 */
79 80 private function __construct() {
80 81 $this->define_constants();
81 82 $this->post_type = 'product';
82 - $this->current_theme = wp_get_theme()->get( 'Template' ) ? wp_get_theme()->get( 'Template' ) : wp_get_theme()->get( 'TextDomain' );
83 + $this->current_theme = wp_get_theme()->get( 'Template' ) ? wp_get_theme()->get( 'Template' ) : ( wp_get_theme()->get( 'TextDomain' ) ? wp_get_theme()->get( 'TextDomain' ) : strtolower( str_replace( ' ', '', wp_get_theme()->get( 'Name' ) ) ) );
83 84 add_action( 'init', [ $this, 'language' ] );
84 85 add_action( 'plugins_loaded', [ $this, 'init' ], 15 );
85 86
86 87 // Register Plugin Active Hook.
@@ -174,8 +175,9 @@
174 175
175 176 // Ajax.
176 177 AddToCart::instance();
177 178 AjaxLogin::instance();
179 + UpdateCheckoutSection::instance();
178 180
179 181 BuilderController::instance();
180 182 FilterHooks::init_hooks();
181 183 ActionHooks::init_hooks();
@@ -209,5 +211,4 @@
209 211 public function pro_version_link() {
210 212 return 'https://shopbuilderwp.com/';
211 213 }
212 214 }
213 -