1. sh404SEF отключать не обязательно. для того, чтобы на страницах выводились meta, введенные в этом моде надо из
components/com_sh404sef/meta_ext/com_virtuemart.php
удалить строчки(примерно 95-143)
case 'shop.browse':
$catDesc = '';
$catList = vm_sef_get_category_title( $database, $catDesc, $category_id, $option, $shLangName );
$shCustomTitleTag = $catList ? $catList.' | ':'';
// pagination
$limit = JRequest::getInt( 'limit');
$limitstart = JRequest::getInt( 'limitstart');
$pageNumber = empty( $limit)? $limitstart : (floor( $limitstart/$limit) + 1);
if (!empty( $pageNumber)) {
$sefConfig = & shRouter::shGetConfig();
if ( $sefConfig->alwaysAppendItemsPerPage || $sefConfig->shVmUsingItemsPerPage) {
$shMultPageLength= $sefConfig->pagerep .(empty($limit)? '' : $limit);
} else $shMultPageLength= '';
// shumisha : modified to add # of items per page to URL, for table-category or section-category
if (!empty($sefConfig->pageTexts[$GLOBALS['shMosConfig_locale']])
&& (false !== strpos($sefConfig->pageTexts[$GLOBALS['shMosConfig_locale']], '%s'))){
$pattern = str_replace( $sefConfig->pagerep, ' ', $sefConfig->pageTexts[$GLOBALS['shMosConfig_locale']]);
$pageString = str_replace('%s', $pageNumber, $pattern).$shMultPageLength;
} else {
$pageString = ' ' .$pageNumber.$shMultPageLength;
}
} else {
$pageString = '';
}
$shCustomTitleTag .= empty($pageString)? '' : $pageString .' | ';
// shop name
$shCustomTitleTag .= $shShopName;
$shCustomDescriptionTag = $catDesc;
$shCustomKeywordsTag = ($catList ? str_replace('|', ',', $catList).',':'')
.$shShopName. ','.$shStoreName;
$shCustomRobotsTag = 'index, follow';
break;
case 'shop.product_details':
$q = "SELECT product_id, product_name, product_s_desc FROM #__vm_product";
$q .= "\n WHERE product_id = '%s'";
$database->setQuery( sprintf( $q, $product_id ) );
$row = null;
$row = $database->loadObject();
$catDesc = '';
$catList = vm_sef_get_category_title( $database, $catDesc, $category_id, $option, $shLangName );
if ($row) {
$shCustomTitleTag = $row->product_name.' | '.($catList ? $catList.' | ':'').$shShopName;
$shCustomDescriptionTag = $row->product_s_desc;
$shCustomKeywordsTag = $row->product_name.', '.($catList ? str_replace('|', ',', $catList).',':'')
.$shShopName. ','.$shStoreName;
$shCustomRobotsTag = 'index, follow';
}
break;
2. в вышеуказанных строчках вот эти строки(примерно 137-140)
$shCustomTitleTag = $row->product_name.' | '.($catList ? $catList.' | ':'').$shShopName;
$shCustomDescriptionTag = $row->product_s_desc;
$shCustomKeywordsTag = $row->product_name.', '.($catList ? str_replace('|', ',', $catList).',':'')
.$shShopName. ','.$shStoreName;
определяют какие meta выведет sh404SEF в VirtueMart на странице товара.
соответственно строчки(примерно 122-125)
$shCustomTitleTag .= $shShopName;
$shCustomDescriptionTag = $catDesc;
$shCustomKeywordsTag = ($catList ? str_replace('|', ',', $catList).',':'')
.$shShopName. ','.$shStoreName;
определяют какие meta выведет sh404SEF в VirtueMart на странице категории.
J 1.5.20, VM 1.1.5, sh404SEF 2.1.5.746