How do display an additional product image in the product template?
Posted: Wed May 20, 2020 10:07 pm
Hi, everybody, can you please tell me if I want to implement this functionality?
All products from product['thumb'] are displayed through foreach in the category template. When hovering over the product picture, through hover and position: absolute, z-index, I want to replace the main picture - the first additional picture.
The main image is displayed using in src in img tag.
How to output the additional image in the next tag img, what to implement?
All products from product['thumb'] are displayed through foreach in the category template. When hovering over the product picture, through hover and position: absolute, z-index, I want to replace the main picture - the first additional picture.
The main image is displayed using
Code: Select all
<?php echo $product['thumb']; ?>
How to output the additional image in the next tag img, what to implement?