-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
app/controllers/spree_cm_commissioner/orders_controller.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class SpreeCmCommissioner::OrdersController < Spree::BaseController | ||
layout 'spree_cm_commissioner/layouts/order_mailer' | ||
helper 'spree/mail' | ||
|
||
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 | ||
end |
6 changes: 6 additions & 0 deletions
6
app/overrides/spree/admin/orders/_order_actions/actions.html.erb.deface
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- insert_after "erb[silent]:contains('content_for :page_actions')" --> | ||
|
||
<%= button_link_to Spree.t('print'), | ||
main_app.url_for("/o/#{order.qr_data}"), | ||
icon: 'printer.svg', | ||
target: :_blank %> |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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