diff --git a/app/controllers/concerns/order_stock_check.rb b/app/controllers/concerns/order_stock_check.rb index e0f7aefac5..acc37529fc 100644 --- a/app/controllers/concerns/order_stock_check.rb +++ b/app/controllers/concerns/order_stock_check.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true module OrderStockCheck + include CablecarResponses extend ActiveSupport::Concern def valid_order_line_items? @@ -29,6 +30,9 @@ module OrderStockCheck flash[:info] = I18n.t('order_cycle_closed') respond_to do |format| + format.cable_ready { + render status: :see_other, operations: cable_car.redirect_to(url: main_app.shop_path) + } format.json { render json: { path: main_app.shop_path }, status: :see_other } format.html { redirect_to main_app.shop_path, status: :see_other } end