Pman 77 Posted October 4, 2013 Share Posted October 4, 2013 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 More sharing options...
pzi Posted October 4, 2013 Share Posted October 4, 2013 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 More sharing options...
Pman 77 Posted October 5, 2013 Author Share Posted October 5, 2013 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 More sharing options...
pzi Posted October 7, 2013 Share Posted October 7, 2013 Hi Patrick,I usppose the file for the H4 at the bottom of the page is the file:themes/elation-liquid/modules/blockcontactinfos.tplin 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 More sharing options...
Pman 77 Posted October 7, 2013 Author Share Posted October 7, 2013 Thanks for the reply mate, I finally sniffed it out!!! It was where you said, I was looking in the wrong module! Key to PS is now what to edit! Thanks for your help PZI - Rockstar!! Regards Link to comment Share on other sites More sharing options...
vekia Posted October 7, 2013 Share Posted October 7, 2013 hello thanks for information that it works for you and how you solved the problem im going to mark this topic as [solved] with regards Milos Link to comment Share on other sites More sharing options...
Pman 77 Posted October 7, 2013 Author Share Posted October 7, 2013 Mark away!! Thanks again guys. have a great day! Link to comment Share on other sites More sharing options...
Recommended Posts