I'd like there to be a field to customize the 'Store not found' text which is currently hard-coded in the javascript.

Comments

byarbrough’s picture

I found it at line 203 in google_store_locator.js.

Edit this code:

    this.storeList_.append('<li class="no-stores">' + Drupal.t('There are no stores in this area. Customize your message here.') + '</li>');
dmdewey’s picture

Thanks for the advice on this. I changed the compiled store locator script and still was not getting it changed but I guess the google_store_locator.js overrides that.

r.aubin’s picture

Is there another solution? Changing the files that ship with the module is not a good approach since future module updates will revert the text strings. Ideally this would be a configuration option we could edit through the admin ui.