Skip to content

Commit

Permalink
USF-1510: Cart Summary has a Footer Slot
Browse files Browse the repository at this point in the history
- add Footer slot to the Cart Summary
  • Loading branch information
anthoula committed Nov 11, 2024
1 parent 8180cb5 commit b774f87
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions blocks/commerce-cart/commerce-cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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),

Expand Down

0 comments on commit b774f87

Please sign in to comment.