[Tutorial] Creating an Upcoming Events Listing Page

Follow

Comments

7 comments

  • Avatar
    Ben Johnstone

    Following this tutorial, I'm getting a javascript error, failed to load the resource moment.min.js (I have used my shopify store name where indicated) our store is not live yet, would this cause this error? Please advise.

    0
    Comment actions Permalink
  • Avatar
    Zetya Support

    Hi Ben,

    I've updated the code to reference the Javascript library properly. Thanks for bringing it to our attention.

    Thanks, Gavin.

    0
    Comment actions Permalink
  • Avatar
    Ben Johnstone

    Thanks for the quick response and the update Gavin, works perfectly

    cheers

    Ben

    0
    Comment actions Permalink
  • Avatar
    Paul Vousden

    Hi, How does the Kayak site example show how many places remaining please?

    0
    Comment actions Permalink
  • Avatar
    Zetya Support

    Hi Paul,

    This is calculated in the Javascript, where it says:

    remaining = e.capacity - e.bookingCount

    Thanks, Gavin.

    0
    Comment actions Permalink
  • Avatar
    L Hannam

    Followed the tutorial works great. Is there a way to limit the number of events shown (for example next 7 days) like on the Kayak page? Thanks

    0
    Comment actions Permalink
  • Avatar
    Zetya Support

    You can limit the number of events to the next 7 days by changing line 15 in the events-table snippet to:

     end: today.clone().add(1, 'week').format(),
     
    0
    Comment actions Permalink

Article is closed for comments.