Jump to content

Store contact hours display all the same?


Recommended Posts

My store contacts page seems to not display the store information correctly.

 

While all my store names and addresses display correctly the store hours are the exact same for every shop (even though in the back end they are inputted correctly and all are different).

 

It seems it is grabbing the hours for the last store I inputted and just using that data for all the store listings. There has been no other changes to the template beyond some minor style sheet fixes.

 

I am using version 1.5.1.0, and need HELP!

post-395889-0-20549100-1375108115_thumb.png

Link to comment
Share on other sites

can you show the contents of the stores.tpl and store_infos.tpl file from your theme?

im asking for contents, because image that you attached looks like some non-default theme

so it's hard to say what's wrong with it without more informations (especially template files sources) about it

Link to comment
Share on other sites

here is the code for my store_info.tpl in my theme folder (ommiting all the comments at the top)

 

 

<br />

<br />

<span id="store_hours">{l s='working hours'}</span>

<table style="font-size: 9px;">

{foreach from=$days_datas item=one_day}

<tr>

<td style="width: 70px;">{l s=$one_day.day}</td><td>{$one_day.hours}</td>

</tr>

{/foreach}

</table>

 

 

and here is the stores.tpl

 

 

 

<script src="http://maps.google.com/maps/api/js?sensor=true"></script>

 

<h1>{l s='Our stores'}</h1>

 

{if $simplifiedStoresDiplay}

{if $stores|@count}

<p>{l s='Here is a list of our retail stores, feel free to contact us or come visit us and check out all the latest Apple products and services:'}</p>

{foreach from=$stores item=store}

<div class="store-small">

{if $store.has_picture}<p><img src="{$img_store_dir}{$store.id_store}.jpg" alt="" width="185" height="230" /></p>{/if}

<p>

<b>{$store.name|escape:'htmlall':'UTF-8'}</b><br /><br />

{$store.address1|escape:'htmlall':'UTF-8'}<br />

{if $store.address2}{$store.address2|escape:'htmlall':'UTF-8'}<br />{/if}

{$store.city|escape:'htmlall':'UTF-8'}{if $store.state}, {$store.state|escape:'htmlall':'UTF-8'}{/if}<br />

{$store.postcode}<br /> {$store.country|escape:'htmlall':'UTF-8'}<br /><br />

{if $store.phone}{l s='Phone:'} {$store.phone|escape:'htmlall':'UTF-8'}{/if}

<br /><br />

<table style="width:100%;font-size: 10px;padding-left: 0.7em;padding-top:12px;border-top:1px solid #e3e3e3;">

{foreach from=$days_datas item=one_day}

<tr>

<td style="width: 90px;">{l s=$one_day.day}</td><td>{$one_day.hours}</td>

</tr>

{/foreach}

</table>

</p>

</div>

{/foreach}

<div class="clear"></div>

{/if}

{else}

<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 store found, try to select 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}';

//]]>

</script>

 

<p>{l s='Enter a location (eg.: a zip/postal code, an address, a city or a country) in order to find the nearest stores.'}</p>

<p>{l s='Your location:'} <input type="text" name="location" id="addressInput" value="{l s='Address, zip/postal code, city, state or country'}" onclick="this.value='';" /></p>

<p style="margin-top: 15px;">

{l s='Radius:'}

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

<input type="button" class="button" onclick="searchLocations();" value="{l s='Search'}" style="display: inline;" />

<img src="{$img_ps_dir}loader.gif" class="middle" alt="" id="stores_loader" />

</p>

<div><select id="locationSelect"></select></div>

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

<table cellpadding="0" cellspacing="0" id="stores-table">

<tr>

<th>{l s='#'}</th>

<th>{l s='Store'}</th>

<th>{l s='Address'}</th>

<th>{l s='Distance'}</th>

</tr>

</table>

{/if}

Link to comment
Share on other sites

×
×
  • Create New...