Jump to content

Formated address of stores


Recommended Posts



I'm editing the presentation page of "Our stores" (stores.tpl).

I can't to hide several <span> tags.


This is problematic part of my stores.tpl :

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

And on the front-office, I have tags than : <span>  </span>

I don't know what content this tags, maybe escapes.


I would like to hide this <span> tags to skip a line between each parts of my address.

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