Skip to content

Commit

Permalink
Better product description
Browse files Browse the repository at this point in the history
Previously a truncated version of the description was used which is
often too verbose and sometimes not even that helpful.

Now using the product name combined with the options text.
  • Loading branch information
eric1234 committed Nov 28, 2017
1 parent 15b7981 commit de45d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/taxjar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def line_item_params
{
quantity: item.quantity,
product_identifier: item.sku,
description: ActionView::Base.full_sanitizer.sanitize(item.description).try(:truncate, 150),
description: "#{item.product.name}: #{item.variant.options_text}",
unit_price: item.price,
sales_tax: item.additional_tax_total,
discount: item.promo_total,
Expand Down

0 comments on commit de45d93

Please sign in to comment.