PluginProbe
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets / 4.9.0
ShopEngine Elementor WooCommerce Builder Addon – All in One WooCommerce Solution with eCommerce Templates & Woo Widgets v4.9.0
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 2.0.0 2.1.0 2.2.0 2.2.1 2.2.2 2.3.0 2.4.0 2.5.0 2.5.1 3.0.0 3.1.0 3.1.1 4.0.0 4.0.1 4.1.0 4.1.1 4.2.0 4.2.1 4.3.0 All 85 releases
← All changes | plugin.php +31 -1 4.8.94.9.0 View file →
@@ -13,8 +13,9 @@
13 13 use ShopEngine\Libs\License\License_Route;
14 14 use ShopEngine\Libs\Rating\Rating;
15 15 use ShopEngine\Libs\Updater\Init as Updater;
16 16 use ShopEngine\Modules\Manifest as Module_Manifest;
17 +use ShopEngine\Utils\Feedback\Plugin_Unsubscribe;
17 18 use ShopEngine\Widgets\Manifest;
18 19
19 20
20 21 /**
@@ -84,8 +85,10 @@
84 85
85 86 if($error) {
86 87 return;
87 88 }
89 +
90 +
88 91
89 92 add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) {
90 93 $free = esc_html__("Go To Shopengine","shopengine");
91 94 $pro = esc_html__("Go To ShopenginePro","shopengine");
@@ -128,9 +131,11 @@
128 131 * Routes initialization
129 132 *
130 133 */
131 134 new License_Route();
132 -
135 +
136 + // Initialize deactivation feedback modal
137 + new \ShopEngine\Utils\Feedback\Plugin_Unsubscribe();
133 138 /**
134 139 * Run pro plugin updater here....
135 140 *
136 141 */
@@ -177,9 +182,16 @@
177 182 }
178 183
179 184 }
180 185
186 + // Cart validation compatibility with WC Min Max Quantity plugin
181 187
188 + if ( function_exists( 'is_plugin_active' ) && is_plugin_active( 'woo-min-max-quantity-step-control-single/wcmmq.php' ) ) {
189 +
190 + add_filter( 'wcmmq_cart_validation_check', [ $this, 'shopengine_wcmmq_cart_validation_compat' ], 10, 2 );
191 + }
192 +
193 +
182 194 //Loading public scripts and styles
183 195 add_action('wp_enqueue_scripts', [$this, 'js_css_public']);
184 196
185 197 //woocommece theme support
@@ -364,8 +376,26 @@
364 376
365 377 //it will register an option in customizer for woocommerce products catelog. It's related with our Arcive Products widget.
366 378 Register_Settings::instance()->init();
367 379 }
380 +
381 + public function shopengine_wcmmq_cart_validation_compat( $check, $request ) {
382 +
383 + $cart_widget_flag = isset( $_REQUEST['shopengine_cart_widget'] )
384 + ? sanitize_text_field( wp_unslash( $_REQUEST['shopengine_cart_widget'] ) )
385 + : '';
386 + $cart_widget_nonce = isset( $_REQUEST['shopengine_cart_widget_nonce'] )
387 + ? sanitize_text_field( wp_unslash( $_REQUEST['shopengine_cart_widget_nonce'] ) )
388 + : '';
389 +
390 + if ( $cart_widget_flag === '1' && wp_verify_nonce( $cart_widget_nonce, 'shopengine_cart_widget' ) ) {
391 + return false; // Skip WC MMQ validation for verified ShopEngine cart widget requests
392 + }
393 + return $check; // Proceed with normal validation for other requests
394 + }
395 +
396 +
397 +
368 398
369 399
370 400 // add async and defer attributes to enqueued scripts
371 401 public function filter_load_type($tag, $handle, $src) {