This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spree::CheckoutController.class_eval do | |
def ensure_checkout_allowed | |
check = @order.checkout_allowed? | |
unless check == true | |
redirect_to spree.cart_path, :flash => {:error => I18n.t("checkout_allowed_errors.#{check}")} | |
end | |
end | |
end |