Прошу прощения, опечатался в номере версии.
Брал 3.2.2, 3.2.1, адаптированную для Яндекса c просторов интернета - результат один: ссылки с ЧПУ в sitemap. Видимо это какая-то локальная кривизна моего магазина... Пока копаю в сторону принудительного отключения в модуле gsitemap конвертации ссылок в ЧПУ.
Нашел в gsitemap.php вот такой кусок кода, но моих навыков программирования, стремящихся к нулевой отметке, не хватает чтобы понять что именно отсюда надо убрать для достижения цели:
Цитата:
foreach ($products_id as $product_id)
{
$product = new Product((int)$product_id['id_product'], false, (int)$lang['id_lang']);
$url = $link->getProductLink($product, $product->link_rewrite, htmlspecialchars(strip_tags($product->category)), $product->ean13, (int)$lang['id_lang'], (int)$this->context->shop->id, 0, true);
$id_image = Product::getCover((int)$product_id['id_product']);
if (isset($id_image['id_image']))
{
$image_link = $this->context->link->getImageLink($product->link_rewrite, $product->id.'-'.(int)$id_image['id_image'], 'large_default');
$image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace(
array(
'https',
Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri
), array(
'http',
Context::getContext()->shop->domain.Context::getContext()->shop->physical_uri.Context::getContext()->shop->virtual_uri
), $image_link
) : $image_link;
}
$file_headers = (Configuration::get('GSITEMAP_CHECK_IMAGE_FILE')) ? @get_headers($image_link) : true;
$image_product = array();
if (isset($image_link) && ($file_headers[0] != 'HTTP/1.1 404 Not Found' || $file_headers === true))
$image_product = array(
'title_img' => htmlspecialchars(strip_tags($product->name)),
'caption' => htmlspecialchars(strip_tags($product->description_short)),
'link' => $image_link
);
if (!$this->_addLinkToSitemap(
$link_sitemap, array(
'type' => 'product',
'page' => 'product',
'lastmod' => $product->date_upd,
'link' => $url,
'image' => $image_product
), $lang['iso_code'], $index, $i, $product_id['id_product']
))
return false;
unset($image_link);
}