DARKF3D3 Posted October 7, 2018 Share Posted October 7, 2018 Hello, I'm trying to add height and width attribute to product miniatures showed on category pages. On PS1.6 I do something like this: width="{$homeSize.width}" height="{$homeSize.height} I tried doing the same on PS.17 with file /themes/classic/templates/catalog/_partials/miniatures/product.tpl, but it doesn't works. Do you know how this can be done? Link to comment Share on other sites More sharing options...
NemoPS Posted October 8, 2018 Share Posted October 8, 2018 I think you are better off just hardcoding it, since in any case it won't likely change. I would say it's not a good idea to do that anymore though, and it would be even better to use dynamic image sources (srcset), but that would need a module/core mod Link to comment Share on other sites More sharing options...
DARKF3D3 Posted October 10, 2018 Author Share Posted October 10, 2018 Thank you Nemo, I hardcoded image size into product miniature tpl file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now