forked from forcedotcom/commerce-on-lightning-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproductPricingTiers.html
More file actions
31 lines (29 loc) · 1.29 KB
/
productPricingTiers.html
File metadata and controls
31 lines (29 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<template lwc:render-mode="light">
<div class="pricing-tiers">
<slot name="title"></slot>
<lightning-layout
tabindex="0"
class="slds-p-around_x-small adjustment-tiers-container">
<lightning-layout-item class="tier-row-title slds-p-right_medium">
<div class="tier-row-title-label">{quantityRowLabel}:</div>
<div class="tier-row-title-label">{discountRowLabel}:</div>
</lightning-layout-item>
<template
for:each={normalizedAdjustmentTiers}
for:item="tier">
<lightning-layout-item
key={tier.id}
padding="horizontal-medium"
class="tier">
<div class="tier-column-title">{tier.lowerBound} - {tier.upperBound}</div>
<lightning-formatted-number
value={tier.adjustmentValue}
class="tier-row-value"
maximum-fraction-digits="20"
currency-code={currencyCode}
format-style={tier.adjustmentValueFormat}></lightning-formatted-number>
</lightning-layout-item>
</template>
</lightning-layout>
</div>
</template>