Skip to content

Instantly share code, notes, and snippets.

@jhawthorn
Last active December 21, 2015 23:19
Show Gist options
  • Save jhawthorn/6381854 to your computer and use it in GitHub Desktop.
Save jhawthorn/6381854 to your computer and use it in GitHub Desktop.
Overriding spree mailers to deliver HTML

To override the existing text spree mailers, copy them into your application:

cp -r /path/to/spree/core/app/views/spree/{order,shipment}_mailer app/views/spree/

To add HTML versions create the following

  • app/views/spree/order_mailer/confirm_email.html.erb
  • app/views/spree/order_mailer/cancel_email.html.erb
  • app/views/spree/shipment_mailer/shipped_email.html.erb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment