Jump to content

Meta description ERROR


Recommended Posts

Hi everyone, 
 
I have an issue with my metadescrition. I tried to add a metadescription on my backoffice for each category and it's not working. The only way to make it works it's to add the metadescription on my header.tpl. 
 
Then, I'm trying to organise it by catogory and cms but now i need to add the short-description on the specific page to page name => product. 
 
Here it's my code source : 
{if isset($meta_description) AND $meta_description}

			{if $page_name =='index' }
			<meta name="description" content="
							{if $lang_iso=="fr" && $page_name =='index' }Text{/if}
							{if $lang_iso=="ja" && $page_name =='index' }Text{/if}
							{if $lang_iso=="en" && $page_name =='index' }Text" />
			{/if}

			{if $page_name =='cms' }
			<meta name="description" content="
							{if $lang_iso=="fr" && $cms->id==37 }Text{/if}
							{if $lang_iso=="en" && $cms->id==37 }Text{/if}
							{if $lang_iso=="ja" && $cms->id==37 }Text{/if}
							{if $lang_iso=="fr" && $cms->id==27 }Text{/if}
							{if $lang_iso=="en" && $cms->id==27 }Text{/if}
							{if $lang_iso=="ja" && $cms->id==27 }Text{/if}" />
			{/if}

			{if $page_name =='category' }
			<meta name="description" content="
							{if $lang_iso=="fr" && $category->id==28 }Text{/if}
							{if $lang_iso=="en" && $category->id==28 }Text{/if}
							{if $lang_iso=="ja" && $category->id==28 }Text{/if}
							{if $lang_iso=="fr" && $category->id==38 }Text{/if}
							{if $lang_iso=="en" && $category->id==38 }Text{/if}
							{if $lang_iso=="ja" && $category->id==38 }Text{/if}
							{if $lang_iso=="fr" && $category->id==69 }Text{/if}
							{if $lang_iso=="en" && $category->id==69 }Text{/if}
							{if $lang_iso=="ja" && $category->id==69 }Text{/if}
							{if $lang_iso=="fr" && $category->id==41 }Text{/if}
							{if $lang_iso=="en" && $category->id==41 }Text{/if}
							{if $lang_iso=="ja" && $category->id==41 }Text{/if}
							 " />
			{/if}

			{if $page_name =='product' }
			<meta name="description" content="${short_description} - {$shop_name|strip_tags}" />
			{/if}

{/if}


But it's no working . 

 

Thanks ! 

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