Jump to content

[SOLVED] how to erase all contact forms throughout the site


Recommended Posts

Hi guys,

 

I would like to delete all pages / links to do with the default plus my new theme contact pages. The client purely wants to use a mailto: link for this, but they seem to be everwhere and i want to make sure i do it in the correct format.

 

For example on my mobile i have a link, H4 footer header, when i place my order a link to the customer services, they pop up everywhere.

 

I am user mailalerts to receive the order conf so i need to make sure that is not lost.

 

Any help would be awesome.

 

Thanks

 

Patrick

Link to comment
Share on other sites

Hi,

 

The function Link::getPageLink makes the links, so you could make an override of the link class, where you make a new getPageLink function, which will have something like this code inside:

$controller = Tools::strReplaceFirst('.php', '', $controller);

if ($controller == 'contact') 
    return 'mailto:[email protected]';
else
    return parent::getPageLink(add all parameters);

Hope this helps

Link to comment
Share on other sites

Hi PZI,

 

Thanks for the response, i will have a play with it on monday. I ended up cleaning up the contact page and i will use it i think, but i want to take the link of the CONTACT H4 footer header link

 

I'm not 100% sure what page i need to edit, i have tried things but it never changed it. Could you help figure this out please!

 

http://tiendamaki.es/castellana

 

Muchas gracias

 

Patrick

Link to comment
Share on other sites

Hi Patrick,

I usppose the file for the H4 at the bottom of the page is the file:
themes/elation-liquid/modules/blockcontactinfos.tpl

in this template you should find somewhere the H4 with the getPageLink function, or at least a way to make this link to contact page.

I had a quick look noe and it seems you found where to remove it, I looked at it first on friday evening, it was still there.

Did you try for the override?

pzi

Link to comment
Share on other sites

×
×
  • Create New...