Jump to content

adding contact us in blockcontactinfo.tpl


Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...