mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove product descriptions from line item listings in cart and order
This commit is contained in:
4
app/overrides/order_item_description.rb
Normal file
4
app/overrides/order_item_description.rb
Normal 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")
|
||||
@@ -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/
|
||||
3
app/views/spree/orders/_order_item_description.html.haml
Normal file
3
app/views/spree/orders/_order_item_description.html.haml
Normal 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?
|
||||
Reference in New Issue
Block a user