Hi,
Please review the answers below:
- I recommend checking the collection’s permissions . Moreover, I recommend checking whether you’ve synced the collection to the live site.
- I’m afraid that we cannot debug your entire code… Do you have a more specific question regarding a certain function? I recommending reading this article which explains how to debug your code.
Good luck,
Tal.