Class: SpreeCmCommissioner::OrdersController

Inherits:
Spree::BaseController
  • Object
show all
Defined in:
app/controllers/spree_cm_commissioner/orders_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/spree_cm_commissioner/orders_controller.rb', line 5

def show
  @order = Spree::Order.search_by_qr_data!(params[:id])
  @product_type = @order.products.first&.product_type || 'accommodation'

  render :template => 'spree/order_mailer/confirm_email'
end