From 58fd06c81c3328eaedd591a92a3b6b0643b25948 Mon Sep 17 00:00:00 2001 From: "Carlos A. Cabrera" Date: Mon, 11 Nov 2024 12:04:32 -0600 Subject: [PATCH] Experiment (placeholders) --- scripts/initializers/cart.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/initializers/cart.js b/scripts/initializers/cart.js index 109719dc35..67d5311d27 100644 --- a/scripts/initializers/cart.js +++ b/scripts/initializers/cart.js @@ -5,7 +5,10 @@ import { initializeDropin } from './index.js'; import { fetchPlaceholders } from '../aem.js'; await initializeDropin(async () => { - const labels = await fetchPlaceholders(); + // Experiment (Challenger 1) + const isVariantPlaceholder = document.body.classList.contains('variant-challenger-1'); + + const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : ''); const langDefinitions = { default: {