Skip to content

Commit

Permalink
added possibility to list options along with the product name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomash committed Nov 30, 2010
1 parent 5b07492 commit 164644c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/checkout/_paypal_checkout.html.erb
Expand Up @@ -11,7 +11,11 @@
<input id="invoice" name="invoice" type="hidden" value="<%= @order.number %>" /> <input id="invoice" name="invoice" type="hidden" value="<%= @order.number %>" />


<% @order.line_items.each_with_index do |item, index| %> <% @order.line_items.each_with_index do |item, index| %>
<input id="item_name_<%= index + 1 %>" name="item_name_<%= index + 1 %>" type="hidden" value="<%= item.variant.product.name %>" /> <%- 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)})" %>" />
<% else %>
<input id="item_name_<%= index + 1 %>" name="item_name_<%= index + 1 %>" type="hidden" value="<%= item.variant.product.name %>" />
<% end %>
<input id="amount_<%= index + 1 %>" name="amount_<%= index + 1 %>" type="hidden" value="<%= item.price %>" /> <input id="amount_<%= index + 1 %>" name="amount_<%= index + 1 %>" type="hidden" value="<%= item.price %>" />
<input id="quantity_<%= index + 1 %>" name="quantity_<%= index + 1 %>" type="hidden" value="<%= item.quantity %>" /> <input id="quantity_<%= index + 1 %>" name="quantity_<%= index + 1 %>" type="hidden" value="<%= item.quantity %>" />
<% end %> <% end %>
Expand Down

0 comments on commit 164644c

Please sign in to comment.