Search code examples
ruby-on-railsrubyruby-on-rails-3spree

How to override Spree checkout forms and step flows?


I'm using spree 2.0.0 in my application. I just want to know how i can edit spree checkout or how I can completely remove / disable any "Step" during Spree checkout process.

Any thoughts on this?


Solution

  • As Documentation says, you can use remove_checkout_step helper method (which is also much clearer than redefining whole checkout process), for example:

    Spree::Order.class_eval do
      # ...
      remove_checkout_step :delivery
      # ...
    end