Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello Joris,
    we hope you’re doing well!

    In that case, I recommend not enabling AJAX loading in our plugin.

    Could you try it out and let us know any news?

    Best regards.

    Thread Starter yournet

    (@yournetgbr)

    Hi @juaancmendez,

    Thank you for your response. However, we already disabled the Ajax loading within the plugin settings, but the issue persists.
    This is the setting you mean, right?
    https://snipboard.io/MhYoEi.jpg
    We are running the plugin version 3.21.0.

    Best Regards

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Yes, that’s what I meant.

    Could you check by changing your theme to a default WordPress theme like 2023? Flatsome has a wishlist integration and maybe that has something to do with it.

    I recommend clearing your site’s cache on every test.

    Let us know any news.

    Best regards.

    Thread Starter yournet

    (@yournetgbr)

    Hi Juan,

    I just tested it, and it indeed seems to be related to Flatsome.

    Do you have any idea, on how to deactivate this within Flatsome?

    Best Regards.

    Thread Starter yournet

    (@yournetgbr)

    Hi Juan,

    I just investigated this more in depth, and the issue actually still exists, when activating a default WordPress theme such as Twenty Twenty-Three.
    In my first test, I just did not realize that the add to wishlist button was completely deactivated within the Yith Wishlist Plugin settings. I now activated it after the add to cart button, and the issue exists again on variable products.
    You can check it yourself on e.g. this product:
    https://stg-derbuntspechtshop-staging.kinsta.cloud/produkt/alpenfleece-estrella/
    As you can see, the default WordPress theme is activated and the wishlist button is added here:
    https://snipboard.io/Z1zNvC.jpg
    I also just went ahead and disabled all other plugins, except WooCommerce and Yith Wishlist, to make sure, that there are no other conflicts, and the issue still exists:
    https://snipboard.io/sxAMqa.jpg
    Also, after I took the screenshot, I realized that an update is available, which I just installed, and the issue still exists. The current version is 3.21.0

    • This reply was modified 1 year, 5 months ago by yournet.
    Thread Starter yournet

    (@yournetgbr)

    Hi Juan,
    as the issue is related to the Yith Wishlist plugin, I just went a little deeper into the plugins code and found the filter “yith_wcwl_reload_on_found_variation”. When I set this to false, the Ajax request disappears. However, I need to know whether this has any effect on the plugin functionality?
    FYI: you can still check yourself on the earlier provided URL, as I reverted the filter to its default settings again.

    • This reply was modified 1 year, 5 months ago by yournet.
    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    The found_variation event is a js event that fires when a specific variation is selected on a variable product page (even without user interaction).

    The snippets will contain an updated version of the Add to Wishlist button, and the reason we’re loading it is that the page may be served by a cache, and we want the template to update for the current user.

    In any case, setting that filter to false will not represent any problem in the plugin’s operation, so you can add it inside the functions.php file of your active child theme:

    add_filter( 'yith_wcwl_reload_on_found_variation', '__return_false' );

    If you have any other questions, feel free to contact us.

    Have a nice day!

    Thread Starter yournet

    (@yournetgbr)

    Hi Juan,

    Thank you for your response and explaining. I understand that the reason behind this is to bypass the cache. This is the main reason for the usage of Ajax. However, I don’t understand, why this option is not disabled, when disabling the Ajax requests within the plugin settings. However, we will then use the Filter.
    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Many Ajax Requests on Variable Single Product Page’ is closed to new replies.