Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,79 @@
1
+<div class="product--list">
2
+    <?php foreach ($this->items as $item) : ?>
3
+        <div class="product">
4
+
5
+            <div class="row align-items-center">
6
+                <div class="col-3">
7
+                    <?php echo $this->getGallery('images', $item['item'])->generateMainImage(); ?>
8
+                </div>
9
+                <div class="col-9">
10
+                    <div class="product-data">
11
+                        <div class="quantity">
12
+                            <?php echo $item['quantity']; ?> x
13
+                        </div>
14
+
15
+                        <div class="name">
16
+                            <?php if ($this->linkProducts && $item['href']) : ?>
17
+                                <a href="<?php echo $item['href']; ?>">
18
+                                    <?php echo $item['name']; ?></a>
19
+                            <?php else : ?>
20
+                                <?php echo $item['name']; ?>
21
+                            <?php endif; ?>
22
+                        </div>
23
+                        <div class="info">
24
+                            <?php if (!empty($item['attributes'])) : ?>
25
+                                <ul>
26
+                                    <?php foreach ($item['attributes'] as $name => $value) : ?>
27
+                                        <li>
28
+                                            <strong><?= $this->attributeLabel($name) ?>:</strong>
29
+                                            <?= $this->attributeValue($name, $value, ['html' => true, 'item' => $item['item']]) ?>
30
+                                        </li>
31
+                                    <?php endforeach; ?>
32
+                                </ul>
33
+                            <?php endif; ?>
34
+                            <div class="price">
35
+                                <span class="total"><?php echo $item['total']; ?></span>
36
+                                <?php if ($this->isEditable) : ?>
37
+                                    <a class="ms-2" href="<?php echo $item['remove_href']; ?>" data-bs-toggle="tooltip"
38
+                                       title="<?php echo $item['remove_title']; ?>">
39
+                                        <i class="fas fa-trash-alt"></i>
40
+                                    </a>
41
+                                <?php endif; ?>
42
+                            </div>
43
+                        </div>
44
+                    </div>
45
+                </div>
46
+            </div>
47
+
48
+
49
+        </div>
50
+    <?php endforeach; ?>
51
+</div>
52
+
53
+<div class="subtotal">
54
+    <span class="label"><?php echo $GLOBALS['TL_LANG']['MSC']['subTotalLabel']; ?>:</span> <span
55
+            class="price"><?php echo $this->subtotal; ?></span>
56
+</div>
57
+
58
+
59
+<div class="row gx-1 mt-3">
60
+    <?php if ($this->buttons['checkout']) : ?>
61
+        <div class="col-6">
62
+            <div class="checkout">
63
+                <a class="button btn btn-outline-primary"
64
+                   href="<?php echo $this->buttons['checkout']['href']; ?>"><i
65
+                            class="ico ico-euro"></i> <?php echo $this->buttons['checkout']['label']; ?></a>
66
+            </div>
67
+        </div>
68
+    <?php endif; ?>
69
+
70
+    <?php if ($this->buttons['cart']) : ?>
71
+        <div class="col-6">
72
+            <div class="cart">
73
+                <a class="button btn btn-outline-primary"
74
+                   href="<?php echo $this->buttons['cart']['href']; ?>"><i
75
+                            class="ico ico-einkaufswagen"></i> <?php echo $this->buttons['cart']['label']; ?></a>
76
+            </div>
77
+        </div>
78
+    <?php endif; ?>
79
+</div>
0 80
\ No newline at end of file