I installed the spree_variant_options extension and now when you select a
product and click 'add to cart', which takes you to /cart, a NoMethodError
in Spree/orders#edit:

Showing *
/usr/local/lib64/ruby/gems/1.9.1/gems/spree_core-1.3.2/app/views/spree/orders/_line_item.html.erb
* where line *#4* raised:

undefined method `images' for nil:NilClass

Extracted source (around line *#4*):

1: <tr class="<%= cycle('', 'alt') %> line-item">
2: <td class="cart-item-image" data-hook="cart_item_image">
3: <% if variant.images.length == 0 %>
4: <%= link_to small_image(variant.product), variant.product %>
5: <% else %>
6: <%= link_to image_tag(variant.images.first.attachment.url(:small)), variant.product %>
7: <% end %>


Anyone else run into this issue?

--
Don't miss SpreeConf on May 20-21: http://spreeconf.com
Spree is hiring: http://spreecommerce.com/careers

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupspree-user @
categoriesrubyonrails
postedApr 3, '13 at 4:03p
activeApr 3, '13 at 4:03p
posts1
users1
websitespreecommerce.com
irc#RubyOnRails

1 user in discussion

Jameson Trinker: 1 post

People

Translate

site design / logo © 2023 Grokbase