Home › Forums › WoodMart support forum › Products in products block not displaying labels after “load more”
Products in products block not displaying labels after “load more”
- This topic has 22 replies, 2 voices, and was last updated 1 year, 10 months ago by Artem Temos.
-
AuthorPosts
-
February 27, 2023 at 1:06 pm #446675
wildguitarsParticipantGreetings Xtemos team!
Please visit the link in the private content.
You will see that there is a “Products (grid or carousel) block with products sorted by publish date and displaying of 40 items per page.
When scrolling down to load more items, the items that are loaded do not have any of our website’s labels that are created through the BeRocket Woocommerce Advanced Product Labels plugin.
I reached out to the plugin developer and they said that it’s not related to their plugin.Please let me know if there is a solution for this issue.
Thanks,
TomFebruary 27, 2023 at 3:44 pm #446731
Artem TemosKeymasterHello,
It looks like this plugin doesn’t work when the content is loaded dynamically using AJAX. Sorry, but we can’t do anything in our theme to fix this. You need to either disable AJAX shop option or consult with the plugin developers for help.
Kind Regards
February 27, 2023 at 5:04 pm #446774
wildguitarsParticipantThank you for the prompt reply, Artem.
In the meantime I have changed the number of products in this block from 40 items to 200 items.This is what the plugin developer replied:
It seems load more functionality use some custom template for second page, that do not use WooCommerce hooks.
You can try to disable this load more functionality and try to use some plugin that provide same functionality, but depend on default WooCommerce template.
February 27, 2023 at 5:59 pm #446795
Artem TemosKeymasterIt uses the same set of hooks as on the first page. Could you please clarify what hook is missing there?
March 1, 2023 at 4:07 pm #447404
wildguitarsParticipantThe plugin developer wrote:
What hook plugin use depend on settings, because it can be changed in plugin settings -> Advanced tab.I have included a link to the settings page in the private content.
March 2, 2023 at 9:59 am #447615
Artem TemosKeymasterHello,
The hook is used in our theme since these labels are displayed on the first page. But the problem is that this plugin doesn’t use this hook in the content which is loaded with AJAX.
Kind Regards
March 2, 2023 at 10:03 am #447617
wildguitarsParticipantThanks Artem, I will share your reply with the plugin developer.
March 2, 2023 at 3:29 pm #447731
wildguitarsParticipantHis reply:
Hello,
Checked our plugin. It is use init hook to add labels to all selected hooks in settings, and it seems also must work on AJAX load.
Regards,
OlegMarch 2, 2023 at 3:41 pm #447744
Artem TemosKeymasterThe ‘init’ hook works in AJAX load so the issue is not about that particular hook. Maybe the code that adds this hook actually doesn’t work in the AJAX request also.
March 5, 2023 at 11:34 am #448388
wildguitarsParticipantHere is the developer’s latest reply:
Hello,
Checked our plugin. It is use init hook to add labels to all selected hooks in settings, and it seems also must work on AJAX load.
Regards,
OlegMarch 6, 2023 at 10:24 am #448558
Artem TemosKeymasterHello,
Could you please disable all plugins that are not related to our theme and provide us your admin and FTP access so we can check it?
Thank you in advance
March 6, 2023 at 3:26 pm #448672
wildguitarsParticipantPlease see the login details for our staging website.
I have disabled all the plugins except for those that are related to your theme, and the labels plugin.
March 6, 2023 at 3:30 pm #448677
Artem TemosKeymasterPlease, send us your FTP access as well. Thank you in advance.
March 6, 2023 at 9:31 pm #448805
wildguitarsParticipantSorry about that, here you go.
March 7, 2023 at 10:15 am #448902
Artem TemosKeymasterSorry, but the FTP seems to be wrong and we could not access your server. Here is a screenshot https://gyazo.com/05c8cdae2e45184458414ba13c8cc0cc
March 8, 2023 at 9:52 am #449234
wildguitarsParticipantApologies again, please try the below credentials.
March 8, 2023 at 10:35 am #449260
Artem TemosKeymasterHello,
We are sorry to say, that we still can’t access your server. Here is a screenshot https://gyazo.com/f18f621b08ff84593572cfea280d4d08
Kind Regards
March 8, 2023 at 2:36 pm #449356
wildguitarsParticipantYour IP address must be blocked. Do you have a static IP address that you can provide me? I will have our web hosting company whitelist it.
March 8, 2023 at 3:09 pm #449366
Artem TemosKeymasterSure, here is my IP
March 8, 2023 at 7:07 pm #449461
wildguitarsParticipantPlease try again
March 9, 2023 at 10:30 am #449576
Artem TemosKeymasterHello,
We tried to troubleshoot this plugin’s code but can’t understand how it works, unfortunately. As we can see, all of the required hooks exist in our theme. So we still think that the plugin doesn’t run its code when the AJAX request is made. Sorry, but we can’t find a solution. If the plugin developer could check this from its end and let us know what might be wrong in the theme, we will help you to fix this.
Kind Regards
March 10, 2023 at 11:42 am #449983
wildguitarsParticipantI truly appreciate your efforts and will let you know once I hear back from the plugin developer.
Have a great weekend
TomMarch 10, 2023 at 12:42 pm #450005
Artem TemosKeymasterThank you! Feel free to contact us if you have any further questions.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register