CarriedAwayCrafts Posted May 8, 2012 Share Posted May 8, 2012 (edited) I'm configuring the new default template 1.5 and in the Module, Block Contact Infos v1.0, I would like to replace the 'Email' field with a link to the Contact Form. I don't like the idea of displaying my email address so prominently as it invites so much spam. Can anyone help? If this is not possible (or even if not easy coding), then I would like to remove the Email field completely. I tried to simply delete my email address in that field of the module, but when I hit "Update Settings" my email address automatically defaults into the field. As a work-around, I've placed "Please Use Contact Button, Upper Right" into the field, but that does not look very professional and it still causes the user's default email client software to open up. I appreciate any help you can give. Edited May 14, 2012 by CarriedAwayCrafts (see edit history) 1 Link to comment Share on other sites More sharing options...
MEG Venture Posted May 8, 2012 Share Posted May 8, 2012 Attach the Block Contact Infos v1.0 zip file of yours and then I'll edit. Link to comment Share on other sites More sharing options...
CarriedAwayCrafts Posted May 8, 2012 Author Share Posted May 8, 2012 (edited) Thank you Caglar, I may try to do that later but have to run an errand just now. In the meantime- can you teach me (and others here) by posting the code changes? Or is it too difficult? Edited May 8, 2012 by CarriedAwayCrafts (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted May 8, 2012 Share Posted May 8, 2012 Sure I can teach but I don't have the source file. That's why I requested. That module is not a native module of Prestashop I guess, I can't find it on my installation. The coding is very easy. It will probably be in the .tpl file, but I said, I need to see the source file first. Link to comment Share on other sites More sharing options...
CarriedAwayCrafts Posted May 8, 2012 Author Share Posted May 8, 2012 (edited) I'm back- sorry, didn't realize the mod was not native. File attached. Thanks for helping. blockcontactinfos.zip Edited May 8, 2012 by CarriedAwayCrafts (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted May 8, 2012 Share Posted May 8, 2012 Please change the blockcontactinfos.tpl file with the one attached. Then in the email field, write anything like "Click here" and update me about the result. blockcontactinfos.zip 1 Link to comment Share on other sites More sharing options...
MEG Venture Posted May 8, 2012 Share Posted May 8, 2012 (edited) Anyway, it seems that you forgot to give feedback. Here is what I did for the ones who wonder: I made the below change line 34 in blockcontactinfos.tpl: New: {if $email != ''}<li>{l s='Contact:'} <a href="{$base_dir}contact-us">{$email}</a></li>{/if} Old: {if $email != ''}<li>{l s='Email:'} <a href="mailto:{$email}">{$email}</a></li>{/if} Edited May 8, 2012 by Caglar (see edit history) 1 Link to comment Share on other sites More sharing options...
CarriedAwayCrafts Posted May 8, 2012 Author Share Posted May 8, 2012 Calgar: Works perfectly. Thank you, my friend. To others: Remember to change Force compile to 'Yes' and Cache to 'No' for change to take effect(Preferences>Performance>Smarty), then remember to change them back when you're done. Link to comment Share on other sites More sharing options...
CarriedAwayCrafts Posted May 8, 2012 Author Share Posted May 8, 2012 Anyway, it seems that you forgot to give feedback. Here is what I did for the ones who wonder: ... Didn't forget- Just had to take a late lunch, plenty of work today. You did a fine job and I hope I can repay the favor, someday. Thanks. 1 Link to comment Share on other sites More sharing options...
Guest locen Posted December 24, 2015 Share Posted December 24, 2015 Hi, I do not know how it happened as there were yesterday and not today but disappeared these icons in the footer: can someone help me? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now