Jump to content

Add email shop in DisplayNav1


Recommended Posts

Hi, I would like to add the email shop in hook DisplayNav1, after the Call us: phone. I did it editing nav.tpl 

themes/classic/modules/ps_contactinfo/nav.tpl 

with the code <spam>[email protected]<spam></spam> but I am working in a multistore PS 1.7.4.4 and I need to show a diferent email in every shop, so I need to add a code with something like:

  <div id="contact-link">
    {if $contact_infos.phone}
      {* [1][/1] is for a HTML tag. *}
      {l
        s='Call us: [1]%phone%[/1]'
        sprintf=[
          '[1]' => '<span>',
          '[/1]' => '</span>',
          '%phone%' => $contact_infos.phone
        ]
        d='Shop.Theme.Global'
      }
    {else}
      <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>
    {/if}
    
  </div>

but emai in place of %phone

any idea?

Thanks

 

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