mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Add Spree::CheckoutController only to redirect to CheckoutController
I have not managed to make the spree checkout route, that paypal express uses, go to CheckoutController directly. According to the rails docs "to: '/checkout#edit'" should do it, but it doesnt work here.
This commit is contained in:
8
app/controllers/spree/checkout_controller.rb
Normal file
8
app/controllers/spree/checkout_controller.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
module Spree
|
||||
class CheckoutController < Spree::StoreController
|
||||
def edit
|
||||
flash.keep
|
||||
redirect_to main_app.checkout_path
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user