spree_wishlist
spree_wishlist copied to clipboard
Variant image get a error in show page.
https://github.com/spree-contrib/spree_wishlist/blob/7fddd1d41b2e6149858bbf4474983aa435a28935/app/views/spree/wishlists/show.html.erb#L54
I fixed this bug with this code
<% if variant.images.length != 0 %>
<%= small_image(variant.product) %>
<% end %>
We should talk about it.
Other solution:
<%= product_image(variant.product, itemprop: "image") %>
Or more small:
<%= small_image(variant.product, itemprop: "image") %>
Hello.
I have this issue too.
I think it could be a better solution:
<%= image_tag main_app.url_for(variant.images.first.url(:small)) %>
retrieving the first stored image for this variant.
(Not the master image and without resizing the image again throught product_image or small_image methods).
MateoLa.