Jump to content

Custom <title> for product pages


Recommended Posts

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

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...