You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After defining a new checkout step, when user enters this step during checkout - he gets stuck in it and can't proceed.
Expected Behavior
After adding a new before: :address checkout step, user should be able to pass this step during checkout
Actual Behavior
After clicking "save and continue" on this new checkout step page, user get's redirected back to it instead of being redirected to address
Possible Fix
I managed to make it working in my instance by doing:
base.insert_checkout_step :additions, before: :address
base.add_transition from: :additions, to: :address
base.remove_transition from: :additions, to: :additions
So apparently doing only instert_checkout_step does not create a next transition from additions to address and also it creates a wrong next transition from additions to additions (and that's why it gets stuck i suppose)
Steps to Reproduce
Add insert_checkout_step :additions, before: :address to your order decorator
After defining a new checkout step, when user enters this step during checkout - he gets stuck in it and can't proceed.
Expected Behavior
After adding a new
before: :address
checkout step, user should be able to pass this step during checkoutActual Behavior
After clicking "save and continue" on this new checkout step page, user get's redirected back to it instead of being redirected to address
Possible Fix
I managed to make it working in my instance by doing:
So apparently doing only
instert_checkout_step
does not create a next transition fromadditions
toaddress
and also it creates a wrong next transition fromadditions
toadditions
(and that's why it gets stuck i suppose)Steps to Reproduce
insert_checkout_step :additions, before: :address
to your order decoratoradditions
stepYour Environment
The text was updated successfully, but these errors were encountered: