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

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #595718

    alberto.di.girolamo
    Participant

    Hello,

    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!

    #595720

    alberto.di.girolamo
    Participant

    Additionally, 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.
    #595768

    Luke Nielsen
    Keymaster

    Hello,

    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

    #595773

    alberto.di.girolamo
    Participant

    Thanks you for the quick answer!

    Here is the code: https://codefile.io/f/82eUX04bwW
    The video is attached.

    #595775

    alberto.di.girolamo
    Participant
    #595779

    alberto.di.girolamo
    Participant
    #596245

    Luke Nielsen
    Keymaster

    Hello,

    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

Viewing 7 posts - 1 through 7 (of 7 total)