Sha256: e3f5cd75fb4941e7516221bfe42db9637d26ad7402d36e1d039e65a7bc99c88d
Contents?: true
Size: 1.37 KB
Versions: 21
Compression:
Stored size: 1.37 KB
Contents
module Spree class OrderMailer < BaseMailer def confirm_email(order, resend = false) @order = order.respond_to?(:id) ? order : Spree::Order.find(order) current_store = @order.store subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{current_store.name} #{Spree.t('order_mailer.confirm_email.subject')} ##{@order.number}" mail(to: @order.email, from: from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address) end def store_owner_notification_email(order) @order = order.respond_to?(:id) ? order : Spree::Order.find(order) current_store = @order.store subject = Spree.t('order_mailer.store_owner_notification_email.subject', store_name: current_store.name) mail(to: current_store.new_order_notifications_email, from: from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address) end def cancel_email(order, resend = false) @order = order.respond_to?(:id) ? order : Spree::Order.find(order) current_store = @order.store subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') subject += "#{current_store.name} #{Spree.t('order_mailer.cancel_email.subject')} ##{@order.number}" mail(to: @order.email, from: from_address, subject: subject, store_url: current_store.url, reply_to: reply_to_address) end end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
spree_emails-4.5.0 | app/mailers/spree/order_mailer.rb |