Showing Recommendations in an Ajax Popup

Render Content after initial page load.

When a page is loaded, the Clerk.js library automatically runs a function to render all Content on that page.

This function can also be run after the initial page load, to show products in an Ajax Popup.

  1. Since the function takes any class or ID as argument, start by replacing your Ajax Popup recommendations class clerk with another class. This is to prevent all content to be rendered again.

    An example:


2. In your Ajax Popup code, simply run the function on this class as a part of your

       existing Ajax script, or in its own script:

Clerk.js Function

<script type="text/javascript">

Now you can show recommendations in your Ajax Popup, after the initial page load!