Manual Upload setup

After the upload app script is loaded, it immediately executes the setup routine which looks for the configured products and locations to create upload fields.

If the page that the script is loaded does not show the target location yet, for example if the location is inside a ajax cart drawer, you can call the setup method manually.

<script>
   // call upload app setup
   window.Cloudlift.upload.App.setup(); 
</script>

Brooklyn theme Ajax cart upload example

<script type="text/javascript">
    $(function(){
      // wait for ajax cart load
      $(document.body).on('ajaxCart.afterCartLoad', function(evt, cart) {
        // setup upload app
         window.Cloudlift.upload.App.setup(); 
      });
    });
</script>

If you need further assistance, please send us a request and we will be happy to help you out.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.