diff --git a/app/overrides/cart_item_description.rb b/app/overrides/cart_item_description.rb deleted file mode 100644 index 8ae809a183..0000000000 --- a/app/overrides/cart_item_description.rb +++ /dev/null @@ -1,5 +0,0 @@ -Deface::Override.new(:virtual_path => "spree/orders/_line_item", - :replace => "[data-hook='cart_item_description']", - :partial => "spree/orders/cart_item_description", - :name => "cart_item_description", - :original => 'ce2b7ddab2a6a13b25159ea18f6ab50991409d3e') diff --git a/app/views/spree/orders/_cart_item_description.html.haml b/app/views/spree/orders/_cart_item_description.html.haml deleted file mode 100644 index 8c99781d5c..0000000000 --- a/app/views/spree/orders/_cart_item_description.html.haml +++ /dev/null @@ -1,7 +0,0 @@ -%td{'data-hook' => "cart_item_description"} - %h4= variant.product.name - = variant.options_text - - if @order.insufficient_stock_lines.include? line_item - %span.out-of-stock - = variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) - %br/ diff --git a/app/views/spree/orders/_line_item.html.haml b/app/views/spree/orders/_line_item.html.haml index 42649c8bee..59db1c6878 100644 --- a/app/views/spree/orders/_line_item.html.haml +++ b/app/views/spree/orders/_line_item.html.haml @@ -5,14 +5,13 @@ - else = link_to image_tag(variant.images.first.attachment.url(:small)), variant.product - %td.cart-item-description{"data-hook" => "cart_item_description"} - %h4= link_to variant.product.name, product_path(variant.product) + %td.cart-item-description{'data-hook' => "cart_item_description"} + %h4= variant.product.name = variant.options_text - if @order.insufficient_stock_lines.include? line_item %span.out-of-stock = variant.in_stock? ? t(:insufficient_stock, :on_hand => variant.on_hand) : t(:out_of_stock) - %br - = line_item_description(variant) + %br/ %td.cart-item-price{"data-hook" => "cart_item_price"} = line_item.single_money.to_html