| 2 |
lars |
1 |
{if $ini.modules.quickview==1}
|
|
|
2 |
<style>
|
|
|
3 |
.quickview_dlg {
|
|
|
4 |
clear:both;
|
|
|
5 |
float:none;
|
|
|
6 |
display:none;
|
|
|
7 |
}
|
|
|
8 |
</style>
|
|
|
9 |
<script>
|
|
|
10 |
$(document).ready(function(){
|
|
|
11 |
|
|
|
12 |
$('.quickview_opener').click(function(event){
|
|
|
13 |
var id = $(this).attr("id");
|
|
|
14 |
id = id.split("_");
|
|
|
15 |
id = id[1];
|
|
|
16 |
|
|
|
17 |
$('#quickview_' + id).dialog({
|
|
|
18 |
width:'80%',
|
|
|
19 |
create: function( event, ui ) {
|
|
|
20 |
// Set maxWidth
|
|
|
21 |
$(this).closest(".ui-dialog").css("maxWidth", "900px");
|
|
|
22 |
$(this).closest(".ui-dialog").css("position", "fixed");
|
|
|
23 |
}
|
|
|
24 |
});
|
|
|
25 |
});
|
|
|
26 |
|
|
|
27 |
});
|
|
|
28 |
</script>
|
|
|
29 |
{/if}
|
|
|
30 |
{* /quickview dialog *}
|
|
|
31 |
<style>
|
|
|
32 |
.product_accordion_top div {
|
|
|
33 |
padding: 0 !important;
|
|
|
34 |
}
|
|
|
35 |
|
|
|
36 |
.product_accordion {
|
|
|
37 |
display: flex;
|
|
|
38 |
align-items: center;
|
|
|
39 |
justify-content: center;
|
|
|
40 |
flex-direction: row;
|
|
|
41 |
border-bottom: 1px solid rgb(170,170,170);
|
|
|
42 |
margin-bottom: 1%;
|
|
|
43 |
min-height: 52px;
|
|
|
44 |
}
|
|
|
45 |
|
|
|
46 |
.product_accordion img {
|
|
|
47 |
width: 55px;
|
|
|
48 |
}
|
|
|
49 |
.product_accordion p {
|
|
|
50 |
font-size: 11px;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
div.product_accordion:last-child {
|
|
|
54 |
border: 0;
|
|
|
55 |
margin-bottom: 0;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
.product_accordion .products_checkbox,
|
|
|
59 |
.product_accordion .product_accordion_picture,
|
|
|
60 |
.product_accordion .quickview_opener {
|
|
|
61 |
flex-grow: 1;
|
|
|
62 |
display:flex;
|
|
|
63 |
justify-content: center;
|
|
|
64 |
align-items: center;
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
.product_accordion .product_accordion_info {
|
|
|
68 |
flex-grow: 2;
|
|
|
69 |
display:flex;
|
|
|
70 |
flex-direction: column;
|
|
|
71 |
justify-content: center;
|
|
|
72 |
align-items: center;
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
.product_accordion .product_accordion_info p {
|
|
|
76 |
line-height: 18px;
|
|
|
77 |
width: 100%;
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
.product_accordion .quickview_opener {
|
|
|
81 |
cursor: pointer;
|
|
|
82 |
}
|
|
|
83 |
|
|
|
84 |
/* NEW VERSION */
|
|
|
85 |
.addons_select {
|
|
|
86 |
max-width:93%;
|
|
|
87 |
}
|
|
|
88 |
.addons_select details {
|
|
|
89 |
background-color: rgb(255, 255, 255, 1);
|
|
|
90 |
border: 1px solid black;
|
|
|
91 |
border-radius:5px;
|
|
|
92 |
margin:2% 0;
|
|
|
93 |
}
|
|
|
94 |
|
|
|
95 |
.addons_select details summary {
|
|
|
96 |
background-color: rgb(240, 240, 240, 1);
|
|
|
97 |
padding: 10px;
|
|
|
98 |
font-size: 19px;
|
|
|
99 |
font-family: 'oswaldmedium';
|
|
|
100 |
-webkit-touch-callout: none; /* IOS NEEDS TESTING K�nnte dazu f�hren das auf dem Element kein Input angenommen wird */
|
|
|
101 |
-webkit-user-select: none;
|
|
|
102 |
-khtml-user-select: none;
|
|
|
103 |
-moz-user-select: none;
|
|
|
104 |
-ms-user-select: none;
|
|
|
105 |
user-select: none;
|
|
|
106 |
cursor: pointer;
|
|
|
107 |
border-radius:5px;
|
|
|
108 |
}
|
|
|
109 |
|
|
|
110 |
.addons_select details summary:focus {
|
|
|
111 |
border: 0;
|
|
|
112 |
outline: 0;
|
|
|
113 |
border-radius: 5px;
|
|
|
114 |
}
|
|
|
115 |
|
|
|
116 |
.addons_select details summary::-webkit-details-marker {
|
|
|
117 |
/*display: none;*/
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
.addons_select details .product_wrapper .product {
|
|
|
121 |
display: flex;
|
|
|
122 |
justify-content: center;
|
|
|
123 |
align-items: center;
|
|
|
124 |
flex-direction: row;
|
|
|
125 |
padding: 10px;
|
|
|
126 |
border-top: 1px solid rgb(134, 134, 134);
|
|
|
127 |
min-height: 50px;
|
|
|
128 |
height: 100%;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
.addons_select details .product_wrapper .product .checkbox {
|
|
|
132 |
margin: 0 10px 0 0;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
.addons_select details .product_wrapper .product label {
|
|
|
136 |
display: flex;
|
|
|
137 |
flex-direction: row;
|
|
|
138 |
align-items: center;
|
|
|
139 |
justify-content: start;
|
|
|
140 |
flex-grow: 2;
|
|
|
141 |
}
|
|
|
142 |
|
|
|
143 |
.addons_select details .product_wrapper .product label .image img {
|
|
|
144 |
width: 55px;
|
|
|
145 |
}
|
|
|
146 |
|
|
|
147 |
.addons_select details .product_wrapper .product label .informations {
|
|
|
148 |
display: flex;
|
|
|
149 |
flex-direction: column;
|
|
|
150 |
align-items: center;
|
|
|
151 |
justify-content: start;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
.addons_select details .product_wrapper .product label .informations p {
|
|
|
155 |
width: 100%;
|
|
|
156 |
padding-left: 20px;
|
|
|
157 |
padding-right: 10px;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
.addons_select details .product_wrapper .product label .informations p.price {
|
|
|
161 |
color: rgb(24, 24, 24);
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
.addons_select details .product_wrapper .product div .ui-icon,
|
|
|
165 |
.addons_select details .product_wrapper .product label,
|
|
|
166 |
.addons_select details .product_wrapper .product .checkbox {
|
|
|
167 |
cursor: pointer;
|
|
|
168 |
}
|
|
|
169 |
|
|
|
170 |
</style>
|
|
|
171 |
<script>
|
|
|
172 |
$( function() {
|
|
|
173 |
$( "#product_accordion_top" ).accordion({
|
|
|
174 |
collapsible: true
|
|
|
175 |
});
|
|
|
176 |
} );
|
|
|
177 |
</script>
|
|
|
178 |
|
|
|
179 |
{if $addons|is_array}<br />
|
|
|
180 |
<h3>Passendes Zubehör</h3>
|
|
|
181 |
<div class="addons_select">
|
|
|
182 |
{foreach $addons as $cnt => $alladdons}
|
|
|
183 |
{assign var="i" value=0}
|
|
|
184 |
{foreach $alladdons as $fatherID => $addonitems}
|
|
|
185 |
<details>
|
|
|
186 |
<summary>{$addonitems[0].FatherName}</summary>
|
|
|
187 |
<div class="product_wrapper">
|
|
|
188 |
{foreach $addonitems as $itemID => $addonitem}
|
|
|
189 |
<div class="product" id="product_{$itemID}">
|
|
|
190 |
<input type="checkbox" class="checkbox" name="basket_addons[{$addonitem.ID}]" value="{$addonitem.ID}" id="product_{$addonitem.ID}" />
|
|
|
191 |
<label for="product_{$addonitem.ID}">
|
|
|
192 |
<div class="image">
|
|
|
193 |
<img src="{$addonitem.medien[0]->medium.bild_url_mini}" />
|
|
|
194 |
</div>
|
|
|
195 |
<div class="informations">
|
|
|
196 |
<p class="name" title="{$addonitem.kurzbezeichnung}">{$addonitem.kurzbezeichnung}</p>
|
|
|
197 |
<p class="price">{$addonitem.preis1|money_format}</p>
|
|
|
198 |
</div>
|
|
|
199 |
</label>
|
|
|
200 |
{if $ini.modules.quickview==1}
|
|
|
201 |
<!-- quickview opener -->
|
|
|
202 |
<div class="quickview_opener" id="qv_{$addonitem.ID}">
|
|
|
203 |
<span id="product_quick_info" class="ui-icon ui-icon-info"></span>
|
|
|
204 |
</div>
|
|
|
205 |
<div class="quickview_dlg" id="quickview_{$addonitem.ID}">
|
|
|
206 |
{include file="item_quickview.tpl" item=$addonitem}
|
|
|
207 |
</div>
|
|
|
208 |
{/if}
|
|
|
209 |
</div>
|
|
|
210 |
{/foreach}
|
|
|
211 |
</div>
|
|
|
212 |
</details>
|
|
|
213 |
{/foreach}
|
|
|
214 |
{/foreach}
|
|
|
215 |
</div>
|
|
|
216 |
{/if}
|
|
|
217 |
<!--
|
|
|
218 |
<option value="{$fatherID}###{$addonitem.ID}###{$addonitem.kurzbezeichnung|utf8_encode}{if $addonitem.beschreibung}###{$addonitem.beschreibung|utf8_encode|replace:'"':''}{else}###keine Beschreibung{/if}###{$addonitem.bild_1_url}###{$addonitem.preis1}###{$addonitem.preis1|money_format}">{$addonitem.kurzbezeichnung|utf8_encode} - {$addonitem.preis1|money_format}</option>
|
|
|
219 |
<option value="{$fatherID}###{$addonitem.ID}###{$addonitem.kurzbezeichnung_erweitert}{if $addonitem.beschreibung}###{$addonitem.beschreibung|utf8_encode|replace:'"':''}{else}###keine Beschreibung{/if}###{$addonitem.bild_1_url_mini}###{$addonitem.preis1}###{$addonitem.preis1|money_format}">{$addonitem.kurzbezeichnung_erweitert} - {$addonitem.preis1|money_format}</option>
|
|
|
220 |
-->
|
|
|
221 |
|