Skip to content
Browse files

simplified custom naming schema

  • Loading branch information...
1 parent 164644c commit debfa4a2f73a95e60e6bb5f9c7f021fd73e69c8f @tomash tomash committed Nov 30, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/checkout/_paypal_checkout.html.erb
View
4 app/views/checkout/_paypal_checkout.html.erb
@@ -11,8 +11,8 @@
<input id="invoice" name="invoice" type="hidden" value="<%= @order.number %>" />
<% @order.line_items.each_with_index do |item, index| %>
- <%- if Spree::Paypal::Config[:include_option] %>
- <input id="item_name_<%= index + 1 %>" name="item_name_<%= index + 1 %>" type="hidden" value="<%= "#{item.variant.product.name} (#{variant_options(item.variant)})" %>" />
+ <%- if item.variant.respond_to?(:paypal_name) %>
+ <input id="item_name_<%= index + 1 %>" name="item_name_<%= index + 1 %>" type="hidden" value="<%= %>" item.variant.paypal_name />
<% else %>
<input id="item_name_<%= index + 1 %>" name="item_name_<%= index + 1 %>" type="hidden" value="<%= item.variant.product.name %>" />
<% end %>

0 comments on commit debfa4a

Please sign in to comment.
Something went wrong with that request. Please try again.