Home › Forums › WoodMart support forum › Theme causing conflict
Theme causing conflict
- This topic has 6 replies, 2 voices, and was last updated 4 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
September 11, 2020 at 11:00 am #225460
ReforestTheWebParticipantOne 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?
September 11, 2020 at 11:01 am #225461
Artem TemosKeymasterHi,
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.
September 11, 2020 at 11:16 am #225463
ReforestTheWebParticipantThe 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.
September 11, 2020 at 11:19 am #225464
Artem TemosKeymasterWe 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.
September 11, 2020 at 11:26 am #225469
ReforestTheWebParticipantI will send some screenshots asap, but you can replicate with the above instruction.
September 11, 2020 at 11:46 am #225484
ReforestTheWebParticipantPlugin expects the date in this format:
imageHowever, when you use the date picker the date format changes to this:
image2Resulting in this when trying to save…
image3Flycart, 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 🙂
September 11, 2020 at 12:50 pm #225485
Artem TemosKeymasterTry 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 );
-
AuthorPosts
- You must be logged in to create new topics. Login / Register