• Resolved thibaultyv

    (@thibaultyv)


    Good evening everyone !

    I am using the Flatsome theme with this module for the wishlist. Unfortunately, adding a product to this one is not done dynamically and I have to reload the page before seeing a product added to the Wishlist.

    If I activate the Ajax option, it is then impossible for me to add a product to the Wishlist. After clicking on the add button no action takes place …

    Have you ever had a similar problem?

    Best regards,
    Thibault

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi Thibault

    I double checked on my local insallation, but if I press Flatsome’s ATW button, product is added to wishlist via AJAX
    My best guess is that you have some sort of js problem on your site

    Do you mind sharing with us url to your site, so I can confirm my idea?

    Thread Starter thibaultyv

    (@thibaultyv)

    Hi ??
    Yes that’s exactly what I believe too, I just saw an error in the development console of a script belonging to the module.
    Here is the site address (development): https://cli-youvape.tilvalhall.fr/
    Thank you in advance for your help !

    Plugin Author YITHEMES

    (@yithemes)

    Hi there

    Now that I’ve checked your site, I can see that there is a problem with the function that returns fragments to replace in the page, when an item is added to wishlist: as you can see from this screenshot, no fragment is returned back, and I suppose this is the reason of your problem

    I’m not sure why this is happening, since system appears to be working fine on my local installation
    Could you please try to add the following snippet of code at the end of functions.php file of your theme or child, and let me know if this solves the issue?

    add_filter( 'yith_wcwl_fragments_index_glue', function() {
        return '_';
    } );
    
    • This reply was modified 4 years, 5 months ago by YITHEMES.
    Thread Starter thibaultyv

    (@thibaultyv)

    This indeed solved the problem!
    What was the problem that this code solved?
    Thank you for your help anyway!

    Plugin Author YITHEMES

    (@yithemes)

    Hi again

    TBH, I still don’t understand this problem fully; it seems some servers won’t accept POST fields that contains name formatted in a specific way
    With that code I’m asking plugin to change name of the POST fields it sends within AJAX requests, and use ‘_’ character instead of default ‘.’ character

    If you have some better explanation for this problem, or you could ask your hosting provider, I’d be glad to learn -and hopefully improve over this new knowledge

    In any case, I’m glad to know that my code solved the problem
    If you enjoy our plugin, don’t forget to leave us a 5 star review, to support us and help our work
    Thank you!

    Thread Starter thibaultyv

    (@thibaultyv)

    Hello again,

    So it would come from the hosting? Do you know at what level this could be located? We are on a very standard Apache server, precisely to avoid this kind of problem.

    Thank you for taking the time to explain to me. I will indeed find out for my part in order to better understand with the host what they have set up.

    It’s made for scoring! You do a very good job, congratulations and thank you for your help and reactivity.

    I wish you a good day!

    Plugin Author YITHEMES

    (@yithemes)

    Hi again

    As I said, this is just an idea, since I couldn’t track the problem down
    I’d really appreciate if you or your hosting could add some informations on this problem, but I’m afraid I have no additional data point to help you locate the original issue

    Anyway, thank you for your kind words, we do our best to support our community ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Flatesome – No dynamic addition (Ajax)’ is closed to new replies.