diff --git a/app/views/spree/orders/_bought.html.haml b/app/views/spree/orders/_bought.html.haml index e739caeff2..eb9e9edd48 100644 --- a/app/views/spree/orders/_bought.html.haml +++ b/app/views/spree/orders/_bought.html.haml @@ -16,10 +16,10 @@ %td.cart-item-description %div.item-thumb-image - - if variant.images.length == 0 - = mini_image(variant.product) + - if variant.product.images.length == 0 + = image_tag("/noimage/mini.png") - else - = image_tag(variant.images.first.attachment.url(:mini)) + = image_tag(variant.product.images.first.attachment.url(:mini)) = render 'spree/shared/line_item_name', line_item: line_item %span.already-confirmed= t(:orders_bought_already_confirmed) diff --git a/app/views/spree/orders/_line_item.html.haml b/app/views/spree/orders/_line_item.html.haml index 918a520fdf..97fce45415 100644 --- a/app/views/spree/orders/_line_item.html.haml +++ b/app/views/spree/orders/_line_item.html.haml @@ -2,10 +2,10 @@ %td.cart-item-description{'data-hook' => "cart_item_description"} %div.item-thumb-image{"data-hook" => "cart_item_image"} - - if variant.images.length == 0 - = mini_image(variant.product) + - if variant.product.images.length == 0 + = image_tag("/noimage/mini.png") - else - = image_tag(variant.images.first.attachment.url(:mini)) + = image_tag(variant.product.images.first.attachment.url(:mini)) = render 'spree/shared/line_item_name', line_item: line_item diff --git a/app/views/spree/orders/_summary.html.haml b/app/views/spree/orders/_summary.html.haml index 670a9b6ec7..1227dd24ff 100644 --- a/app/views/spree/orders/_summary.html.haml +++ b/app/views/spree/orders/_summary.html.haml @@ -16,10 +16,10 @@ %td(data-hook = "order_item_description") %div.item-thumb-image{"data-hook" => "order_item_image"} - - if item.variant.images.length == 0 - = mini_image(item.variant.product) + - if item.variant.product.images.length == 0 + = image_tag("/noimage/mini.png") - else - = image_tag(item.variant.images.first.attachment.url(:mini)) + = image_tag(item.variant.product.images.first.attachment.url(:mini)) = render 'spree/shared/line_item_name', line_item: item