New Zenner
- Join Date:
- Jun 2009
- Location:
- Australia
- Posts:
- 20
- Plugin Contributions:
- 0
How to add an id tag to Main Product Image?
Hi all,
I'm using Zen Cart 1.3.8a.
This seems like an easy tweak, but I've been going around in circles for hours just trying to find where the HTML string is formed.
I'm trying to add an ID tag to the main product image displayed on a product page. I can't figure out/find where the code is being parsed to resultant HTML.
The file templates\My custom\templates\tpl_modules_main_product_image.php contains the code;
<?php echo zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT);?>
which outputs the HTML
<img src="images/range/CC596.jpg" alt="Slip" title="Slip" width="250" height="341" />
I'd like my HTML to include an ID tag as follows;
<img src="images/range/CC596.jpg" alt="Slip" title="Slip" width="250" height="341 ID='PIC' />
Where can I find the code which builds/parses this resultant HTML?
Hope this makes sense. Any help is appreciated.
Thanks in advance.
Regards
erko