Sha256: c4dc1fccd66ad075cc32c894680aef156bd1c6e5a8ab2def3da21e48fd069b57

Contents?: true

Size: 799 Bytes

Versions: 43

Compression:

Stored size: 799 Bytes

Contents

module Spree
  class OrderMailer < BaseMailer
    def confirm_email(order, resend = false)
      @order = order.respond_to?(:id) ? order : Spree::Order.find(order)
      subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '')
      subject += "#{Spree::Config[:site_name]} #{Spree.t('order_mailer.confirm_email.subject')} ##{@order.number}"
      mail(to: @order.email, from: from_address, subject: subject)
    end

    def cancel_email(order, resend = false)
      @order = order.respond_to?(:id) ? order : Spree::Order.find(order)
      subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '')
      subject += "#{Spree::Config[:site_name]} #{Spree.t('order_mailer.cancel_email.subject')} ##{@order.number}"
      mail(to: @order.email, from: from_address, subject: subject)
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
spree_core-2.2.14 app/mailers/spree/order_mailer.rb
spree_core-2.2.13 app/mailers/spree/order_mailer.rb
spree_core-2.2.12 app/mailers/spree/order_mailer.rb
spree_core-2.2.11 app/mailers/spree/order_mailer.rb
spree_core-2.2.10 app/mailers/spree/order_mailer.rb
spree_core-2.2.9 app/mailers/spree/order_mailer.rb
spree_core-2.1.12 app/mailers/spree/order_mailer.rb
spree_core-2.2.8 app/mailers/spree/order_mailer.rb
spree_core-2.1.11 app/mailers/spree/order_mailer.rb
spree_core-2.2.7 app/mailers/spree/order_mailer.rb
spree_core-2.1.10 app/mailers/spree/order_mailer.rb
spree_core-2.0.13 app/mailers/spree/order_mailer.rb
spree_core-2.1.9 app/mailers/spree/order_mailer.rb
spree_core-2.2.6 app/mailers/spree/order_mailer.rb
spree_core-2.2.5 app/mailers/spree/order_mailer.rb
spree_core-2.1.8 app/mailers/spree/order_mailer.rb
spree_core-2.0.12 app/mailers/spree/order_mailer.rb
spree_core-2.2.4 app/mailers/spree/order_mailer.rb
spree_core-2.2.3 app/mailers/spree/order_mailer.rb
spree_core-2.2.2 app/mailers/spree/order_mailer.rb