Home › Forums › WoodMart support forum › Issue with “AJAX Product Tabs” – Shortcode Not Displayed After AJAX Load
Issue with “AJAX Product Tabs” – Shortcode Not Displayed After AJAX Load
- This topic has 6 replies, 2 voices, and was last updated 3 months, 4 weeks ago by Luke Nielsen.
-
AuthorPosts
-
September 6, 2024 at 12:54 pm #595718
alberto.di.girolamoParticipantHello,
I’m using the “AJAX Product Tabs” widget to dynamically load products on the homepage of my WooCommerce site, and I’m trying to display a tiered pricing table for each product using a shortcode. The problem is that when the products are loaded via the widget, the shortcode for the tiered pricing table doesn’t get executed properly.
I’ve confirmed that the code works perfectly when products are loaded statically (for example, on WooCommerce archive pages), but it’s not working when products are loaded via AJAX with your widget.
Issue:
– The code works perfectly on WooCommerce archive pages (shop, categories, tags), but when products are loaded using the “AJAX Product Tabs” widget on the homepage, the tiered pricing block is not displayed.-I’ve tried using a fallback method with setInterval, but the code doesn’t seem to correctly attach events to the newly loaded products.
Do you have any suggestions on how I can get the shortcode to work properly after the products are loaded via AJAX using your widget?
Thanks in advance for your help!
September 6, 2024 at 12:59 pm #595720
alberto.di.girolamoParticipantAdditionally, I tried posting the full code here, but I encountered a strange error when submitting the post. Below is a screenshot of the error I received.
Attachments:
You must be logged in to view attached files.September 6, 2024 at 3:30 pm #595768
Luke NielsenKeymasterHello,
Could you please send any video for a better understanding? Because on my side the products look the same on the home page and on the shop page – https://take.ms/AGOmT
You can share the code via this https://codefile.io/ service.
Kind Regards
September 6, 2024 at 3:43 pm #595773
alberto.di.girolamoParticipantThanks you for the quick answer!
Here is the code: https://codefile.io/f/82eUX04bwW
The video is attached.September 6, 2024 at 3:44 pm #595775
alberto.di.girolamoParticipantSorry, here the video: https://www.veed.io/view/e0305be2-0757-416c-a604-8854f270ec25?panel=share
September 6, 2024 at 3:51 pm #595779
alberto.di.girolamoParticipantThis is the video, now it’s working. Sorry for multiposting.
September 9, 2024 at 4:42 pm #596245
Luke NielsenKeymasterHello,
I apologize for the delay.
Sorry but seems that our Ajax products element is not working with that plugin, it’s incompatible with it.
Let me know if you have any additional questions.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register