PluginProbe ʕ •ᴥ•ʔ
PiWeb Delivery & Pickup Date Time for WooCommerce / 3.0.49.91
PiWeb Delivery & Pickup Date Time for WooCommerce v3.0.49.91
3.0.63 3.0.62 3.0.61 3.0.60 3.0.49.49 3.0.49.6 3.0.49.60 3.0.49.61 3.0.49.62 3.0.49.63 3.0.49.64 3.0.49.66 3.0.49.67 3.0.49.69 3.0.49.7 3.0.49.70 3.0.49.72 3.0.49.73 3.0.49.74 3.0.49.76 3.0.49.77 3.0.49.79 3.0.49.9 3.0.49.90 3.0.49.91 3.0.49.92 3.0.49.93 3.0.49.94 3.0.49.96 3.0.49.97 3.0.49.99 trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 2.9.17 3.0.47 3.0.49 3.0.49.1 3.0.49.10 3.0.49.11 3.0.49.12 3.0.49.13 3.0.49.16 3.0.49.17 3.0.49.19 3.0.49.2 3.0.49.20 3.0.49.21 3.0.49.22 3.0.49.23 3.0.49.24 3.0.49.26 3.0.49.27 3.0.49.29 3.0.49.3 3.0.49.30 3.0.49.31 3.0.49.32 3.0.49.33 3.0.49.34 3.0.49.36 3.0.49.37 3.0.49.39 3.0.49.4 3.0.49.40 3.0.49.41 3.0.49.42 3.0.49.43 3.0.49.44 3.0.49.46 3.0.49.47
pi-woocommerce-order-date-time-and-type / admin / conflict-fixer.php
pi-woocommerce-order-date-time-and-type / admin Last commit date
css 4 months ago img 4 months ago js 4 months ago partials 4 months ago class-adv-order-filter.php 4 months ago class-analytics.php 4 months ago class-order-tip-promotion.php 4 months ago class-pi-dtt-labels.php 4 months ago class-pi-dtt-order-table.php 4 months ago conflict-fixer.php 4 months ago menu.php 4 months ago options-addons.php 4 months ago options-date.php 4 months ago options-limit.php 4 months ago options-pickup.php 4 months ago options-time-slot.php 4 months ago options-time.php 4 months ago options.php 4 months ago
conflict-fixer.php
58 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3
4 class pisol_dtt_pro_conflict_fixer{
5 function __construct(){
6 add_action( 'admin_enqueue_scripts', array($this,'removeConflictCausingScripts'), 1000 );
7 add_action( 'admin_footer', array($this,'removeScriptFromAdminFooter'), 10000000000 );
8 add_action( 'wp_enqueue_scripts', array($this,'removeFrontConflict'), 900);
9 }
10
11 function removeConflictCausingScripts(){
12 if(isset($_GET['page']) && $_GET['page'] == 'pisol-dtt'){
13 wp_dequeue_script( 'jquery-timepicker' );
14
15 /* color picker gets disabled because of this script */
16 wp_dequeue_script( 'print-invoices-packing-slip-labels-for-woocommerce' );
17 }
18 }
19
20 function removeScriptFromAdminFooter(){
21 if(isset($_GET['page']) && $_GET['page'] == 'pisol-dtt'){
22 /**
23 * https://wordpress.org/plugins/makecommerce/
24 */
25 wp_dequeue_script( 'wc_mk_timepicker' );
26 }
27 }
28
29 function removeFrontConflict(){
30 $this->fixForEverestForms();
31 }
32
33 /**
34 * https://wordpress.org/plugins/everest-forms/
35 * it adds its own version of selectWoo that brakes the checkout process
36 */
37 function fixForEverestForms(){
38 include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
39 if(is_plugin_active( 'everest-forms/everest-forms.php')){
40 if(function_exists('is_checkout') && is_checkout()){
41 wp_deregister_script( 'selectWoo' );
42 wp_register_script( 'selectWoo', WC()->plugin_url() . '/assets/js/selectWoo/selectWoo.full.min.js', array( 'jquery' ), '1.0.6' );
43 }
44 }
45
46 /**
47 * some theme adds bootstrap-datepicker that replaces our datepicker
48 * and causes issue
49 */
50 if(function_exists('is_checkout') && is_checkout()){
51 wp_dequeue_script( 'bootstrap-datepicker' );
52 wp_deregister_script( 'bootstrap-datepicker' );
53 }
54 }
55
56 }
57
58 new pisol_dtt_pro_conflict_fixer();