You're viewing the documentation of an older Simple Commerce version. Consider upgrading to the latest for new features and bug fixes.

By default, Simple Commmerce will automatically send emails to your customers when certain events happen. For example, Simple Commerce will send your customers an order confirmation email when a purchase has been completed.

Configuration

1/*
2 |--------------------------------------------------------------------------
3 | Notifications
4 |--------------------------------------------------------------------------
5 |
6 | Simple Commerce can automatically send notifications after events occur in your store.
7 | eg. a cart being completed.
8 |
9 | Here's where you can toggle if certain notifications are enabled/disabled.
10 |
11*/
12 
13'notifications' => [
14 'customer' => [
15 'order_confirmation' => true,
16 ],
17 
18 'back_office' => [
19 'to' => 'staff@example.com',
20 
21 'order_paid' => true,
22 ],
23],

In your Simple Commerce config (config/simple-commerce.php), you can toggle notifications on or off, depending on your preference. For example, you may not want Simple Commerce to send an order confirmation email because Stripe might send one to the customer instead.

Back-office notifications

You can also send notifications to your store's back-office staff. To configure the email where those notifications go, change the to value. Currently it only supports sending to a single e-mail address.

Customising email views

Simple Commerce makes use of Laravel's Markdown Mailables feature so you can use markdown in Blade views to format your emails.

You're free to publish the email views if you wish to customise the mailables.

1php artisan vendor:publish --tag="simple-commerce-views"

After published, the views will sit inside your resources/views/vendor/simple-commerce directory.

Last updated 3 months ago Improve this page on GitHub!