purepixels Posted July 23, 2015 Share Posted July 23, 2015 Hi there, For a webshop of one of our clients I have a question. Our client wants to create a seperate <title> for all product pages. They would like to see a solution where all other pages in the prestashop remain like normal, but for the product pages they asked me to fix it like this; <title>{$meta_title} + *custom text fixed in header.tpl* </title> I think this can be done with a if/else statement around the current title to make an exeption for the product pages. if (page= "product - what to put here") { <title>{$meta_title} *custom text fixed in header.tpl* </title> } else { <title>{$meta_title}</title> } I am no programmer, so i ask your help with creating this statement. Is this even possible, and if so, is there anybody here who can help me with this? Thanks in advance for your help/advice! Link to comment Share on other sites More sharing options...
clint Posted July 23, 2015 Share Posted July 23, 2015 <title>{$meta_title} {if $page_name == 'product'} Required text {/if} </title> 1 Link to comment Share on other sites More sharing options...
purepixels Posted July 24, 2015 Author Share Posted July 24, 2015 Great stuff Clint, exactly what it needs to be! Thanks for your help! Link to comment Share on other sites More sharing options...
clint Posted July 24, 2015 Share Posted July 24, 2015 No problem. Happy coding 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