From e8a2dd4fbc7ab4f0f576574773db4a18f74b8b49 Mon Sep 17 00:00:00 2001 From: "Carlos A. Cabrera" Date: Mon, 11 Nov 2024 12:13:33 -0600 Subject: [PATCH] Update cart.js --- scripts/initializers/cart.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/initializers/cart.js b/scripts/initializers/cart.js index 67d5311d27..359f14b442 100644 --- a/scripts/initializers/cart.js +++ b/scripts/initializers/cart.js @@ -6,9 +6,9 @@ import { fetchPlaceholders } from '../aem.js'; await initializeDropin(async () => { // Experiment (Challenger 1) - const isVariantPlaceholder = document.body.classList.contains('variant-challenger-1'); + const isVariantPlaceholder = document.body.classList.contains('experiment-cart001') && document.body.classList.contains('variant-challenger-1'); - const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : ''); + const labels = await fetchPlaceholders(isVariantPlaceholder ? '/drafts/marketer' : undefined); const langDefinitions = { default: {