Ateq Rana Ateq Rana - 1 year ago 174
Ruby Question

How to override Spree checkout process Or How to Remove any state during checkout like "Delivery" step? Spree Ecpmmerece

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

Any thoughts on this.


Answer Source

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
  # ...
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download