From e60d329a89c949b66710ffd1dd623288f89de057 Mon Sep 17 00:00:00 2001 From: Katie Kroell Date: Wed, 22 Apr 2026 14:44:51 -0400 Subject: [PATCH 1/2] update logic for recal copy --- .../order-confirmation/order-confirmation.vue | 2 +- .../service-location/service-location.vue | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/layouts/order-confirmation/order-confirmation.vue b/src/layouts/order-confirmation/order-confirmation.vue index 3f34efd4..4cb7668c 100644 --- a/src/layouts/order-confirmation/order-confirmation.vue +++ b/src/layouts/order-confirmation/order-confirmation.vue @@ -294,7 +294,7 @@ export default { } else { glassList = getGlassList(glassPieces); workType = 'replacement'; - if (this.hasRecalibrationPart) { + if (this.hasRecalibrationPart && containsRecalParts(this.submittedOrder.lineItems)) { if (glassList === 'windshield') { workType = 'replacement and recalibration'; } diff --git a/src/layouts/schedule-page/service-location/service-location.vue b/src/layouts/schedule-page/service-location/service-location.vue index 5dc908be..1621d036 100644 --- a/src/layouts/schedule-page/service-location/service-location.vue +++ b/src/layouts/schedule-page/service-location/service-location.vue @@ -9,7 +9,7 @@
{{ scheduleRecalText }} + class="recal-text mb-4">{{ scheduleRecalText }} {{ appointmentQuestionText }}
@@ -133,6 +133,7 @@ import { getMobileZipCodeData } from '@/helpers/service-location-helper'; import { toTitleCase } from '@/helpers/text-helper.js'; +import { containsRecalParts } from '@/helpers/recal-helper'; // Import Component import alert from '@/ux-components/alert/alert.vue'; @@ -144,6 +145,7 @@ import serviceZipQuestion from '@/layouts/schedule-page/service-location/service import widgetFields from '@/constants/cms-widget-fields'; import recalModal from '@/iss-components/recal-modal/recal-modal.vue'; import { getPricedMobileFeePart } from '@/helpers/service-location-helper'; +import { processIfStatements } from '@/helpers/cms-content-helper'; const RECAL_MODAL_REF_NAME = 'RecalModal'; @@ -241,6 +243,9 @@ export default { return this.selectedAppointmentType === AppointmentTypeStrings.MOBILE || this.selectedAppointmentType === AppointmentTypeStrings.MOBILE_NOT_ITAC_AND_NOT_NOCOMP; }, + isRecalibrationOnOrder() { + return this.mainStore.hasRecalibrationPart && containsRecalParts(this.mainStore.order.lineItems); + }, isServiceableInshop() { if (this.isRecalibrationServiceableInshop !== null) { return (this.isGlassServiceableInshop && this.isRecalibrationServiceableInshop); @@ -284,9 +289,11 @@ export default { }, scheduleRecalText() { if (this.requiresInshopRecalibration) { - return this.getCmsContent('WhereWouldYouLikeServiceWidget', widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT_2); + const bodyText2 = this.getCmsContent('WhereWouldYouLikeServiceWidget', widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT_2); + return this.processIfStatements(bodyText2, 'custom', this.getCustomValueFromString); } - return this.getCmsContent('WhereWouldYouLikeServiceWidget', widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT); + const bodyText = this.getCmsContent('WhereWouldYouLikeServiceWidget', widgetFields.CONTENT_GROUP_WIDGET.BODY_TEXT); + return this.processIfStatements(bodyText, 'custom', this.getCustomValueFromString); } }, watch: { @@ -343,6 +350,7 @@ export default { } }, methods: { + processIfStatements, async initializeComponent(initialData) { this.initializingData = true; await this.setData(initialData); @@ -405,6 +413,11 @@ export default { getSelectedProvider() { return useMainStore().order.serviceLocation.provider; }, + getCustomValueFromString(str) { + if (str === 'isRecalibrationOnOrder') { + return this.isRecalibrationOnOrder; + } + }, async handleInShopZipUpdated(newZip) { this.zipCode = newZip; const zipCodeData = await getZipCodeData(this.zipCode); From bf59416cbdb086846d5054de21be9ef04ae95486 Mon Sep 17 00:00:00 2001 From: katiekroell <100247286+katiekroell@users.noreply.github.com> Date: Wed, 22 Apr 2026 15:36:59 -0400 Subject: [PATCH 2/2] Update src/layouts/schedule-page/service-location/service-location.vue Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../schedule-page/service-location/service-location.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layouts/schedule-page/service-location/service-location.vue b/src/layouts/schedule-page/service-location/service-location.vue index 1621d036..576d1a80 100644 --- a/src/layouts/schedule-page/service-location/service-location.vue +++ b/src/layouts/schedule-page/service-location/service-location.vue @@ -414,8 +414,11 @@ export default { return useMainStore().order.serviceLocation.provider; }, getCustomValueFromString(str) { - if (str === 'isRecalibrationOnOrder') { + switch (str) { + case 'isRecalibrationOnOrder': return this.isRecalibrationOnOrder; + default: + return null; } }, async handleInShopZipUpdated(newZip) {