Support » Plugin: YITH WooCommerce Wishlist » YITH Wishlist WordPress plugin admin-ajax.php calls slowing down website

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Antonio La Rocca

    (@therock130)

    Hi there

    I just checked your site; it seems that for some reason it triggers found_variation event for each product in the loop
    This a bit peculiar, since usually found_variation only happens on single product page, and often only after user selection

    It seems that your theme adds Variation Add to Cart form for every product in the loop, even if Add to Cart button isn’t showing on frontend (check this screenshot)

    I suppose you should first try to tackle this issue with your template
    In order to avoid wishlist triggering its handling, anyway, I could suggest you to add the following snippet of code at the end of functions.php file of your theme or child theme

    add_filter( 'yith_wcwl_reload_on_found_variation', '__return_false' );
    
    Thread Starter Bar Memes

    (@michael130785)

    Hi Antonio,

    Thank you for providing the code to resolve this.

    I have added it to my functions.php and hopefully, this will resolve the issue.

    I have heard back from the theme developer and they mentioned it is coded this way to handle product variations.

    The exact response from the developer was “Form added in loop product because of variation display.”

    Does that make sense?

    Plugin Support Antonio La Rocca

    (@therock130)

    The exact response from the developer was “Form added in loop product because of variation display.”

    Well, sure, this would make sense if you had an Add to Cart button/form for each of products in the loop; but this doesn’t seems to be the case (or at least, there is none that I can see at first glance)
    So I suppose, for your current configuration of the theme, the form is just unused and could be removed 🙂

    Thread Starter Bar Memes

    (@michael130785)

    Hi Antonio,

    This is the response from the developer of the theme:

    “ Your products variation options comes from inside form. If we removed this form so that products variation also removed in your products.”

    Does that make sense?

    Plugin Support Antonio La Rocca

    (@therock130)

    Well, not really, as you don’t have any ATC button in the loop; anyway, I have a limited idea of what the theme does, and you should definitely trust theme’s developer opinion

    Besides, hopefully, the code that I suggested is just enough to solve the issue that you described 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘YITH Wishlist WordPress plugin admin-ajax.php calls slowing down website’ is closed to new replies.