I'm using your plugin to show a countdown for my products. Same weeks ago the plugin has stopped working properly: now it shows only a date with no countdown (image attached). The plugin is updated to last release.
In my console I get this error, related to Jquery:
Uncaught Error: Date is not defined.
I set the end date of the plugin automatically, with add_filter in my functions.php that retrieves the end date for each product from my db. This hook has always worked.
There's a incompatibility between the theme I'm using and your plugin, because both include a jquery.countdown.min.js. They are different js libraries located in different paths, but have same name, same id and same function name. This leads to an overlap and the countdown js of your plugin is simply ignored.
Can you update your plugin providing a way to avoid this problem? Thanks
Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.
We’ve received your ticket and assigned one of our developers to investigate that issue. He’ll be looking into your issue and responding as soon as being active for support.
Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.
As you can see, they use similar approaches, with the same global function name. Probably this causes the conflict.
To solve the conflict I've just deactivate the theme countdown js (I'm not using it) with wp_dequeue_script function in my functions.php. It works, but it's not the best solution. Better if you provide a way to avoid conflicts between js libs (maybe there's a way in Jquery).
Hi,
I'm using your plugin to show a countdown for my products. Same weeks ago the plugin has stopped working properly: now it shows only a date with no countdown (image attached). The plugin is updated to last release.
In my console I get this error, related to Jquery:
Uncaught Error: Date is not defined.
I set the end date of the plugin automatically, with add_filter in my functions.php that retrieves the end date for each product from my db. This hook has always worked.
add_filter( 'wooct_time_end', 'fb_wooct_time_end', 99, 2 );
Can you help me?
Thank you.
I've found what's wrong.
There's a incompatibility between the theme I'm using and your plugin, because both include a jquery.countdown.min.js. They are different js libraries located in different paths, but have same name, same id and same function name. This leads to an overlap and the countdown js of your plugin is simply ignored.
Can you update your plugin providing a way to avoid this problem? Thanks
Hi Andrea,
Thanks for contacting WPClever Support Forum. We're not available at the weekends so today (Monday) I am able to process your ticket.
We’ve received your ticket and assigned one of our developers to investigate that issue. He’ll be looking into your issue and responding as soon as being active for support.
Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.
Best regards.
Janilyn T. - WPClever Support Agent
Hi Andrea,
Thanks for informing us on this issue!
Could you please give me the theme name? If it's a premium theme, please send me the installation file (.zip) then I can check it first.
Best regards,
Dustin
Hi Dustin,
thank you for your reply. As a premium theme I don't think I can send you the zip file. However the theme name is Exhibz https://themeforest.net/item/exhibz-conference-event-wordpress-theme/23152909
This theme include a jquery.countdown.js different from the one of your plugin:
As you can see, they use similar approaches, with the same global function name. Probably this causes the conflict.
To solve the conflict I've just deactivate the theme countdown js (I'm not using it) with wp_dequeue_script function in my functions.php. It works, but it's not the best solution. Better if you provide a way to avoid conflicts between js libs (maybe there's a way in Jquery).
Thank you so much for the clarify!
Please tell me exactly the code you used with wp_dequeue_script then I can find the solution.
Best regards,
Dustin
Simply:
wp_dequeue_script( 'jquery-countdown' );
Thank you so much for the clarify!
Best regards,
Dustin