Jump to content

Modification de la page Magasins (store)


Recommended Posts

Bonjour,

 

C'est mon premier topic et j'espère que je le post au bonne endroit.

 

J'ai besoin d'aide et j'espère que quelqu'un pourra m'aider.

 

J'essaie de modifier la page Store, celle reprenant la carte et la recherche des magasins. Je souhaite afficher en dessous de la carte l'entièreté des boutiques existante.

 

J'ai regardé le fichier store.tpl et j'ai repris (en rouge) tout ce qui se trouve à l'intérieure de la condition {if $stores|@count} et je l'ai coller à la fin du fichier.

 

Mais ca ne m'affiche que la premier ligne reprenant logo - store name - store adress -working hours. Il ne semble pas rentré dans la boucle. {foreach $stores as $store} 

 

Si quelqu'un à une idée merci de m'en faire part. je serai tréééés reconnaissant

 

 

 

{if $simplifiedStoresDiplay} 

    {if $stores|@count}

 

<h3 class="section-header">
            {l s='Here you can find our store locations. Please feel free to contact us:'}
</h3>
   <table class="table table-bordered">
    <thead>
            <tr>
                <th class="logo">{l s='Logo'}</th>
                    <th class="name">{l s='Store name'}</th>
                    <th class="address">{l s='Store address'}</th>
                    <th class="store-hours">{l s='Working hours'}</th>
                </tr>
            </thead>
{foreach $stores as $store}
<tr class="store-small">
<td class="logo">
{if $store.has_picture}
<div class="store-image">
<img src="{$img_store_dir}{$store.id_store}.jpg" alt="" />
</div>
{/if}
</td>
<td class="name">
{$store.name|escape:'html':'UTF-8'}
</td>
           <td class="address">
                        {assign value=$store.id_store var="id_store"}
                        {foreach from=$addresses_formated.$id_store.ordered name=adr_loop item=pattern}
                            {assign var=addressKey value=" "|explode:$pattern}
                            {foreach from=$addressKey item=key name="word_loop"}
                                <span {if isset($addresses_style[$key])} class="{$addresses_style[$key]}"{/if}>
                           {$addresses_formated.$id_store.formated[$key|replace:',':'']|escape:'html':'UTF-8'}
                       </span>
                            {/foreach}
                        {/foreach}
 
                        {if $store.phone}<br/>{l s='Phone:'} {$store.phone|escape:'html':'UTF-8'}{/if}
{if $store.fax}<br/>{l s='Fax:'} {$store.fax|escape:'html':'UTF-8'}{/if}
{if $store.email}<br/>{l s='Email:'} {$store.email|escape:'html':'UTF-8'}{/if}
{if $store.note}<br/><br/>{$store.note|escape:'html':'UTF-8'|nl2br}{/if}
</td>
           <td class="store-hours">
{if isset($store.working_hours)}{$store.working_hours}{/if}
           </td>
</tr>
{/foreach}
   </table>
 
 

    {/if}

 

{else}

 

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