Auto fill the "Near" box and automatically launch the event search

Home Forums Calendar Products Events Calendar PRO Auto fill the "Near" box and automatically launch the event search

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #766554
    Ethan Anderson
    Participant

    My goal is that when the users enter the upcoming events page, it directs them automatically to a search in their area. To do this, I have to first make sure that the “Near” box is populated with their city and zip, and then I need to simulate pressing the “Find Events” button.

    I have the first part all set, using JQuery with something I found here: http://docs.shopify.com/manual/configuration/store-customization/page-specific/store-wide/get-a-visitors-location

    My question is – how do I run the search when the users enter the page, without them having to press the search button?

    #766629
    Ethan Anderson
    Participant

    Ok guess I figured it out – added:
    jQuery(‘.tribe-events-button’).trigger(‘click’); and it works.

    #768226
    Brian
    Member

    Great glad you figured it out. Closing out this ticket. If you would like any other help please create a new ticket.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Auto fill the "Near" box and automatically launch the event search’ is closed to new replies.