Hi,
Please I want to change alt tag value for product images to be the image file name not the product name .. how can I do that?
Thanks in advance,
Find the alt tags in the product template:
/catalog/view/theme/default/template/product/product.tpl

Then change them to be what is currently in the src attribute.
/catalog/view/theme/default/template/product/product.tpl

Then change them to be what is currently in the src attribute.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Legendary Member
Using the value of src in alt will show the full path of image. If you need only filename use basename function. It will be something like
Code: Select all
src = "<?php echo basename($image); ?>"
Who is online
Users browsing this forum: No registered users and 29 guests