| @@ -13,9 +13,8 @@ | ||
| 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; | |
| 18 | 17 | use ShopEngine\Widgets\Manifest; |
| 19 | 18 | |
| 20 | 19 | |
| 21 | 20 | /** |
| @@ -85,10 +84,8 @@ | ||
| 85 | 84 | |
| 86 | 85 | if($error) { |
| 87 | 86 | return; |
| 88 | 87 | } |
| 89 | - | |
| 90 | - | |
| 91 | 88 | |
| 92 | 89 | add_filter("plugin_action_links_shopengine/shopengine.php", function ($links) { |
| 93 | 90 | $free = esc_html__("Go To Shopengine","shopengine"); |
| 94 | 91 | $pro = esc_html__("Go To ShopenginePro","shopengine"); |
| @@ -131,11 +128,9 @@ | ||
| 131 | 128 | * Routes initialization |
| 132 | 129 | * |
| 133 | 130 | */ |
| 134 | 131 | new License_Route(); |
| 135 | - | |
| 136 | - // Initialize deactivation feedback modal | |
| 137 | - new \ShopEngine\Utils\Feedback\Plugin_Unsubscribe(); | |
| 132 | + | |
| 138 | 133 | /** |
| 139 | 134 | * Run pro plugin updater here.... |
| 140 | 135 | * |
| 141 | 136 | */ |
| @@ -182,16 +177,9 @@ | ||
| 182 | 177 | } |
| 183 | 178 | |
| 184 | 179 | } |
| 185 | 180 | |
| 186 | - // Cart validation compatibility with WC Min Max Quantity plugin | |
| 187 | 181 | |
| 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 | - | |
| 194 | 182 | //Loading public scripts and styles |
| 195 | 183 | add_action('wp_enqueue_scripts', [$this, 'js_css_public']); |
| 196 | 184 | |
| 197 | 185 | //woocommece theme support |
| @@ -376,26 +364,8 @@ | ||
| 376 | 364 | |
| 377 | 365 | //it will register an option in customizer for woocommerce products catelog. It's related with our Arcive Products widget. |
| 378 | 366 | Register_Settings::instance()->init(); |
| 379 | 367 | } |
| 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 | - | |
| 398 | 368 | |
| 399 | 369 | |
| 400 | 370 | // add async and defer attributes to enqueued scripts |
| 401 | 371 | public function filter_load_type($tag, $handle, $src) { |