From b774f874cad2840d3cbf788b9cefef79d4975dad Mon Sep 17 00:00:00 2001 From: Anthoula Wojczak Date: Mon, 11 Nov 2024 13:05:34 -0600 Subject: [PATCH] USF-1510: Cart Summary has a Footer Slot - add Footer slot to the Cart Summary --- blocks/commerce-cart/commerce-cart.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/blocks/commerce-cart/commerce-cart.js b/blocks/commerce-cart/commerce-cart.js index 9075db654c..dc56a42b98 100644 --- a/blocks/commerce-cart/commerce-cart.js +++ b/blocks/commerce-cart/commerce-cart.js @@ -3,14 +3,13 @@ import { render as provider } from '@dropins/storefront-cart/render.js'; import * as Cart from '@dropins/storefront-cart/api.js'; // Dropin Containers -import CartSummaryList from "@dropins/storefront-cart/containers/CartSummaryList.js"; -import OrderSummary from "@dropins/storefront-cart/containers/OrderSummary.js"; -import EstimateShipping from "@dropins/storefront-cart/containers/EstimateShipping.js"; -import EmptyCart from "@dropins/storefront-cart/containers/EmptyCart.js"; -import Coupons from "@dropins/storefront-cart/containers/Coupons.js"; +import CartSummaryList from '@dropins/storefront-cart/containers/CartSummaryList.js'; +import OrderSummary from '@dropins/storefront-cart/containers/OrderSummary.js'; +import EstimateShipping from '@dropins/storefront-cart/containers/EstimateShipping.js'; +import EmptyCart from '@dropins/storefront-cart/containers/EmptyCart.js'; // Initializers -import "../../scripts/initializers/cart.js"; +import '../../scripts/initializers/cart.js'; import { readBlockConfig } from '../../scripts/aem.js'; @@ -155,14 +154,6 @@ export default async function decorate(block) { ctx.replaceWith(wrapper); } }, - Coupons: (ctx) => { - // Prepend Coupons - const coupons = document.createElement("div"); - - provider.render(Coupons)(coupons); - - ctx.appendChild(coupons); - }, }, })($summary),