this.fluidbook.menu.viewWrap(res, 'cart-grandvision-selection', 'data-max-width="1100" data-min-width="1100"');
$("#grandvision-selection select").each(function () {
+ if ($this.filters[$(this).attr('name')] === undefined) {
+ return;
+ }
var allValues = $this.filters[$(this).attr('name')].values;
$this.filters[$(this).attr('name')].multiselect = $(this).multiSelect({
'noneText': $(this).data('label'),
}
selection = '<div class="item" data-ref="' + item + '" data-brand="' + data.BRAND + '" data-category="' + data.Category + '" data-gender="' + data.Gender + '" data-material="' + data.Material + '">';
- selection += '<div class="img" style="background-image: url(\'data/commerce/' + item + '-front.jpg\');">';
- selection += '</div>';
+ selection += '<div class="img" style="background-image: url(\'data/commerce/' + item + '-front.jpg\');"></div>';
+ selection += '<div class="img-angle" style="background-image: url(\'data/commerce/' + item + '-angle.jpg\');"></div>';
selection += '<div class="infos"><h3>' + data['Model Code'] + '</h3>';
selection += '<p>' + infos.join(' | ') + '</p></div>';
selection += '<div class="infos-box">' + item + ' | ' + data['Colour Description'] + '</div>';
var res = '<div class="box">';
res += '<h3>' + b.name + '</h3>';
res += '<div class="slots override-delete" id="grandvision-selection-slots">';
- for (var i = 0; i < 10; i++) {
+ for (var i = 0; i < 16; i++) {
var v = b.refs[i];
if (v === undefined || v === null) {
res += this.slotHTML;
refs.push($(this).data('ref'));
}
});
- $this.boxes[$this.boxIndex] = {name: $(this).find('h3').eq(0).text(), refs: refs.slice(0, 10)};
+ $this.boxes[$this.boxIndex] = {name: $(this).find('h3').eq(0).text(), refs: refs.slice(0, 16)};
});
this.fluidbook.cache.set('boxes', this.boxes);
-#iconList .svg-icon{
+#iconList .svg-icon {
margin: 0 13px !important;
}
.dragging-box-item();
}
- .img {
+ .img, .img-angle {
position: absolute;
top: 0;
left: 0;
width: 200px;
- height: 70px;
+ height: 83px;
background-position: 50% 50%;
background-size: cover;
}
+ .img-angle {
+ display: none;
+ }
+
h3, .infos {
display: none;
}
margin-top: 5px;
width: 100%;
position: absolute;
- bottom: 2px;
+ bottom: -9px;
left: 0;
}
}
margin-top: 17px;
h3 {
- margin-bottom: 15px;
+ margin-bottom: 0px;
}
.slots {
padding: 15px;
white-space: normal;
- p{
+ p {
display: none;
}
textarea {
font-family: @font;
text-align: center;
- color:#000;
+ color: #000;
font-size: 15px;
border: 0;
width: 100%;
.item {
position: relative;
.common-box-item();
+
+ .img-angle {
+ display: block;
+ }
+
+ .img {
+ display: none;
+ }
+
}
.slot {
.text {
padding: 0.25cm;
- textarea{
+
+ textarea {
display: none;
}
+
p {
display: block;
border: 0;
resize: none;
width: 100%;
height: 100%;
- color:#000;
+ color: #000;
background-color: #fff;
}
}
}
.item {
-
.img {
+ display: none;
+ }
+
+ .img-angle {
width: @w;
height: unit(@w*0.35, cm);
background-position: 50% 50%;