I want to attach images to email from products Spreecommerce. But following code doestn't work.
../app/views/order_mailer/confirm_email.html.erb
<% for item in @order.line_items %>
# I'm not sure this product.image containts images. And it doesn't work =(
<%= image_tag image.attachment.url(:product), :itemprop => "image" %>
<%=item.variant.sku %> <%=item.variant.product.name%>
<%= variant_options(item.variant) %>(<%=item.quantity%>) @ <%= number_to_currency item.price %>
<%= number_to_currency(item.price * item.quantity) %>
<% end %>
<%= number_to_currency @order.total %>
More understandable on the following picture.
Can you ask a solution to add image.products to confirmation email?