That functionality is not built-in, but you could customize your templates to produce it.
Since you didn't talk about which pages you wanted this for, it's hard to give you any specifics.
However, here's a start, assuming you're talking about the product-info page.
(remember, this affects content which normally appears inside H1 tags, which are important for SEO benefits ... so, you may want to rethink things slightly ... food for thought)
If you look at your tpl_product_info_display.php template file, you'll see a section that looks like this:
Code:
<!--bof Product Name-->
<h1 id="productName" class="productGeneral"><?php echo $products_name; ?></h1>
<!--eof Product Name-->
Note the reference to $products_name
Normally the $products_name variable is set to be the product name contained in the database.
To override what normally appears in place of $products_name, go to:
/includes/modules/pages/product_info/main_template_vars_product_type.php
If you add code, as shown below, to this file, you'll be able to use the product image setting to locate a matching image for the product name instead:
Code:
// Nothing special to do here for primary product_info type
replaced by:
Code:
$title_image_suffix = '_TITLE';
if ($products_image != PRODUCTS_IMAGE_NO_IMAGE && $products_image != '') {
$products_image_extension = substr($products_image, strrpos($products_image, '.'));
$products_image_base = str_replace($products_image_extension, '', $products_image);
$new_title_image = $products_image_base . $title_image_suffix . $products_image_extension;
if (file_exists($new_title_image)) $products_name = zen_image($new_title_image);
}
Using this, if you have /images/t44yellow.jpg as your primary product image, then you can create another file called /images/t44yellow_TITLE.jpg (yes, literal _TITLE) for the title to display instead of the name.
If you don't like _TITLE, then choose another suffix and enter it in the code above, and name your images accordingly.
Bookmarks