Jump to content

Store Locator display


Recommended Posts

The Store Locator with the map indicates the phone number twice in search results. I have been trying to change this in line 118 of stores.js which currently reads:

  $('#stores-table tr:last').after('<tr class="node"><td class="num">'+parseInt(i + 1)+'</td><td><b>'+name+'</b>'+(has_store_picture === 1 ? '<br /><img src="'+img_store_dir+parseInt(id_store)+'-medium.jpg" alt="" />' : '')+'</td><td>'+address+(phone !== '' ? '<br /><br />'+translation_4+' '+phone :'')+'</td><td class="distance">'+distance+' '+distance_unit+'</td></tr>');

I would actually like to modify the second phone number "'+translation_4+' '+phone :'')" to something like:

'+translation_7+' '+note :'')

but this returns "Note: null" - translation_7 configured in stores.tpl and var note added in stores.js. And when I delete <br />'+translation_4+' '+phone :'')+' the map doesn't appear at all

 

How can I remove the second (or the first) phone number and add "note" to search results (and map pop-up too if possible)?

 

The simplified no-map display works fine.

Edited by bekway (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...