#73 ✓resolved
joep

adding product with option_variations to cart from product list

Reported by joep | August 12th, 2010 @ 07:37 PM

results in exception. Probably should be sent to details page with message?

To repeat: Create a product with options, go to main shop page with the product list, and try to add the item to the cart.

Processing PageController#index (for 192.168.0.3 at 2010-08-12 17:28:08) [POST]
Parameters: {"action"=>"index", "authenticity_token"=>"OVoI9LNwBKdy3NiNb3/HkdXZP+tZkNNkjLsVQRVWlBY=", "shop374"=>{"action"=>"add_to_cart", "product"=>"6"}, "path"=>["shop"], "controller"=>"page", "go"=>"Add to Cart"}

. . .

NoMethodError (You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]):
vendor/modules/shop/app/controllers/shop/page_renderer.rb:291:in handle_shop_action' vendor/modules/shop/app/controllers/shop/page_renderer.rb:290:inhandle_shop_action' vendor/modules/shop/app/controllers/shop/page_renderer.rb:22:in product_listing' lib/site_node_engine.rb:187:insend' lib/site_node_engine.rb:187:in render_module_paragraph' lib/site_node_engine.rb:150:incompile_paragraph' lib/site_node_engine.rb:679:in run' lib/site_node_engine.rb:667:ineach' lib/site_node_engine.rb:667:in run' lib/site_node_engine.rb:665:ineach' lib/site_node_engine.rb:665:in run' app/controllers/module_app_controller.rb:122:inhandle_page'

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages