Jump to content

Adding the main-category to product meta title


Recommended Posts

I want to add the name for the product's main category to the products meta title.

So if I have category: Garden Equipment and Product Waterhose

I want to have this result for the product meta title: Waterhose | Garden Equipment

Can I use only smarty, by adding something like this to the header.tpl:

{if $page_name == 'product'} get the product's main category and add this to the product meta title {/if}

?

Edited by Gomlers (see edit history)
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...