Jump to content

(Solved) remove shop email address from front office


Recommended Posts

Hi,

I have a slight annoying problem, which I havent been able to solve yet.

After upgrading to 1,7,5, the email address is displayed on the front page via the contact block, and via the contact us link.

I don´t want the email displayed to the public due to spam problems,  but I don´t know how to remove just the email, the shop parameters / contact information requires an email address.

in 1,6 we had just a contact form which worked great for the last 5 years,

Id appreciate any help to get this solved.

Thanks

 

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

If you are using the prestashop 1.7 Classic theme then >>

Go to:

yoursite/themes/classic/modules/ps_contactinfo/ps_contactinfo.tpl

Remove the following:

      {if $contact_infos.email}
        <br>
        {* [1][/1] is for a HTML tag. *}
        {l
          s='Email us: [1]%email%[/1]'
          sprintf=[
            '[1]' => '<a href="mailto:'|cat:$contact_infos.email|cat:'" class="dropdown">',
            '[/1]' => '</a>',
            '%email%' => $contact_infos.email
          ]
          d='Shop.Theme.Global'
        }
      {/if}

Enjoy!

Link to comment
Share on other sites

Hello Crezzur,

Thanks for the reply, I tried your suggestion, but unfortunately it did not work for me on my shop, 1,7,5 with the standard theme.

On the shop information panel I wish to remove the email address and then when you press contact us, I wish to remove it and just use the contact form, to avoid spam.

I enclose a couple of pictures of where I am trying remove these addresses.

Thanks.

 

Screen Shot 2018-12-28 at 11.57.10.png

Screen Shot 2018-12-28 at 11.55.06.png

Link to comment
Share on other sites

3 hours ago, kaldevass said:

Update :-

Crezzur advice helped, actually now its removed from the front page, not sure what happened maybe a server reset helped.

But now the email address on the contact form that needs to be removed.

You needed to clear your cache, thats why you did not see the change.
 

Link to comment
Share on other sites

To remove the second e-mail: (works for prestashop classic theme)
Go to yourshop/themes/classic/modules/ps_contactinfo/ps_contactinfo-rich.tpl

Remove the following code:

  {if $contact_infos.email}
    <hr/>
    <div class="block">
      <div class="icon"><i class="material-icons">&#xE158;</i></div>
      <div class="data email">
        {l s='Email us:' d='Shop.Theme.Global'}<br/>
       </div>
       <a href="mailto:{$contact_infos.email}">{$contact_infos.email}</a>
    </div>
  {/if}

Make sure to clear your cache after the changes have been made!

If you have no further questions, like our post, and mark topic as "resolved"

Kind regards,

Crezzur

Link to comment
Share on other sites

Thanks Crezzur,

 

Method works as described.

 

but funny thing, clearing local cache did not remove the address, it was only after 12 - 24 hours that the email address disapeared as requested, I assume it was a server update that finally published the change.

 

 

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