modify Alt text on product images

General ShopSite user discussion

modify Alt text on product images

Postby tulipgraphics » Mon Mar 03, 2008 11:19 pm

Can we change the alt text of all product images form "my-product-name.jpg" to "My Product Name" ?
Or in other words the alt text is showing the product image name including the .jpg, is there a way to show the product name at the alt text box ?

Thanks
Amit
tulipgraphics
 
Posts: 26
Joined: Tue Feb 26, 2008 1:41 am
Location: Israel

Alt Name

Postby VinceS » Tue Mar 04, 2008 7:13 am

Hi Amit

I've done something like that in my template. I make the Product Name the Alt Name. Works great. Here's the code.

<img [-- PRODUCT.Graphic Remove_HTML --] alt="[-- PRODUCT.Name --]" border="0">
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm

Postby tulipgraphics » Thu Mar 06, 2008 12:18 am

:)
Last edited by tulipgraphics on Thu Mar 06, 2008 1:11 am, edited 1 time in total.
tulipgraphics
 
Posts: 26
Joined: Tue Feb 26, 2008 1:41 am
Location: Israel

Postby tulipgraphics » Thu Mar 06, 2008 12:56 am

It is not working on my more info template, I used:
<img [-- PRODUCT.MoreInformationGraphic Remove_HTML --] alt="[-- PRODUCT.Name --]" border="0">

How should I change this set of tags, so the alt will show product name ?
[--
IF PRODUCT.DisplayMoreInformationPage --] <A HREF="[-- PRODUCT.MoreInfoURL --]">[--
PRODUCT.Graphic --]</A> [-- ELSE --][-- END_IF --]</TD><TD>[-- PRODUCT.NameSize
Begin --] [-- PRODUCT.NameStyle Begin --] [-- IF PRODUCT.DisplayMoreInformationPage
--] <A class=black HREF="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Name --]</A>
[-- ELSE --] [-- PRODUCT.Name --] [-- END_IF --]

:(
tulipgraphics
 
Posts: 26
Joined: Tue Feb 26, 2008 1:41 am
Location: Israel

Alt Name

Postby VinceS » Thu Mar 06, 2008 6:46 am

Hi Amit
Try this (see below). There didn't appear to be anything wrong with your code. It should have worked.

Are you certain the More Info page is being re-generated when you publish the product? Remember, if a product is NOT included on a page, the More Info page does not get re-generated.


<td>
IF PRODUCT.DisplayMoreInformationPage --]
<a href="[-- PRODUCT.MoreInfoURL --]"><img [-- PRODUCT.MoreInformationGraphic Remove_HTML --] alt="[-- PRODUCT.Name --]" border="0"></a>
[-- END_IF --]
</td>

<td>
[-- PRODUCT.NameSize Begin --]
[-- PRODUCT.NameStyle Begin --]
[-- IF PRODUCT.DisplayMoreInformationPage --]
<a class="black" href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Name --]</a>
[-- ELSE --]
[-- PRODUCT.Name --]
[-- END_IF --]
</td>
VinceS
 
Posts: 134
Joined: Fri Apr 06, 2007 1:26 pm


Return to User Forum

Who is online

Users browsing this forum: Bing [Bot] and 130 guests