Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Re-add experimental discounts meta slot to checkout (#5149)
Browse files Browse the repository at this point in the history
  • Loading branch information
opr authored Nov 16, 2021
1 parent 6cb995c commit 127f6ce
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 127f6ce

Please sign in to comment.