-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve reimbursement emails #1139
Conversation
it was not improving ReturnItem public api but just adding another layer that seemed too tied to the specific reimbursement email usage.
What about to also adding a preference for Reimbursement Mailer class, similar to Spree::CartonMailer ? |
subject = (resend ? "[#{Spree.t(:resend).upcase}] " : '') | ||
subject += "#{store.name} #{Spree.t('reimbursement_mailer.reimbursement_email.subject')} ##{@reimbursement.order.number}" | ||
mail(to: @reimbursement.order.email, from: from_address(store), subject: subject) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you PR this in a separate PR that just fixes the indentation? I'm good with the change, just don't want to mix it up with some of the other stuff in this PR.
I would like this to be split up into one PR for fixing indentation, one for adding the HTML view and preview, and one for changing the Text version of the E-Mail. |
This PR adds some improvements to the reimbursement email:
spree_sample:load
task and attached to one order previously created.I'm open to squash commits or discuss any change or improvement.