New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override in checkout_flow results session clearing #2966
Comments
I can confirm this. The line items are being removed on the def before_payment
packages = @order.shipments.map { |s| s.to_package }
@differentiator = Spree::Stock::Differentiator.new(@order, packages)
@differentiator.missing.each do |variant, quantity|
@order.contents.remove(variant, quantity)
end
end Thanks for the report @CodeSavvy |
@CodeSavvy is this still an issue after the Pull Request? |
@GeekOnCoffee Infact, I didn't check.since I don't need shipping, I override before_payment method with a blank method (def before_payment;end) |
@GeekOnCoffee I think it is. which PR were you referring to? |
Ah ok, but that one is for a different issue. Guess this one remains then |
for sure @radar yes |
I've overrided checkout_flow method and tried the checkout process
checkout_flow do
go_to_state :address
#go_to_state :delivery commented
go_to_state :payment, :if => lambda { |order| order.payment_required? }
go_to_state :confirm, if: ->(order) { order.confirmation_required? }
go_to_state :complete, if: ->(order) {
(order.payment_required? && order.has_unprocessed_payments?) || !order.payment_required?
}
remove_transition from: :delivery, to: :confirm
end
It successfully removes the shipment(delivery process) and when clicks 'Continue' button, redirects to 'No items page' (Empty Cart)
Any kind of bug??
The text was updated successfully, but these errors were encountered: