Show your QR to enter
+diff --git a/app/controllers/spree_cm_commissioner/orders_controller.rb b/app/controllers/spree_cm_commissioner/orders_controller.rb index 0c261383e..06a3e3d8f 100644 --- a/app/controllers/spree_cm_commissioner/orders_controller.rb +++ b/app/controllers/spree_cm_commissioner/orders_controller.rb @@ -4,6 +4,7 @@ class SpreeCmCommissioner::OrdersController < Spree::BaseController def show @order = Spree::Order.search_by_qr_data!(params[:id]) + @show_qr = true @product_type = @order.products.first&.product_type || 'accommodation' render :template => 'spree/order_mailer/confirm_email' diff --git a/app/mailers/spree/order_mailer_decorator.rb b/app/mailers/spree/order_mailer_decorator.rb index d4fa66778..71ee7e177 100644 --- a/app/mailers/spree/order_mailer_decorator.rb +++ b/app/mailers/spree/order_mailer_decorator.rb @@ -14,6 +14,7 @@ def confirm_email(order, resend: false) @current_store = @order.store @product_type = @order.products.first&.product_type || 'accommodation' + @show_qr = false subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{@current_store&.name} Booking Confirmation ##{@order.number}" diff --git a/app/views/spree/order_mailer/confirm_email.html.erb b/app/views/spree/order_mailer/confirm_email.html.erb index 38aabe260..6e6dd65aa 100644 --- a/app/views/spree/order_mailer/confirm_email.html.erb +++ b/app/views/spree/order_mailer/confirm_email.html.erb @@ -6,7 +6,7 @@
Show your QR to enter
+