Jump to content

Recommended Posts

Posted

You've essentially two options. Either use a dedicated page to generate a json or csv output, which you can call from your javascript. Or you can just output the data as json directly to the page you're using the Store Locator on, like this:

echo "<script type='text/javascript'>var storelocator_data=".json_encode($yourData).";</script>"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...