Jump to content

Edit History

Andrei H

Andrei H

Hello @MariusTattooSupplies,

You will need to edit the following file: themes/classic/modules/ps_contactinfo/nav.tpl

Replacing the code from lines 25-42 with the following should fix your issue:

<div id="_desktop_contact_link">
  <div id="contact-link">
    {if $contact_infos.phone}
      {assign var="tel_link" value="<a href='tel:{$contact_infos.phone}'>"}
      {* [1][/1] is for a HTML tag. *}
      {l
        s='Call us: [1]%phone%[/1]'
        sprintf=[
          '[1]' => $tel_link,
          '[/1]' => '</a>',
          '%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>
</div>

Also, please make sure you have the Template compilation setting set to 'Recompile templates if the files have been updated' in Admin -> Advanced Parameters -> Performance

Once you refresh the page, the phone number should be clickable.

Andrei H

Andrei H

Hello @MariusTattooSupplies,

You will need to edit the following file: themes/classic/modules/ps_contactinfo/nav.tpl

Replacing the code from lines 25-42 with the following should fix your issue:

<div id="_desktop_contact_link">
  <div id="contact-link">
    {if $contact_infos.phone}
      {assign var="tel_link" value="<a href='tel:{$contact_infos.phone}'>"}
      {* [1][/1] is for a HTML tag. *}
      {l
        s='Call us: [1]%phone%[/1]'
        sprintf=[
          '[1]' => $tel_link,
          '[/1]' => '</a>',
          '%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>
</div>

Also, please make sure you have the Template compilation setting set to 'Recompile templates if the files have been updated' in Admin -> Advanced Parameters -> Performance

Once you refresh the page, that link should be clickable.

Andrei H

Andrei H

Hello,

You will need to edit the following file: themes/classic/modules/ps_contactinfo/nav.tpl

Replacing the code from lines 25-42 with the following should fix your issue:

<div id="_desktop_contact_link">
  <div id="contact-link">
    {if $contact_infos.phone}
      {assign var="tel_link" value="<a href='tel:{$contact_infos.phone}'>"}
      {* [1][/1] is for a HTML tag. *}
      {l
        s='Call us: [1]%phone%[/1]'
        sprintf=[
          '[1]' => $tel_link,
          '[/1]' => '</a>',
          '%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>
</div>

Also, please make sure you have the Template compilation setting set to 'Recompile templates if the files have been updated' in Admin -> Advanced Parameters -> Performance

Once you refresh the page, that link should be clickable.

×
×
  • Create New...