Auto-trigger the Celery overlay

You may want to automatically open the Celery checkout once buyers land on your page. To do so, we recommend using a jQuery click event.
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    setTimeout(function() {
      $(".YourButtonClass")[0].click();
    },1000);
  });
</script>

Paste the script above in your site's header and replace .YourButtonClass with the div class unique to your Celery pre-order button. 

Keep in mind that if Celery JS does not load before the script is executed, nothing will happen so it's best to have a fallback.



Feedback and Knowledge Base