Edit store email views
2 answers
It seems that you can simply override the Shoppe mailer method:
module Shoppe
class OrderMailer < ActionMailer::Base
def received(order)
@order = order
attachment(content_type: 'image/jpeg', body: File.read('image.jpg'))
mail :from => Shoppe.settings.outbound_email_address, :to => order.email_address, :subject => I18n.t('shoppe.order_mailer.received.subject', :default => "Order Confirmation")
end
end
end
Puts this somewhere in your app/initializers
. Don't forget to set your content correctly.
+2
source to share
This is the best and quickest solution for anyone who just wants to change the actual text like me.
You can just go directly to the email file and edit it. all I did was visit the Exact File Here and recreate that file and its path in my own application and change the words to my liking.
https://github.com/tryshoppe/shoppe/blob/master/app/views/shoppe/order_mailer/accepted.text.erb
+1
source to share