Assets not enqueued on WooLentor widgets, only with Shortcode
-
Hi.
Your plugin only enqueue styles and scripts from the EverCompare\Frontend\Shortcode class, so their assets are not available in pure WooLentor widgets. As result, the compare button does nothing at all.
As workarround I have had to put a shorcode on a hidden element to force it to load, and then it’s works.
Please fix ASAP.
Greetings.
-
This topic was modified 2 weeks, 4 days ago by
Carlos Blázquez.
-
This topic was modified 2 weeks, 4 days ago by
-
Thank you very much for reporting this issue.
Could you please let us know which specific WooLentor widget you are using where the compare button is not working properly? This information will help us investigate the issue more accurately.
Additionally, we would appreciate it if you could contact our support team through the following link:
https://portal.hasthemes.com/contact/
Our support team will be happy to investigate the issue further and assist you with a solution.
We look forward to your response.
Best regards,
KamalWidget class are
elementor-widget-woolentor-universal-productandelementor-widget-woolentor-custom-product-archive.Greetings.
Thank you very much for letting us know the widget names.
The widgets elementor-widget-woolentor-universal-product and elementor-widget-woolentor-custom-product-archive do not require any shortcode to load EverCompare functionality. EverCompare is already supported within these widgets, so no additional shortcode is necessary.
Additionally, you can contact our support team through the following link:
https://portal.hasthemes.com/contact/
Our support team will then assist you.
Best regards,
Kamal-
This reply was modified 2 weeks, 3 days ago by
kamal025.
HI @kamal025
I know that teory; but the widgets do not load the assets by themselves, I have had to put the hidden shorcode in order to force it. And this happens due to the fact that the
wp_enqueue_styleandwp_enqueue_scriptfunctions only appears in a single part of this entire plugin: in theEverCompare\Frontend\Shortcode::button_shortcode( $atts, $content = '' )class method. TheEverCompare\Assets::register_assets()class method only register the assets, but do not enqueue.And about your support team, I prefer to use this public support forum in case it can be useful to other people.
Greetings.
-
This reply was modified 2 weeks, 3 days ago by
Carlos Blázquez.
Thank you very much for the detailed explanation and for sharing your findings.
We investigated the issue in our testing environment, but we were unable to reproduce the same behavior. The compare button appears to be working properly on our end.
Could you please let us know exactly how you added the compare button to the widget? It would also be very helpful if you could provide a screenshot (or a short screen recording) showing your setup and the issue. This will help us better understand the situation and reproduce it in our environment.
We appreciate your preference for using the public support forum. The more details you can provide, the easier it will be for us to investigate and determine whether there is an issue that could affect other users as well.
We look forward to your response.
Best regards,
KamalHi, @kamal025 .
I my up to date site I just have the WooLentor widgets in the homepage and in the shop template, placed there with the Elementor (free) editor, and they have enhabled the compare action. That’s all.
One detail: in Elementor editor works fine, this is how I found the assets not loaded issue; but on the front side it didn’t work until I applied the trick of putting the shortcode hidden.
And other detail: same problem happened with your WishSuite plugin, but it was solved by updating it.
Hope this with helpfull.
Greetings.
Thank you very much for the additional details.
We appreciate you sharing your findings and the steps you took to identify the issue.
We have tried to reproduce the same issue in our testing environment, but so far we have not been able to recreate it. However, based on your explanation, we understand that the issue only occurs on the frontend, while everything works correctly inside the Elementor editor.
It is also helpful to know that you experienced a similar issue with WishSuite and that it was resolved after an update.
We will continue investigating this behavior on our end to see if there is any scenario where the assets are not being loaded properly when using the WooLentor widgets without the shortcode.
Thank you again for bringing this to our attention and for providing such detailed feedback. It is very helpful for our investigation.
Best regards,
Kamal -
This reply was modified 2 weeks, 3 days ago by
You must be logged in to reply to this topic.