Skip to content

Order_StatusEmail.ss can't be overridden by user's custom template and $FromEmail results in template php error #843

@elkebe

Description

@elkebe

Try changing an order status to 'sent' or 'processed' and you get a template php error due to the $FromEmail in silvershop/core/templates/SilverShop/Model/Order_StatusEmail.ss

This results in no email being sent for order status change.

Also, it seems to be impossible to override this template with a custom user template in eg. /themes/my-theme/templates/SilverShop/Model/Order_StatusEmail.ss
Note that other email templates Order_AdminNotificationEmail.ss, Order_ConfirmationEmail.ss and Order_ReceiptEmail.ss can be overridden without issue.

Suggested fix: replace $FromEmail with $CurrentMember.FirstName

Note: this also appears to be in the SS5 branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions