1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,142 @@ |
1 |
+<?php if (!empty($this->actions)) : ?> |
|
2 |
+ <form action="<?php echo $this->action; ?>" id="<?php echo $this->formId; ?>" method="post"> |
|
3 |
+ <div class="formbody"> |
|
4 |
+ <input type="hidden" name="FORM_SUBMIT" value="<?php echo $this->formSubmit; ?>"> |
|
5 |
+ <input type="hidden" name="REQUEST_TOKEN" value="{{request_token}}"> |
|
6 |
+ <?php endif; ?> |
|
7 |
+ |
|
8 |
+ <?php if ($this->collection->hasErrors()) : ?> |
|
9 |
+ <p class="error"><?php echo implode('</p><p class="error">', $this->collection->getErrors()); ?></p> |
|
10 |
+ <?php endif; ?> |
|
11 |
+ |
|
12 |
+ <div class="collection"> |
|
13 |
+ |
|
14 |
+ <?php if (!$this->isEditable && !$this->collection->isLocked()) : ?> |
|
15 |
+ <div class="boxed"> |
|
16 |
+ <a href="/shop/warenkorb" class="edit"> |
|
17 |
+ Warenkorb bearbeiten <i class="fas fa-pencil"></i> |
|
18 |
+ </a> |
|
19 |
+ </div> |
|
20 |
+ <?php endif; ?> |
|
21 |
+ |
|
22 |
+ <?php foreach ($this->items as $item) : $i = 0; ?> |
|
23 |
+ <div class="<?php echo $item['rowClass']; ?>"><?php if (!$this->isNotification) : ?> |
|
24 |
+ <div class="col_<?php echo $i++; ?> col_first image"><?php echo $this->getGallery('images', $item['item'])->generateMainImage(); ?></div><?php endif; ?> |
|
25 |
+ <div class="col_<?php echo $i++; ?><?php if ($this->isNotification) echo ' col_first'; ?> name"> |
|
26 |
+ <?php if ($this->linkProducts && $item['href']) : ?><a href="<?php echo $item['href']; ?>"><?php echo $item['name']; ?></a><?php else : ?><?php echo $item['name']; ?><?php endif; ?> |
|
27 |
+ <?php if (!empty($item['attributes']) || $item['sku']) : ?> |
|
28 |
+ <ul> |
|
29 |
+ <?php if ($item['sku']) : ?> |
|
30 |
+ <li class="attribute" itemprop="sku"> |
|
31 |
+ <span class="label">Artikelnr.:</span> <?php echo $item['sku']; ?> |
|
32 |
+ </li><?php endif; ?> |
|
33 |
+ <?php foreach ($item['attributes'] as $name => $value) : ?> |
|
34 |
+ <li> |
|
35 |
+ <strong> |
|
36 |
+ <?= $this->attributeLabel($name) ?>: |
|
37 |
+ </strong> |
|
38 |
+ <?= $this->attributeValue($name, $value, ['html' => true, 'item' => $item['item']]) ?> |
|
39 |
+ </li> |
|
40 |
+ <?php endforeach; ?> |
|
41 |
+ </ul> |
|
42 |
+ <?php endif; ?> |
|
43 |
+ </div> |
|
44 |
+ <div class="col_<?php echo $i++; ?> quantity"> |
|
45 |
+ <?php if ($this->isEditable) : ?> |
|
46 |
+ <input name="quantity[<?php echo $item['id']; ?>]" type="text" class="text form-control" value="<?php echo $item['quantity']; ?>" maxlength="10"> |
|
47 |
+ <?php else : ?> |
|
48 |
+ <?php echo $item['quantity']; ?> x |
|
49 |
+ <?php endif; ?> |
|
50 |
+ </div> |
|
51 |
+ <div class="col_<?php echo $i++; ?> price"><?php echo $item['price']; ?></div> |
|
52 |
+ <div class="col_<?php echo $i++; |
|
53 |
+ if (!$this->isEditable && $this->total_tax_ids < 2) echo ' col_last'; ?> price total"><?php echo $item['total']; ?></div><?php if ($this->total_tax_ids > 1) : ?> |
|
54 |
+ <div class="col_<?php echo $i++; |
|
55 |
+ if (!$this->isEditable) echo ' col_last'; ?> tax"><?php echo $item['tax_id']; ?></div><?php endif; |
|
56 |
+ if ($this->isEditable) : ?> |
|
57 |
+ <div class="col_<?php echo $i++; ?> col_last actions"> |
|
58 |
+ <?php /* if ($item['edit_href']): ?><a href="<?php echo $item['edit_href']; ?>" class="edit" title="<?php echo $item['edit_title']; ?>"><?php echo $item['edit_link']; ?></a><?php endif; */ ?> |
|
59 |
+ <a href="<?php echo $item['remove_href']; ?>" class="remove" data-bs-toggle="tooltip" title="<?php echo $item['remove_title']; ?>"><i class="far fa-trash-alt"></i></a> |
|
60 |
+ </div><?php endif; ?> |
|
61 |
+ </div><?php if ($item['item']->hasErrors()) : ?> |
|
62 |
+ <div class="<?php echo $item['rowClass']; ?>"> |
|
63 |
+ <div colspan="<?php echo $i; ?>"> |
|
64 |
+ <p class="error"><?php echo implode('</p><p class="error">', $item['item']->getErrors()); ?></p> |
|
65 |
+ </div> |
|
66 |
+ </div> |
|
67 |
+ <?php endif; ?> |
|
68 |
+ <?php endforeach; ?> |
|
69 |
+ <div class="summary foot_0 foot_first subtotal"> |
|
70 |
+ <?php $i = 0; |
|
71 |
+ if (!$this->isNotification) : ?> |
|
72 |
+ <div class="col_<?php echo $i++; ?> col_first"> </div> |
|
73 |
+ <?php endif; ?> |
|
74 |
+ <div class="col_<?php echo $i++; |
|
75 |
+ $i++; ?><?php if ($this->isNotification) echo ' col_first'; ?> name" colspan="2"><?php echo $GLOBALS['TL_LANG']['MSC']['subTotalLabel']; ?></div> |
|
76 |
+ <div class="col_<?php echo $i++; ?> price"> </div> |
|
77 |
+ <div class="col_<?php echo $i++; |
|
78 |
+ if (!$this->isEditable && $this->total_tax_ids < 2) echo ' col_last'; ?> price total"><?php echo $this->subtotal; ?></div><?php if ($this->total_tax_ids > 1) : ?> |
|
79 |
+ <div class="col_<?php echo $i++; |
|
80 |
+ if (!$this->isEditable) echo ' col_last'; ?> tax"> </div><?php endif; |
|
81 |
+ if ($this->isEditable) : ?> |
|
82 |
+ <div class="col_<?php echo $i++; ?> col_last remove"> </div><?php endif; ?> |
|
83 |
+ </div> |
|
84 |
+ <?php foreach ($this->surcharges as $surcharge) : $i = 0; ?> |
|
85 |
+ <div class="summary <?php echo $surcharge['rowClass']; ?>"> |
|
86 |
+ <?php if (!$this->isNotification) : ?> |
|
87 |
+ <div class="col_<?php echo $i++; ?> col_first"> </div><?php endif; ?> |
|
88 |
+ <div class="col_<?php echo $i++; |
|
89 |
+ $i++; ?><?php if ($this->isNotification) echo ' col_first'; ?> name" colspan="2"><?php echo $surcharge['label']; ?> |
|
90 |
+ </div> |
|
91 |
+ <div class="col_<?php echo $i++; ?> price"><?php echo $surcharge['price']; ?></div> |
|
92 |
+ <div class="col_<?php echo $i++; |
|
93 |
+ if (!$this->isEditable && $this->total_tax_ids < 2) echo ' col_last'; ?> price total"><?php echo $surcharge['total_price']; ?></div><?php if ($this->total_tax_ids > 1) : ?> |
|
94 |
+ <div class="col_<?php echo $i++; |
|
95 |
+ if (!$this->isEditable) echo ' col_last'; ?> tax"><?php echo $surcharge['tax_id']; ?></div><?php endif; |
|
96 |
+ if ($this->isEditable) : ?> |
|
97 |
+ <div class="col_<?php echo $i++; ?> col_last remove"> </div><?php endif; ?> |
|
98 |
+ </div> |
|
99 |
+ <?php endforeach; ?> |
|
100 |
+ <div class="summary foot_<?php echo count($this->surcharges) + 1; ?> foot_last total"> |
|
101 |
+ <?php $i = 0; |
|
102 |
+ if (!$this->isNotification) : ?> |
|
103 |
+ <div class="col_<?php echo $i++; ?> col_first"> </div><?php endif; ?> |
|
104 |
+ <div class="col_<?php echo $i++; |
|
105 |
+ $i++ ?><?php if ($this->isNotification) echo ' col_first'; ?> name" colspan="2"><?php echo $GLOBALS['TL_LANG']['MSC']['grandTotalLabel']; ?></div> |
|
106 |
+ <div class="col_<?php echo $i++; ?> price"> </div> |
|
107 |
+ <div class="col_<?php echo $i++; |
|
108 |
+ if (!$this->isEditable && $this->total_tax_ids < 2) echo ' col_last'; ?> price total"><?php echo $this->total; ?></div><?php if ($this->total_tax_ids > 1) : ?> |
|
109 |
+ <div class="col_<?php echo $i++; |
|
110 |
+ if (!$this->isEditable) echo ' col_last'; ?> tax"> </div><?php endif; |
|
111 |
+ if ($this->isEditable) : ?> |
|
112 |
+ <div class="col_<?php echo $i++; ?> col_last remove"> </div><?php endif; ?> |
|
113 |
+ </div> |
|
114 |
+ </div> |
|
115 |
+ |
|
116 |
+ <?php if (!empty($this->buttons)) : ?> |
|
117 |
+ </div> |
|
118 |
+ <div class="submit_container"> |
|
119 |
+ <?php //foreach($this->actions as $action) echo $action->generate($this->collection).' '; |
|
120 |
+ ?> |
|
121 |
+ <?php foreach ($this->buttons as $action) : ?> |
|
122 |
+ <button type="<?php echo $action['type']; ?>" class="<?php echo $action['type']; ?> <?php echo $action['name']; ?>" name="<?php echo $action['name']; ?>" id="ctrl_<?php echo $action['name']; ?>_<?php echo $this->id; ?>" value="1"><?php echo $action['label']; ?></button> |
|
123 |
+ <?php endforeach; ?> |
|
124 |
+ </div> |
|
125 |
+ </form> |
|
126 |
+<?php endif; ?> |
|
127 |
+ |
|
128 |
+<?php if (!$this->isEditable && count($this->downloads)) : ?> |
|
129 |
+ <div class="downloads"> |
|
130 |
+ <h2><?php echo $GLOBALS['TL_LANG']['MSC']['downloadsLabel']; ?></h2> |
|
131 |
+ <ul> |
|
132 |
+ <?php foreach ($this->downloads as $download) : ?> |
|
133 |
+ <li class="<?php echo $download['downloadable'] ? 'available' : 'unavailable'; ?>"><?php if ($download['downloadable'] && $download['href']) : ?> |
|
134 |
+ <a href="<?php echo $download['href']; ?>"><?php endif; |
|
135 |
+ echo $download['title']; |
|
136 |
+ if ($download['downloadable'] && $download['href']) : ?></a><?php endif; |
|
137 |
+ echo $download['remaining']; ?> |
|
138 |
+ </li> |
|
139 |
+ <?php endforeach; ?> |
|
140 |
+ </ul> |
|
141 |
+ </div> |
|
142 |
+<?php endif; ?> |
|
0 | 143 |
\ No newline at end of file |