• Hi there,

    I am wondering whether it is possible to load the ALM system through AJAX. The plugin is already active at the page because of another shortcode so all JS and CSS is loaded/enqueued on the page. Is it possible to initialize another ALM loaded by an AJAX call? Is it enough to load the HTML below (which is copied from the HTML generated by a shortcode)?

    <div id="ajax-load-more" class="ajax-load-more-wrap infinite classic alm-0 alm-is-loaded" data-id="alm_3244907660" data-alm-id="0" data-canonical-url="https://example.com" data-slug="xxxx" data-post-id="4593" data-localized="ajax_load_more_alm_3244907660_vars" data-alm-object="ajax_load_more_alm_3244907660" data-total-posts="xx">
    <ul aria-live="polite" aria-atomic="true" class="alm-listing alm-ajax products" data-container-type="ul" data-loading-style="infinite classic" data-repeater="default" data-post-type="product" data-post-in="2110,2112,2115,2116,2117,2118" data-order="DESC" data-orderby="post__in" data-offset="0" data-posts-per-page="25" data-scroll-distance="-500" data-button-label="Load More">
    </ul>

    <div class="alm-btn-wrap" data-rel="ajax-load-more" style="visibility: visible;">
    <button class="alm-load-more-btn more" type="button">Load More</button>
    </div>
    </div>

    Best Regards,
    Peter

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.