-
Notifications
You must be signed in to change notification settings - Fork 615
/
Copy pathcontent.html
151 lines (141 loc) · 8.21 KB
/
content.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<table class="cart" data-cart-quantity="{{cart.quantity}}">
<thead class="cart-header">
<tr>
<th class="cart-header-item" colspan="2">{{lang 'cart.checkout.item'}}</th>
<th class="cart-header-item">{{lang 'cart.checkout.price'}}</th>
<th class="cart-header-item cart-header-quantity">{{lang 'cart.checkout.quantity'}}</th>
<th class="cart-header-item">{{lang 'cart.checkout.total'}}</th>
</tr>
</thead>
<tbody class="cart-list">
{{#each cart.items}}
<tr class="cart-item" data-item-row>
<td class="cart-item-block cart-item-figure">
{{#if type '==' 'GiftCertificate'}}
<img class="cart-item-fixed-image lazyload" data-sizes="auto" src="{{cdn 'img/loading.svg'}}" data-src="{{cdn ../../theme_settings.default_image_gift_certificate}}" alt="GiftCertificate" title="GiftCertificate">
{{else}}
<img class="cart-item-image lazyload" data-sizes="auto" src="{{cdn 'img/loading.svg'}}" data-src="{{getImage image 'productthumb_size' (cdn ../../theme_settings.default_image_product)}}" alt="{{image.alt}}" title="{{image.alt}}">
{{/if}}
</td>
<td class="cart-item-block cart-item-title">
{{#if brand.name}}
<p class="cart-item-brand">{{brand.name}}</p>
{{/if}}
<h4 class="cart-item-name"><a href="{{url}}">{{name}}</a></h4>
{{#if release_date}}
<p>({{release_date}})</p>
{{/if}}
{{#if configurable_fields}}
<dl class="definitionList">
{{#each configurable_fields}}
<dt class="definitionList-key">{{name}}:</dt>
<dd class="definitionList-value">
{{#if is_file}}
<a href="/viewfile.php?prodfield={{../id}}&cartitem={{../../id}}">{{{value}}}</a>
{{else}}
{{{value}}}
{{/if}}
</dd>
{{/each}}
</dl>
{{/if}}
{{#if options}}
<dl class="definitionList">
{{#each options}}
<dt class="definitionList-key">{{name}}:</dt>
<dd class="definitionList-value">
{{#if is_file}}
<a href="/viewfile.php?attributeId={{../id}}&cartitem={{../../id}}">{{{value}}}</a>
{{else}}
{{{value}}}
{{/if}}
</dd>
{{/each}}
</dl>
{{/if}}
{{#or options configurable_fields}}
<a href="#" data-item-edit="{{id}}">{{lang 'cart.checkout.change'}}</a>
{{/or}}
{{#if type '==' 'GiftCertificate'}}
<a href="{{edit_url}}">{{lang 'cart.checkout.change'}}</a>
{{/if}}
{{> components/cart/item-giftwrap this}}
{{#if event_date}}
<dl class="cart-item-options">
<dt class="cart-item-option-title">
{{event_date.name}}
</dt>
<dd class="cart-item-option-description">
{{event_date.date}}
</dd>
</dl>
{{/if}}
</td>
<td class="cart-item-block cart-item-info">
<span class="cart-item-label">{{lang 'cart.checkout.price'}}</span>
{{#or ../customer (if ../theme_settings.restrict_to_login '!==' true)}}
<span class="cart-item-value {{#if price_discounted}}price--discounted{{/if}}">{{price.formatted}}</span>
{{#if price_discounted}}
<span class="cart-item-value">{{price_discounted.formatted}}</span>
{{/if}}
{{else}}
{{> components/common/login-for-pricing}}
{{/or}}
</td>
<td class="cart-item-block cart-item-info cart-item-quantity">
<label class="form-label cart-item-label" for="qty-{{id}}">{{lang 'products.quantity'}}</label>
<div class="form-increment">
{{# if can_modify}}
<button class="button button--icon" data-cart-update data-cart-itemid="{{id}}" data-action="dec">
<span class="is-srOnly">{{lang 'products.quantity_decrease'}}</span>
<i class="icon" aria-hidden="true"><svg><use xlink:href="#icon-keyboard-arrow-down" /></svg></i>
</button>
{{/if}}
<input class="form-input form-input--incrementTotal cart-item-qty-input"
id="qty-{{id}}"
name="qty-{{id}}"
type="tel"
value="{{quantity}}"
data-quantity-min="{{min_purchase_quantity}}"
data-quantity-max="{{max_purchase_quantity}}"
data-quantity-min-error="{{lang 'products.quantity_min' quantity=min_purchase_quantity}}"
data-quantity-max-error="{{lang 'products.quantity_max' quantity=max_purchase_quantity}}"
min="1"
pattern="[0-9]*"
data-cart-itemid="{{id}}"
data-action="manualQtyChange"
aria-live="polite"{{#unless can_modify}} disabled{{/unless}}>
{{# if can_modify}}
<button class="button button--icon" data-cart-update data-cart-itemid="{{id}}" data-action="inc">
<span class="is-srOnly">{{lang 'products.quantity_increase'}}</span>
<i class="icon" aria-hidden="true"><svg><use xlink:href="#icon-keyboard-arrow-up" /></svg></i>
</button>
{{/if}}
</div>
</td>
<td class="cart-item-block cart-item-info">
<span class="cart-item-label">{{lang 'cart.checkout.total'}}</span>
{{#or ../customer (if ../theme_settings.restrict_to_login '!==' true)}}
<strong class="cart-item-value {{#if total_discounted}}price--discounted{{/if}}">{{total.formatted}}</strong>
{{#if total_discounted}}
<strong class="cart-item-value">{{total_discounted.formatted}}</strong>
{{/if}}
{{else}}
{{> components/common/login-for-pricing}}
{{/or}}
{{# if can_modify}}
<a class="cart-remove icon" data-cart-itemid="{{id}}" href="#" data-confirm-delete="{{lang 'cart.confirm_delete'}}">
<svg><use xlink:href="#icon-close"></use></svg>
</a>
{{else}}
{{#if type '==' 'GiftCertificate'}}
<a class="cart-remove icon" data-cart-itemid="{{id}}" href="#" data-confirm-delete="{{lang 'cart.confirm_delete'}}">
<svg><use xlink:href="#icon-close"></use></svg>
</a>
{{/if}}
{{/if}}
</td>
</tr>
{{/each}}
</tbody>
</table>