Initial changes for PIA experiments
This commit is contained in:
parent
26f20b8d5a
commit
fcc3c5ab95
3 changed files with 13 additions and 2 deletions
|
|
@ -6,6 +6,8 @@ const experimentSettings = {
|
|||
GOOGLE_CUSTOM_DIMENSION_INDEX: "Google Custom Dimension Index",
|
||||
SUPPRESS_VIN_CAPTURE: "SuppressVinCapture",
|
||||
DISPLAY_AVAILABILITY_INDICATORS: "DisplayAvailabilityIndicators",
|
||||
PIA_EXPERIENCE: "PIA Experience",
|
||||
SUBMIT_ORDER_ENABLE_PIA: "SubmitOrder_Enable_PIA",
|
||||
};
|
||||
|
||||
const experimentTriggers = {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<funnelHeader cmsWidgetName="FunnelHeaderWidget" />
|
||||
<funnelSubHeader class="mb-5" cmsWidgetName="FunnelSubHeaderWidget" leftAlignHeader />
|
||||
<hr class="mt-0" />
|
||||
<paymentMethodQuestion v-model="paymentMethodInternalModel" />
|
||||
<paymentMethodQuestion v-if="!isPiaDisabled" v-model="paymentMethodInternalModel" />
|
||||
<div class="fade-on-route-transition sub-container make-tall">
|
||||
<navbar
|
||||
ref="funnelFooter"
|
||||
|
|
@ -29,6 +29,7 @@ import paymentMethodQuestion from "@/layouts/payment-method/payment-method-quest
|
|||
import { fetchCmsContentForPage } from "@/helpers/cms-content-helper";
|
||||
import { settleAllPromises } from "@/helpers/layout-helper";
|
||||
import { paymentMethods } from "@/constants/payment-method-constants";
|
||||
import { experimentSettings } from "@/constants/experiments";
|
||||
|
||||
// Validation
|
||||
import { Form } from "vee-validate";
|
||||
|
|
@ -83,7 +84,12 @@ export default {
|
|||
}
|
||||
},
|
||||
isPiaDisabled() {
|
||||
return false;
|
||||
const piaExperience =
|
||||
this.getSettingValue(experimentSettings.PIA_EXPERIENCE) === "PIA Optional";
|
||||
const enablePIA =
|
||||
this.getSettingValue(experimentSettings.SUBMIT_ORDER_ENABLE_PIA) === "true";
|
||||
|
||||
return !(piaExperience && enablePIA);
|
||||
},
|
||||
paymentMethod() {
|
||||
if (this.isPiaDisabled) {
|
||||
|
|
|
|||
|
|
@ -581,7 +581,10 @@ export const getters = {
|
|||
funnelServiceCity: state.order.serviceLocation.city,
|
||||
funnelServiceState: state.order.serviceLocation.state,
|
||||
funnelServiceZipCode: state.order.serviceLocation.zipCode,
|
||||
funnelServiceZipCodeCtu: state.order.serviceLocation.zipCodeCtu,
|
||||
funnelProviderNumber: state.order.serviceLocation.provider.ProviderNumber,
|
||||
funnelParentAccountNumber: state.order.payment.parentAccountNumber,
|
||||
funnelReferralType: state.order.payment.isInsurance ? "value if true" : "value if false",
|
||||
funnelIsCoverageVerified: state.order.payment.insuranceCoverage.isVerified,
|
||||
funnelHasRecalibrationPart: getHasRecalibrationPart(state),
|
||||
funnelSelectedMultiGlass: state.order.damage.glassToReplace?.length > 1,
|
||||
|
|
|
|||
Loading…
Reference in a new issue