| @@ -5,8 +5,10 @@ | ||
| 5 | 5 | * @package Timetics |
| 6 | 6 | */ |
| 7 | 7 | namespace Timetics\Core\Emails; |
| 8 | 8 | |
| 9 | +defined( 'ABSPATH' ) || exit; | |
| 10 | + | |
| 9 | 11 | use Timetics\Core\Appointments\Appointment; |
| 10 | 12 | use Timetics\Core\Bookings\Booking; |
| 11 | 13 | use Timetics\Core\Customers\Customer; |
| 12 | 14 | use Timetics\Core\Staffs\Staff; |
| @@ -60,9 +62,9 @@ | ||
| 60 | 62 | * |
| 61 | 63 | * @return string |
| 62 | 64 | */ |
| 63 | 65 | public function get_recipient() { |
| 64 | - return $this->staff->get_email(); | |
| 66 | + return $this->customer->get_email(); | |
| 65 | 67 | } |
| 66 | 68 | |
| 67 | 69 | /** |
| 68 | 70 | * Get new event email |
| @@ -87,7 +89,7 @@ | ||
| 87 | 89 | * |
| 88 | 90 | * @return string |
| 89 | 91 | */ |
| 90 | 92 | public function get_template() { |
| 91 | - return TIMETICS_PLUGIN_DIR . '/templates/emails/update-event.php'; | |
| 93 | + return TIMETICS_PLUGIN_DIR . '/templates/emails/customer-update-event.php'; | |
| 92 | 94 | } |
| 93 | 95 | } |