Skip to content
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

Update OrderStatusEmailNotifications.md #820

Merged
merged 1 commit into from
Apr 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/en/02_Customisation/OrderStatusEmailNotifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}'
Expand All @@ -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]';
}
```
```
Loading