Issue with AJAX Infinite Scroll Not Triggering JavaScript Updates

This topic has 16 replies, 3 voices, and was last updated 2 weeks, 2 days ago ago by Andrew Mitchell

  • Avatar: saleh
    saleh
    Participant
    October 28, 2024 at 15:40

    .

    Please, contact administrator
    for this information.
    15 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 28, 2024 at 16:47

    Dear @saleh,

    We hope this message finds you well.

    Please feel free to post your questions publicly, reserving only private information for the designated private area. In order to provide you with accurate suggestions for your specific case, we kindly ask for clarification on the following:

    1. Are you using the XStore Archive Product Builder?
    2. Do you utilize a separate plugin for loading products on scroll, or are you using the option available in the Theme Options?

    We will be able to offer appropriate recommendations once we have the answers to these questions.

    Also, could you please, provide us a video of the issue ?

    Thank you for your understanding.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: saleh
    saleh
    Participant
    October 29, 2024 at 08:04

    Simply, I want to know what the event name is if it exists when scrolling down and fetching new products, because i want to listen to this event to do some thing.

    example :

    document.addEventListener(‘Xstore_event_name_when_fetching_new_product’, () => {
    doSomething();
    });

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 29, 2024 at 14:41

    Dear @Saleh,

    We hope this message finds you well.

    We would like to inform you that the following trigger in our code may be the one you are looking for to attach your custom event:

    $(document).trigger('etheme_product_grid_ajax_loaded');

    You can incorporate the code you are trying to add in the following manner within your script:

    $(document).on('etheme_product_grid_ajax_loaded', function () {
        doSomething();
    });

    Should you have any further questions or require additional assistance, please do not hesitate to reach out.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: saleh
    saleh
    Participant
    October 29, 2024 at 16:11

    can i get the event list ?

    Please contact administrator
    for this information.
    Avatar: saleh
    saleh
    Participant
    October 29, 2024 at 16:14

    .

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 29, 2024 at 16:21

    Dear @saleh,

    Thank you for reaching out to us.

    Regarding your question, “Can I get the event list?”, we are unsure of what exactly you are referring to. We have already provided you with the available trigger and an example of how it can be used for custom purposes.

    As for your other inquiry, in order to offer you the best possible advice, we would need to review the settings on your website. Could you kindly provide us with the correct wp-admin access in a private message?

    We look forward to assisting you further.

    Best regards,
    8Theme Team

    Avatar: saleh
    saleh
    Participant
    October 30, 2024 at 09:13

    the link of my WordPress dashboard is in private message .

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 30, 2024 at 14:21

    Dear @saleh,

    Thank you for providing access to your website. We would appreciate it if you could kindly clarify any remaining questions you may have.

    Additionally, could you please inform us where you have added the custom events? We were unable to locate any custom plugins installed on your website, nor did we find any modifications in your child theme’s functions.php file.

    Have you had the opportunity to implement the suggestions we previously provided, or are you planning to do so in the near future?

    We look forward to your response.

    Best regards,
    8Theme Team

    Avatar: saleh
    saleh
    Participant
    October 30, 2024 at 14:50

    sorry i removed

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 30, 2024 at 15:21

    Dear @Saleh,

    We hope this message finds you well.

    We would like to inform you that we previously provided a code snippet that should have worked as intended. However, it appears that it was implemented in a custom manner. To assist you further, we have made the necessary modifications to the code in your functions.php file. You can view the changes here: https://prnt.sc/fzAmIlg1jw1R.

    As a result of these adjustments, the message you added through your code is now displayed when new products are loaded in the shop.

    Should you have any further questions or require additional assistance, please don’t hesitate to reach out.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: saleh
    saleh
    Participant
    October 30, 2024 at 15:42

    ok thank you

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: saleh
    saleh
    Participant
    October 30, 2024 at 16:53

    is there any reply ?

    Please contact administrator
    for this information.
    Avatar: saleh
    saleh
    Participant
    October 31, 2024 at 07:11

    please reply

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 31, 2024 at 13:23

    Dear @Saleh,

    Please note that response times may vary. Typically, we respond within 24 hours from Monday to Friday, and within 48 hours over the weekend (Saturday-Sunday). However, we often reply sooner. Kindly avoid submitting multiple requests for the same issue, as this will not expedite the response time.

    Thank you for reaching out. You are correct that a different hook should be used for the widget in question. Below is a hook you can try incorporating into your custom code:

    $(document).on('et_ajax_element_loaded', function (event, data) {
        if (data.element == 'etheme_products'){
            console.log('custom code started to show');
        }
    });

    We hope this helps. Should you have any further questions or need additional assistance, please don’t hesitate to contact us.

    Best regards,
    Jack Richardson
    8Theme Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    November 7, 2024 at 10:52

    Dear saleh,

    As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?

    Click here to share your valuable perspective: https://themeforest.net/downloads

    Your time and trust are highly appreciated!

    Best Regards,
    The 8Theme Team

  • Viewing 16 results - 1 through 16 (of 16 total)

The issue related to '‘Issue with AJAX Infinite Scroll Not Triggering JavaScript Updates’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.