I have custom media attribute for hover hover_image
I would like from list.phtml to get this full path url to cached file.
e.g small_image
image in list.phtml is:
http://magento2/media/catalog/product/cache/e616f7b3fa3ef730e13c0a1681a4995e/b/l/test.jpg
I need hover_image
e.g:
http://magento2/media/catalog/product/cache/e616f7b3fa3ef730e13c0a1681a4995e/firt-letter/second-letter/hover_image.jpg
How can I do that? thanks.
Best Answer
I've got this. So this is quite simple:
in view.xml
in list.phtml
Note: keepAspectRatio, keepFrame, resize can be set in xml too instead.