hi

in the store locator settings i change the URL from 'store_locator' to 'members/events/search'
I also change the path to the JSON from 'store-locator/json' to 'members/events/search/json'
i edit the View and change the path to 'members/events/search/json'

Have i done everything correct? The stores do not show up, the only way they show up is if i use the stre-locator URL

I also tried using URL Aliases but even that didnt show the stores

Can anyone help me out?

Thanks alot

Comments

prezaeis’s picture

Issue summary: View changes
prezaeis’s picture

Anyone???

SuperfluousApostrophe’s picture

I noticed that this problem doesn't exist if you just use a single path instead of a tree.

IE locations works, but branches/locations does not.

SuperfluousApostrophe’s picture

Quick answer: If you're going to have a tree'd alias for the display path, throw a forward slash in front of the Location Data string.

Let's say we're setting the display path as branches/locations.
What appears to be happening is that the data path is being rendered at site.com/branches/locations/store-locator/json instead of at site.com/store-locator/json. Not sure exactly why, but this is what I found after about an hour or so of fiddling around.

byarbrough’s picture

I am assuming that the path is hard coded somewhere...normally, this could be changed in views...

byarbrough’s picture

It appears to be hard coded in line 154 and line 197 of google_store_locator.module.

Looks like this needs to be a request change for the next release.

Line 154:

  $form['google_store_locator']['advanced']['gsl_json_path'] = array(
    '#type' => 'textfield',
    '#title' => t('Path to Store Location data'),
    '#description' => t("Warning: by default this points to the Location Export View which provides the Store data in the proper JSON format. Do not change this path unless you're sure it points to a properly formatted source."),
<strong>    '#default_value' => variable_get('gsl_json_path', 'store-locator/json'),</strong>
    '#required' => TRUE,

Line 197:

/**
 * Callback function for /store_locator in hook_menu().
 */
function google_store_locator_default_page() {

  <strong>$data_path = variable_get('gsl_json_path', 'store-locator/json');</strong>
  $map_zoom = variable_get('gsl_map_zoom', '4');
  $map_long = variable_get('gsl_map_long', '-100');
  $map_lat = variable_get('gsl_map_lat', '40');
  $items_per_panel = variable_get('gsl_items_per_panel', 10);
  $loc_aware = variable_get('gsl_loc_aware', '0');
  $search_label = variable_get('gsl_search_label', "Where are you?");
byarbrough’s picture

Guys, we were all missing it! :)

Go to [site URL]/admin/config/search/google_store_locator

Go to the bottom of the page, and click "Advanced Settings"

Change "What is the desired path for the store locator?" to the new URL.

That's it! The URL has been changed.

I believe this issue/thread can be closed now.

rodrigoeg’s picture

Status: Active » Closed (duplicate)
Related issues: +#2466359: Path to Store Location data value fails

This issue seems to be the problem described in #2466359: Path to Store Location data value fails