meta description not showing in product page

cuteuser

Avatar: cuteuser

2015-03-31 16:41

I try in index.php

if( $p == $config['start_page'] )
$config['description'] = "my new website";
else
$config['description'] = strip_tags( ( !empty( $aData['sName'] ) ? $aData['sName'] : $aData['sName'] ) );
$sSubcategories = null;

in page.tpl
<meta name="Description" content="$config['description']" />


it show meta description in Main Categories Menu pages, ....But when i go to end product page it not show meta description ... why ?

it not showing meta description in Product Page ?

how to fix it ?

Please help!!!

cuteuser

Avatar: cuteuser

2015-03-31 22:23

...Actually if i go to end product page, it gets meta tag description from lang_en.php which is mentioned in admin panel General Configuration. instead of showing from following code

$config['description'] = strip_tags( ( !empty( $aData['sName'] ) ? $aData['sName'] : $aData['sName'] ) );



this code ==>

$config['description'] = strip_tags( ( !empty( $aData['sName'] ) ? $aData['sName'] : $aData['sName'] ) );

is unable to show meta tag description in end product page.

However above code works in other all main menu and category pages and show the meta tag description successfully in source code. ...But it not works in end product page.

So my question is how i can also show meta tag description in end product page through this code ==>

$config['description'] = strip_tags( ( !empty( $aData['sName'] ) ? $aData['sName'] : $aData['sName'] ) );



Please solve this issue... Your help will appreciate.

Thanks and Best Regards

Back to top
about us | contact