Home Forums WoodMart support forum Theme causing conflict

Theme causing conflict

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #225460

    ReforestTheWeb
    Participant

    One of the plugins was having an issue with their date picker so I contacted them. They have investigated the issue and found that the theme’s date picker is causing a conflict.

    Here is the exact path : /wp-content/themes/woodmart/inc/admin/assets/js/datetimepicker.min.js

    The plugin is Woo Discount Rules from Flycart

    Is there any way we can have this fixed?

    #225461

    Artem Temos
    Keymaster

    Hi,

    Please, describe to us your problems in a bit more details. Attach some screenshots and provide us with a list of steps on how to reproduce it on your website.

    Thank you in advance.

    #225463

    ReforestTheWeb
    Participant

    The problem is that the theme date picker is taking precedence over the date picker used by the plugin. The plugin date picker expects a date format of y-m-d h:s while the theme date picker uses the long date format. To reproduce the problem they will need to use the Woocommerce Discount Rules plugin and set some rules with dates.

    #225464

    Artem Temos
    Keymaster

    We don’t know how this plugin supposes to work. That is why we need a step by step instruction with screenshots to be able to reproduce the problem and understand what is wrong.

    #225469

    ReforestTheWeb
    Participant

    I will send some screenshots asap, but you can replicate with the above instruction.

    #225484

    ReforestTheWeb
    Participant

    Plugin expects the date in this format:
    image

    However, when you use the date picker the date format changes to this:
    image2

    Resulting in this when trying to save…
    image3

    Flycart, the Woo Discount Rules plugin creator, have investigated this and found that the theme date picker is overriding the plugin date picker resulting in the error. This only started happening in the last 2 weeks when the theme was updated.

    Client has insisted on doing it on staging which makes sense, please help 🙂

    #225485

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to remove our theme’s library

    add_action(
    	'admin_init',
    	function() {
    		wp_dequeue_script( 'jquery-datetimepicker' );
    	},
    	110
    );
Viewing 7 posts - 1 through 7 (of 7 total)