mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Remove spree/checkout_controller.completion_route only used in spree/checkout_controller.update which is never used in OFN. Checkout update happpens in the checkout_controller.update
This commit is contained in:
@@ -27,13 +27,6 @@ module Spree
|
||||
|
||||
private
|
||||
|
||||
# Overrides the equivalent method defined in Spree::Core. This variation of the method will ensure that users
|
||||
# are redirected to the tokenized order url unless authenticated as a registered user.
|
||||
def completion_route
|
||||
return order_path(@order) if spree_current_user
|
||||
spree.token_order_path(@order, @order.token)
|
||||
end
|
||||
|
||||
def load_order
|
||||
@order = current_order
|
||||
redirect_to main_app.cart_path && return unless @order
|
||||
|
||||
Reference in New Issue
Block a user