Ateq Rana Ateq Rana - 6 months ago 55
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.

Thanks.

Answer

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
Comments