Jump to content

'Contact us' link on header (solved)


Puriom

Recommended Posts

Hello!
Somehow on my header, at the top left position, where the "contact us" form is supposed to be, now there is only the words "Call us: 01234567) (our real tel. number).
I found out that the seo+url page "contact us" was missing, and I made a new one, which was added at the footer.

How do I add the link on the header? (In trasplant hooks I wasn't able to locate it.)
Thank you

(My theme is a child of the Classic theme.)

Link to comment
Share on other sites

hace 8 horas, Puriom dijo:

Hello!
Somehow on my header, at the top left position, where the "contact us" form is supposed to be, now there is only the words "Call us: 01234567) (our real tel. number).
I found out that the seo+url page "contact us" was missing, and I made a new one, which was added at the footer.

How do I add the link on the header? (In trasplant hooks I wasn't able to locate it.)
Thank you

(My theme is a child of the Classic theme.)

 

Check tutorial: https://victor-rodenas.com/2017/10/26/no-se-ve-el-enlace-de-contacte-con-nosotros-en-la-cabecera-de-prestashop-1-7/ (in Spanish (Use google translator) )

Edit the file:
There is a conditional , which shows the phone or shows the phrase contact us. Check the guide and you will understand.
In default theme file -> /themes/classic/modules/ps_contactinfo/nav.tpl

Sorry for my English,

 

Edited by nadie (see edit history)
  • Like 1
Link to comment
Share on other sites

Hello, thank you for the GREAT answer!!
Do you (maybe) know, how, after insterting the link for "contact us", how can I delete the whole telephone syntax? With the link I'm perfect OK, but I don't know how to remove the telephone part completely from header
Here is the code:

* @author    PrestaShop SA <[email protected]>
 * @copyright 2007-2017 PrestaShop SA
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *}
<div id="_desktop_contact_link">
  <div id="contact-link">
    {if $contact_infos.phone}
      <a href="{$urls.pages.contact}">{l s='Contact us' d='Shop.Theme.Global'}</a>
      {* [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>
</div>

 

Edited by Puriom (see edit history)
Link to comment
Share on other sites

  • Puriom changed the title to 'Contact us' link on header (solved)
  • 5 months later...

Hello,

 

                I want to change contact us url link ( $urls.pages.contact). I have created one static page and its url is /content/7-100-days-return  

how i can give new created page link instead of contact us link? Thanks

Link to comment
Share on other sites

  • 4 years later...

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