Home › Forums › WoodMart support forum › Ajax problem and conflict with "WooCommerce Dynamic Pricing & Discounts" › Reply To: Ajax problem and conflict with "WooCommerce Dynamic Pricing & Discounts"
December 4, 2020 at 9:36 am
#247678
Artem Temos
Keymaster
Hello,
To fix the problem you need to edit the file woodmart/inc/admin/init.php
and replace the following code
wp_enqueue_script( 'jquery-ui-datepicker' );
wp_enqueue_script( 'jquery-datetimepicker', WOODMART_ASSETS . '/js/datetimepicker.min.js', array(), $version, true );
with this one
if ( ! isset( $_GET['page'] ) || ( isset( $_GET['page'] ) && 'rp_wcdpd_settings' !== $_GET['page'] ) ) {
wp_enqueue_script( 'jquery-ui-datepicker' );
wp_enqueue_script( 'jquery-datetimepicker', WOODMART_ASSETS . '/js/datetimepicker.min.js', array(), $version, true );
}
Kind Regards