Tryggalarm.com Posted February 8, 2013 Share Posted February 8, 2013 Hi. Can someone please tell me where and how to modify the mailto buttom in contact info on the right side to become a www link. I want it to direct to the contact form page, 1 Link to comment Share on other sites More sharing options...
doubleD Posted February 8, 2013 Share Posted February 8, 2013 Hi. Can someone please tell me where and how to modify the mailto buttom in contact info on the right side to become a www link. I want it to direct to the contact form page, You can change it in /modules/blockcontact/blockcontact.tpl <a href="mailto:{$email|escape:'htmlall':'UTF-8'}"> Link to comment Share on other sites More sharing options...
El Patron Posted February 8, 2013 Share Posted February 8, 2013 modules/blockcontact/blockcontact.tpl find {if $email != ''}<a href="mailto:{$email|escape:'htmlall':'UTF-8'}">{l s='Contact our hotline' mod='blockcontact'}</a>{/if} we will now comment it out: <!-- {if $email != ''}<a href="mailto:{$email|escape:'htmlall':'UTF-8'}">{l s='Contact our hotline' mod='blockcontact'}</a>{/if} --> inset this line after <a href="{$link->getPageLink('contact-form', true)}">{l s='Contact Us' mod='blockcontact'}</a> note I did not test the code... Link to comment Share on other sites More sharing options...
Nici Posted March 9, 2013 Share Posted March 9, 2013 (edited) Hello! I just installed pestashop 1.5.3.1 a few days ago an have the same problem like discussed here. I cannot get rid of this st***d mailto: I set to force compilation - then I read many advices on this page I want to change both - blockcontact and blockcontactinfo background is the same - blockcontact with a button link and blockkontactinfo with Contact: go to contactform (link) First I tried to change in blockcontactinfo.tpl : {if $email != ''}<li>{l s='Contact:'} <a href="{$base_dir}contact-us">{$email}</a></li>{/if} --> this was posted in the forum and changing text (incl. de.php file) works fine, but when I click the link my outlook opens up and I can see in my browsers css tool that the link starts with mailto: Second I tried the one above posted by elpatron - thx - but it's the same. I searched every file to find this mailto causing this but there is no one after modifying?? - means I maybe have some trouble with my browser - cleared browser cache (chrome) and ipconfig flushdns because I got ssl yesterday - what can I clear else? I even deleated temp files just to get sure. Tried with Internet Exlorer and Mozilla now too... but always outlook wants to open... arrgh I'm not experianced with cookies caches and so on, is this the key to solve this problem? Do I really need a second (sub)domain for testing "static content" or am I completely wrong with my thoughts?? Maybe code is set in a different config file for $email ?? means hidden and read out from $email defined somewhere else? Edited March 9, 2013 by Nici (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted March 9, 2013 Share Posted March 9, 2013 you should check themes/YOUR_THEME/modules/ maybe your template override files Link to comment Share on other sites More sharing options...
Nici Posted March 9, 2013 Share Posted March 9, 2013 (edited) THANK YOU FOR YOUR ANSWER. YOU ARE MY HERO!! That was it. @ elpatron: it works like you said, but displays like: Contact: https://my-contact-page-url = and it isn't a link so you have to copy and past it in the browser... I'm still looking for a "propper" solution, but got new inputs to figure it out now ;-) THX Edited March 9, 2013 by Nici (see edit history) Link to comment Share on other sites More sharing options...
Nici Posted March 9, 2013 Share Posted March 9, 2013 I got it now for blockcontactinfo.tpl: {if $blockcontactinfos_email != ''}<li>{l s='Contact:' mod='blockcontactinfos'} <a href="{$base_dir}contact-us">go to contact form</a></li>{/if} - modified $email to "go to contact form", important for non-english user -> replace the path with the Friendly URL like I did in german: {if $blockcontactinfos_email != ''}<li>{l s='Kontakt:' mod='blockcontactinfos'} <a href="{$base_dir}kontaktieren-sie-uns">zum Kontaktformular</a></li>{/if} Link to comment Share on other sites More sharing options...
vekia Posted March 9, 2013 Share Posted March 9, 2013 so i can mark this topic as solved? Link to comment Share on other sites More sharing options...
Nici Posted March 9, 2013 Share Posted March 9, 2013 YES! You can close it - but I will offer code for blockcontact here too, I still working on it. Link to comment Share on other sites More sharing options...
Nici Posted March 9, 2013 Share Posted March 9, 2013 so got it for blockcontact.tpl too: {if $email != ''}<a href="{$base_dir}contact-us">{l s='Contact our hotline' mod='blockcontact'}</a>{/if} both work perfect now. Link to comment Share on other sites More sharing options...
Recommended Posts