vivianeFinance Posted February 3, 2015 Share Posted February 3, 2015 Hello i'm trying to add a link to contact us instead of the Email in blockcontactinfo.tpl i have added this code to my tpl file : {if $blockcontactinfos_email != ''} <li> <i class="icon-envelope-alt"></i>{l s='Contact us:' mod='blockcontactinfos'} <a href="contact-us">{$email}</a> </li> {/if} but it didn't work does anyone have any idea ? Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted February 3, 2015 Share Posted February 3, 2015 Because you made a slight mistake in your code. Try the following {if $blockcontactinfos_email != ''} <li> <i class="icon-envelope-alt"></i>{l s='Contact us:' mod='blockcontactinfos'} <a href="contact-us">{$blockcontactinfos_email}</a> </li> {/if} That should work. Marty Shue Link to comment Share on other sites More sharing options...
vivianeFinance Posted February 3, 2015 Author Share Posted February 3, 2015 thank you for your answer in fact i have to put a link to the contact form istead of putting the {$blockcontactinfos_email} so that when the cutomer click on the link he will be redirected to contact form what do you think ? Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted February 3, 2015 Share Posted February 3, 2015 I think the above code does exactly that. I just tried it on a demo installation and it worked just perfectly. It adds the email as a link to the contact form. Isn't that what you are trying to achieve? Marty Shue Link to comment Share on other sites More sharing options...
vivianeFinance Posted February 3, 2015 Author Share Posted February 3, 2015 I think the above code does exactly that. I just tried it on a demo installation and it worked just perfectly. It adds the email as a link to the contact form. Isn't that what you are trying to achieve? Marty Shue yes that's exactly what i want to do thank you but the href contact-us is 404 - File or directory not found. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted February 3, 2015 Share Posted February 3, 2015 (edited) Is PS installed on the root directory or a folder? This might be your problem. If all else fails navigate to your contact page and copy the URL. Hope this helps! Marty Shue Edited February 3, 2015 by Carolina Custom Designs (see edit history) Link to comment Share on other sites More sharing options...
vivianeFinance Posted February 3, 2015 Author Share Posted February 3, 2015 Is PS installed on the root directory or a folder? This might be your problem. If all else fails navigate to your contact page and copy the URL. Hope this helps! Marty Shue in the url of the contact form is : www.MyPrestashopWebsite/index.php?controller=contact i still don't figure out what to put as url Link to comment Share on other sites More sharing options...
vivianeFinance Posted February 3, 2015 Author Share Posted February 3, 2015 i solved it it was simply that i had all my url in french : contact-us => contactez-nous Thank you for your answer you helped a lot Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted February 3, 2015 Share Posted February 3, 2015 Turn on friendly URLs > Preferences > SEO & URLs. This should allow you to use contact-us. Or you can just use the URL you referenced above. Marty Shue Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted February 3, 2015 Share Posted February 3, 2015 (edited) Looks like we were cross posting Glad to hear you solved it. Please edit your original post and mark the topic as [sOLVED]. Marty Shue Edited February 3, 2015 by Carolina Custom Designs (see edit history) 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