Skip to content

Commit

Permalink
Re-add experimental discounts meta slot to checkout (woocommerce#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
opr authored and jonny-bull committed Dec 14, 2021
1 parent 7001544 commit aa95b8a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TotalsTaxes,
ExperimentalOrderMeta,
TotalsWrapper,
ExperimentalDiscountsMeta,
} from '@woocommerce/blocks-checkout';

import { getCurrencyFromPriceResponse } from '@woocommerce/price-format';
Expand Down Expand Up @@ -90,6 +91,7 @@ const Block = ( {
/>
</TotalsWrapper>
) }
<ExperimentalDiscountsMeta.Slot { ...slotFillProps } />
{ ! getSetting( 'displayCartPricesIncludingTax', false ) &&
parseInt( cartTotals.total_tax, 10 ) > 0 && (
<TotalsWrapper>
Expand Down

0 comments on commit aa95b8a

Please sign in to comment.