-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update OrderStatusEmailNotifications.md (#820)
Add namespaces
- Loading branch information
1 parent
f189f2c
commit 7418c7a
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
To send emails to customers after changes, start by listing the statuses where an order will be logged: | ||
```yaml | ||
#in mysite/config.yml | ||
Order: | ||
SilverShop\Model\Order: | ||
log_status: | ||
- Processing | ||
- Sent | ||
|
@@ -13,7 +13,7 @@ Next, customise the email by overriding Silvershop's existing settings: | |
```yaml | ||
#in mysite/lang/en.yml | ||
en: | ||
ShopEmail: | ||
SilverShop\ShopEmail: | ||
PhoneNumber: 123 4567 | ||
Regards: Regards | ||
StatusChangeSubject: 'Business Name - {Title}' | ||
|
@@ -23,12 +23,12 @@ en: | |
StatusChangeProcessingNote: 'Your note for the email body when order status is Processing' | ||
StatusChangeSentNote: 'Your note for the email body when order status is Sent' | ||
``` | ||
To further customise the email, copy the template `Order_StatusEmail.ss` from `silvershop/templates/email` folder and paste to `{yourtheme}/templates/email` and make the required adjustments. | ||
To further customise the email, copy the template `Order_StatusEmail.ss` from `/templates/SilverShop/Model/` folder and paste to `{yourtheme}/templates/SilverShop/Model/` and make the required adjustments. | ||
|
||
To override the default recipient email address form notifications, add the bellow method to a SilverShop\Model\Order.php extension. | ||
```php | ||
public function overrideLatestEmail() | ||
{ | ||
return '[email protected]'; | ||
} | ||
``` | ||
``` |