Hi,
I'm using an ecommerce script and want to add an ALT image tag into each product description page. It sounds simple enough, but I can't get it to work. After a whole day of going through the scripts code I have managed to find where the image information is generated, but there is no ALT tag by default in this part of the site for some reason.
The image information seems to be generated in the functions.php file and it seems to be this line:
$preview="<img src='".$preview_url."' border='0'>";
I tried to modifiy it by making it look like this:
$preview="<img src='".$preview_url."' border='0' alt='".$ds->row["title"]."' >";
By adding this code (which adds the ALT tag in another part of the site - the related items at the bottom of each product page) I though that the product title which appears at the top of the product page would be used as the ALT text. I tried adding a basic ALT tag (e.g ALT="sample alt tag") and this shows up on the site, so I am quite certain this is the place where the ALT tag could be defined, I just can't get it to generate an ALT tag relevant to each product.
The code I tried to add comes from another file where the ALT tag works for the related images section, so I'm not sure if this has something else missing from it.
Am I supposed to add anything anywhere else? I'm really stuck on this and have been trying to do it for a whole day, so if anyone can tell me what I am doing wrong, I would really appreciate it! Thanks