I don't know if this has been reported before ...
Running 1.3.9h with v3.6.1 of the URI Mapping code (using the v1.3.9c directory for admin). I've got a multi-lingual site (English and Spanish), and when I preview a product in admin, only the English (default) version of the product description/title are displayed.
Tracked this down the the various /admin/includes/modules/*/preview_info.php files, within the section marked:
Code:
<?php // BEGIN CEON URI MAPPING 3 of 4 ?>
... there's a loop
Code:
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
echo '<p>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] .
'/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' : ';
if (!is_null($uri_mappings[$languages[$i]['id']]) &&
strlen($uri_mappings[$languages[$i]['id']]) > 0) {
echo htmlentities($uri_mappings[$languages[$i]['id']]);
} else {
echo TEXT_URI_MAPPING_PRODUCT_NO_URI_ENTERED;
}
echo "</p>\n";
}
... that unfortunately uses the same loop index variables as the overall loop managing the multiple product description displays. Changing that loop to:
Code:
for ($i2 = 0, $n2 = sizeof($languages); $i2 < $n2; $i2++) {
echo '<p>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i2]['directory'] .
'/images/' . $languages[$i2]['image'], $languages[$i2]['name']) . ' : ';
if (!is_null($uri_mappings[$languages[$i2]['id']]) &&
strlen($uri_mappings[$languages[$i2]['id']]) > 0) {
echo htmlentities($uri_mappings[$languages[$i2]['id']]);
} else {
echo TEXT_URI_MAPPING_PRODUCT_NO_URI_ENTERED;
}
echo "</p>\n";
}
... allows both languages' textual information to be formatted and displayed.
Bookmarks