Search code examples
ruby-on-railscheckoutspree

How to Remove the first step of registration from the flow of checkout process in Spree?


I want to remove the registration step from the checkout process. I have searched on net and got some clue but I didn't get, what exactly I need to do. :

In spree guides on github I have read this...

Default Checkout Steps

The Spree checkout process consists of the following steps (With the exception of the Registration step, each of these steps corresponds to a state of the Spree::Order object):

Registration (Optional – only if using spree_auth_devise extension, can be toggled through configuration setting)

Address Information

Delivery Options (Shipping Method)

Payment

Confirmation

How do change this, please help.


Solution

  • I have solved it.

    We can skip it with just change in app/config/initializers/spree.rb

    Spree::Auth::Config[:registration_step] = false