This topic has 16 replies, 3 voices, and was last updated 2 weeks, 2 days ago ago by Andrew Mitchell
.
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
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();
});
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
can i get the event list ?
.
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
the link of my WordPress dashboard is in private message .
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
sorry i removed
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
ok thank you
is there any reply ?
please reply
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
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
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