This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
/
price_box.html
81 lines (77 loc) · 2.4 KB
/
price_box.html
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<div class="product-grid-item__price">
<div
if="isMsrpApplicable($row())"
class="msrp"
data-role="msrp-price-box"
afterRender="initListeners"
>
<div class="price">
<span
class="
price__value
price__value--old
old-price
map-old-price
"
>
<span class="price-container price-msrp">
<span
class="price-wrapper"
data-price-amount=""
data-price-type=""
html="getMsrpPriceUnsanitizedHtml($row())"
></span>
</span>
</span>
</div>
<if args="isShowPriceOnGesture($row())">
<button
type="button"
class="
button
button--icon
msrp__tooltip-trigger-button
tooltip__trigger-button
action
map-show-info
"
data-bind="
attr: {
'aria-label': $t('Click for price')
}
"
data-role="msrp-popup-trigger"
aria-haspopup="true"
>
<svg
class="icon"
role="presentation"
focusable="false"
>
<use data-bind="attr: { 'href': require.toUrl('images/icons-sprite.svg#info') }" href=''></use>
</svg>
</button>
<render args="popupTmpl"></render>
</if>
<ifnot args="isShowPriceOnGesture($row())">
<span
class="msrp-message"
html="getMsrpPriceMessageUnsanitizedHtml($row())"
></span>
</ifnot>
</div>
<ifnot args="isMsrpApplicable($row())">
<div
class="product-grid-item__price"
if="isAllowed()"
>
<span class="price__value">
<each args="data: getPrices($row()), as: '$price'">
<with args="$price">
<render args="getBody()"></render>
</with>
</each>
</span>
</div>
</ifnot>
</div>