Jump to content

[Solved] Store Locator - Change Radius km to higher value


Recommended Posts

Hi all,

 

The Our Stores module is great especially if you have multiple stores, but for a single store it has it's limitations.

 

As my client has just the one store, customers on his website any further away than 100km are unable to use the location search function, which is restricting anyone outside of that area from finding the store.

 

How could this value be changed while still working. Better still, could the Radius feature be removed or at least set to a very large number and then hidden.

 

I am sure this would help many single store website owners.

 

Thanks.

Link to comment
Share on other sites

  • 2 weeks later...

This was easier to sort that I thought.

 

Themes/stores.tpl

 

<option value="15">15</option>
		<option value="25">25</option>
		<option value="50">50</option>
		<option value="100">100</option>
		<option value="300">300</option>

 

I just added the extra option (300)at line 86 and it works just fine.

  • Like 1
Link to comment
Share on other sites

  • 8 months later...
  • 9 months later...

Hi!

 

I have also just one shop, but I would prefer to remove the search box, radius... altogether. If we have just one shop it doesn't make sense to me to be able to enter an address. But I'd like to keep this module to show the map and shop's address details.

 

Does anybody know how to do this?

 

Thank you very much,

Unai

Link to comment
Share on other sites

I modified store.tpl so that it eliminated the radius selection and forced the radius value to 5000. See the modified code annotated below.

 

 

<p>
 <label for="addressInput">{l s='Your location:'}</label>
 <input type="text" name="location" id="addressInput" value="{l s='Address, zip/postal code, city, state or country'}" onclick="this.value='';" />
</p>
{* forced a wide radius for search and eliminated dropdown *}
{*    <p class="textbox">*}
 <input type="hidden" name="radius" id="radiusSelect" value="5000" />
{*    </p> *}
{*
* * Old selection of radius commented out
<p>
 <label for="radiusSelect">{l s='Radius:'} </label>
 <select name="radius" id="radiusSelect">
  <option value="15">15</option>
  <option value="25">25</option>
  <option value="50">50</option>
  <option value="100">100</option>
 </select> {$distance_unit}
 <img src="{$img_ps_dir}loader.gif" class="middle" alt="" id="stores_loader" />
</p>
* * * end of commenting out selection of radius * *
*}
<p class="clearfix">
 <input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" />
</p>

Link to comment
Share on other sites

Thank you very much Rhapsody, but I don't want the search box either. I just want a Google map and the address details.

 

I think maybe the best option for a single physical store shop is just to remove the module and create a simple contact page.

 

I've just started creating the shop, but I see that I'll have to learn html, css, tpl, php... I thought it would be easier, but every little thing I think about changing seems very difficult without all that knowledge :-(

 

Anyway, thanks again for your answer.

Link to comment
Share on other sites

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...