Sha256: 3309e0544a766f95c2d6aa6eddf8edce0a264c55cabb1da1a278b780561fd57f

Contents?: true

Size: 982 Bytes

Versions: 62

Compression:

Stored size: 982 Bytes

Contents

module Workarea
  module Storefront
    class OrderMailer < Storefront::ApplicationMailer
      include TransactionalMailer

      def confirmation(order_id)
        order = Order.find(order_id)
        @order = Storefront::OrderViewModel.new(order)
        @content = Content::Email.find_content('order_confirmation')
        @recommendations = Storefront::EmailRecommendationsViewModel.wrap(order)

        mail(
          to: @order.email,
          subject: t('workarea.storefront.email.order_confirmation.subject', order_id: @order.id)
        )
      end

      def reminder(order_id)
        order = Order.find(order_id)
        @order = Storefront::OrderViewModel.new(order)
        @content = Content::Email.find_content('order_reminder')
        @recommendations = Storefront::EmailRecommendationsViewModel.wrap(order)

        mail(
          to: order.email,
          subject: t('workarea.storefront.email.order_reminder.subject')
        )
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.26 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.45 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.25 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.23 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.44 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.22 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.43 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.21 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.42 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.20 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.41 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.19 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.40 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.18 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.39 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.17 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.38 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.5.16 app/mailers/workarea/storefront/order_mailer.rb
workarea-storefront-3.4.37 app/mailers/workarea/storefront/order_mailer.rb