fix: Quote wizard - correct total calculation and email sender
- Fix calculateQuote() to respect serviceInterests flags - Only include GPS/Support costs when user has enabled them - Update Step6Summary to conditionally render service sections - Add sender display name (Arizona Computer Guru) to emails - Add reply-to address (admin@azcomputerguru.com) - Fixes phantom $380 support charge appearing in totals Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,6 +29,9 @@ define('GRAPH_TENANT_ID', 'ce61461e-81a0-4c84-bb4a-7b354a9a356d');
|
||||
define('GRAPH_CLIENT_ID', '15b0fafb-ab51-4cc9-adc7-f6334c805c22');
|
||||
define('GRAPH_CLIENT_SECRET', 'rRN8Q~FPfSL8O24iZthi_LVJTjGOCZG.DnxGHaSk');
|
||||
define('GRAPH_SENDER_EMAIL', 'noreply@azcomputerguru.com');
|
||||
define('GRAPH_SENDER_NAME', 'Arizona Computer Guru');
|
||||
define('GRAPH_REPLY_TO_EMAIL', 'admin@azcomputerguru.com');
|
||||
define('GRAPH_REPLY_TO_NAME', 'Arizona Computer Guru');
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Admin / Auth
|
||||
|
||||
@@ -124,9 +124,23 @@ function send_email(string $to_email, string $subject, string $body_html, ?strin
|
||||
'contentType' => 'HTML',
|
||||
'content' => $body_html,
|
||||
],
|
||||
'from' => [
|
||||
'emailAddress' => [
|
||||
'name' => defined('GRAPH_SENDER_NAME') ? GRAPH_SENDER_NAME : 'Arizona Computer Guru',
|
||||
'address' => GRAPH_SENDER_EMAIL,
|
||||
],
|
||||
],
|
||||
'toRecipients' => [
|
||||
['emailAddress' => ['address' => $to_email]],
|
||||
],
|
||||
'replyTo' => [
|
||||
[
|
||||
'emailAddress' => [
|
||||
'name' => defined('GRAPH_REPLY_TO_NAME') ? GRAPH_REPLY_TO_NAME : 'Arizona Computer Guru',
|
||||
'address' => defined('GRAPH_REPLY_TO_EMAIL') ? GRAPH_REPLY_TO_EMAIL : GRAPH_SENDER_EMAIL,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'saveToSentItems' => 'true',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user