silvershop / silvershop-core

SilverShop is an e-commerce shopping cart module for the SilverStripe CMS
http://silvershop.github.io
BSD 2-Clause "Simplified" License
113 stars 119 forks source link

Email templates should be taken from defined frontend theme(s) #793

Closed wernerkrauss closed 1 year ago

wernerkrauss commented 1 year ago

With cascading themes it's easy to set up different shops with one code base and several sub themes for each installation.

When putting email templates in /themes/, they're not recognised when emails are sent from the backend, e.g. Order_StatusEmail.ss

IMHO sending emails should switch to the defined frontend theme, send the email and switch back for each email.

When email templates are in app/templates, this should still overrule themes' templates.

wernerkrauss commented 1 year ago

fixed by #799