Jump to content

[SOLVED]Edit Our stores !


Recommended Posts

Edit your file:

themes/<your theme folder>/stores.tpl:

Comment out some code in the file (add text indicated by "<-- add this" ):

 

 

{capture name=path}{l s='Our stores'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Our stores'}</h1>

{*													 <<--- add this

{if $simplifiedStoresDiplay}
{if $stores|@count}
<p>{l s='Here are our store locations, please feel free to contact us:'}</p>
{foreach $stores as $store}
 <div class="store-small grid_2">
  {if $store.has_picture}<p><img src="{$img_store_dir}{$store.id_store}-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /></p>{/if}
  <p>
<b>{$store.name|escape:'htmlall':'UTF-8'}</b><br />
{$store.address1|escape:'htmlall':'UTF-8'}<br />
{if $store.address2}{$store.address2|escape:'htmlall':'UTF-8'}{/if}<br />
{$store.postcode} {$store.city|escape:'htmlall':'UTF-8'}{if $store.state}, {$store.state}{/if}<br />
{$store.country|escape:'htmlall':'UTF-8'}<br />
{if $store.phone}{l s='Phone:' js=0} {$store.phone}{/if}
  </p>
{if isset($store.working_hours)}{$store.working_hours}{/if}
 </div>
{/foreach}
{/if}
{else}

*}													 <<--- add this

<script type="text/javascript">
 // <![CDATA[
 var map;
 var markers = [];
 var infoWindow;
 var locationSelect;
 var defaultLat = '{$defaultLat}';
 var defaultLong = '{$defaultLong}';

 var translation_1 = '{l s='No stores found, try selecting a wider radius' js=1}';
 var translation_2 = '{l s='store found - see details:' js=1}';
 var translation_3 = '{l s='stores found - see all results:' js=1}';
 var translation_4 = '{l s='Phone:' js=1}';
 var translation_5 = '{l s='Get Directions' js=1}';
 var translation_6 = '{l s='Not found' js=1}';

 var hasStoreIcon = '{$hasStoreIcon}';
 var distance_unit = '{$distance_unit}';
 var img_store_dir = '{$img_store_dir}';
 var img_ps_dir = '{$img_ps_dir}';
 var searchUrl = '{$searchUrl}';
 var logo_store = '{$logo_store}';
 //]]>
</script>

{*													 <<--- add this

<p>{l s='Enter a location (e.g. zip/postal code, address, city or country) in order to find the nearest stores.'}</p>
<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>
<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>
<p class="clearfix">
 <input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" />
</p>
<div><select id="locationSelect"><option></option></select></div>

*}													 <<--- add this

<div id="map"></div>

{*													 <<--- add this

<table cellpadding="0" cellspacing="0" border="0" id="stores-table" class="table_block">
 <tr>
  <th>{l s='#'}</th>
  <th>{l s='Store'}</th>
  <th>{l s='Address'}</th>
  <th>{l s='Distance'}</th>
 </tr>
</table>
{/if}

*}													 <<--- add this

 

 

N.B. Suggest to keep the 'path' to this page (i.e. 'breadcrumb') and the title of the page ("Our stores") for SEO. If you have only one store, take out the 's' ;-)

 

My 2 cents,

pascal

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...