URL/11-category-name
URL/11-category-name?orderby=name&orderway=asc
URL/11-category-name?orderby=name&orderway=desc
URL/11-category-name?orderby=price&orderway=asc
URL/11-category-name?orderby=price&orderway=desc
URL/11-category-name?orderby=quantity&orderway=desc
Search Engines see this as duplicate meta tag information, and may penalize you for it.
You can change that by adding the sort order and page number into the Meta Tag information, which will make each page unique.
Open /classes/Tools.php and replace the function completeMetaTags (around line #500) with the function below.
static public function completeMetaTags($metaTags, $defaultValue)
{
global $cookie;
$no_duplication = "";
if (self::getValue('orderby'))
$no_duplication .= self::getValue('orderby')." ".self::getValue('orderway');
if (self::getValue('p'))
$no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p');
if (self::getValue('n'))
$no_duplication .= ($no_duplication != ""?" ":"").self::getValue('n');
if ($no_duplication != "")
$no_duplication = " (".$no_duplication.")";
if ($metaTags['meta_title'] == NULL)
$metaTags['meta_title'] = Configuration::get('PS_SHOP_NAME').' - '.$defaultValue;
$metaTags['meta_title'] .= $no_duplication;
if ($metaTags['meta_description'] == NULL)
$metaTags['meta_description'] = (Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) ? Configuration::get('PS_META_DESCRIPTION', intval($cookie->id_lang)) : '');
$metaTags['meta_description'] .= $no_duplication;
if ($metaTags['meta_keywords'] == NULL)
$metaTags['meta_keywords'] = Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) ? Configuration::get('PS_META_KEYWORDS', intval($cookie->id_lang)) : '';
return $metaTags;
}
Open /classes/Tools.php and replace the function getHomeMetaTags (around line #490) with the function below.
static public function getHomeMetaTags($id_lang)
{
global $cookie, $page_name;
/* Metas-tags */
$metas = Meta::getMetaByPage($page_name, $id_lang);
$ret['meta_title'] = (isset($metas['title']) AND $metas['title']) ? Configuration::get('PS_SHOP_NAME').' - '.$metas['title'] : Configuration::get('PS_SHOP_NAME');
$ret['meta_description'] = (isset($metas['description']) AND $metas['description']) ? $metas['description'] : '';
$ret['meta_keywords'] = (isset($metas['keywords']) AND $metas['keywords']) ? $metas['keywords'] : '';
$no_duplication = "";
if (self::getValue('orderby'))
$no_duplication .= self::getValue('orderby')." ".self::getValue('orderway');
if (self::getValue('p'))
$no_duplication .= ($no_duplication != ""?" #":"#").self::getValue('p');
if (self::getValue('n'))
$no_duplication .= ($no_duplication != ""?" ":"").self::getValue('n');
if ($no_duplication != "")
{
$ret['meta_title'] .= " (".$no_duplication.")";
$ret['meta_description'] .= " (".$no_duplication.")";
}
return $ret;
}
For more SEO tips check out http://www.presto-ch...estashopseotips




Back to top











