Remove product descriptions from line item listings in cart and order

This commit is contained in:
Rob H
2012-12-14 15:08:35 +11:00
parent 1f8b4d185b
commit 63cf128f86
3 changed files with 8 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
Deface::Override.new(:virtual_path => "spree/shared/_order_details",
:replace => "[data-hook='order_item_description']",
:partial => "spree/orders/order_item_description",
:name => "order_item_description")

View File

@@ -4,5 +4,4 @@
- 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/
= truncate_html(variant.product.description, :length => 100, :omission => "...")
%br/

View File

@@ -0,0 +1,3 @@
%td(data-hook = "order_item_description")
%h4= item.variant.product.name
= "(" + variant_options(item.variant) + ")" unless item.variant .option_values.empty?