ruby on rails 3 - Application redirects to "cart" page after removing "Delivery" Step in Spree 2.0.0? -


i have deleted "delivery" step spree 2.0.0 checkout process. when fill address fields , continue application redirects me "cart" displaying cart empty though have added items cart. help?

thanks.

i found solution known issue. check on github

https://github.com/huoxito/spree/commit/505e256967f1ae79fee61e2dc2eca8ad91cdd9cf

here solution.

step 1: override spree checkout_controller "before_payment" method creating decorator file in app/controllers/spree/checkout_controller_decorator.rb

srep 2: paste following code in it.

spree::checkoutcontroller.class_eval   def before_payment   if @order.checkout_steps.include? "delivery"   packages = @order.shipments.map { |s| s.to_package }   @differentiator = spree::stock::differentiator.new(@order, packages)   @differentiator.missing.each |variant, quantity|   @order.contents.remove(variant, quantity)   end end end end 

thanks spree community.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -