10.April 2026
|
|
@ -99,6 +99,10 @@ a[aria-expanded="true"] > .fa-caret-expand:before {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.lead {
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.badge-outline-warning-dark {
|
||||
background-color: transparent;
|
||||
-webkit-box-shadow: 0 0 0 1px #ffd950 inset;
|
||||
|
|
|
|||
BIN
public/img/incentive/nikki-beach.jpg
Normal file
|
After Width: | Height: | Size: 226 KiB |
BIN
public/img/incentive/nikki-beach1.jpg
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
public/img/incentive/nikki-beach2.jpg
Normal file
|
After Width: | Height: | Size: 218 KiB |
BIN
public/img/incentive/nikki-beach3.jpg
Normal file
|
After Width: | Height: | Size: 205 KiB |
BIN
public/img/incentive/nikki-beach4.jpg
Normal file
|
After Width: | Height: | Size: 225 KiB |
BIN
public/img/incentive/nikki-beach5.jpg
Normal file
|
After Width: | Height: | Size: 199 KiB |
BIN
public/img/incentive/nikki-beach6.jpg
Normal file
|
After Width: | Height: | Size: 244 KiB |
BIN
public/img/incentive/nikki-beach7.jpg
Normal file
|
After Width: | Height: | Size: 215 KiB |
|
|
@ -121,21 +121,80 @@ var IqShoppingCart = {
|
|||
_self.performRequest({product_id: product_id, qty: qty, action: 'updateCart'})
|
||||
.done(_self.refreshItemsAndView);
|
||||
},
|
||||
/**
|
||||
* Liefertag-Info (wenn keine Warnung) bzw. Warnung (Partner-Center Abo, < 20 Tage): nach jedem AJAX-Warenkorb-Update,
|
||||
* da eingebettete Scripts in .html() nicht ausgeführt werden.
|
||||
*/
|
||||
updateAboIntervalWarning: function () {
|
||||
var warningTemplate = window.aboIntervalWarningTemplate;
|
||||
var infoTemplate = window.aboIntervalInfoTemplate;
|
||||
if (!warningTemplate && !infoTemplate) {
|
||||
return;
|
||||
}
|
||||
var select = document.getElementById('abo_interval_select');
|
||||
if (!select) {
|
||||
return;
|
||||
}
|
||||
var warning = document.getElementById('abo_interval_warning');
|
||||
var info = document.getElementById('abo_interval_info');
|
||||
var option = select.options[select.selectedIndex];
|
||||
if (!option) {
|
||||
return;
|
||||
}
|
||||
var days = parseInt(option.getAttribute('data-days'), 10);
|
||||
var date = option.getAttribute('data-date') || '';
|
||||
if (isNaN(days)) {
|
||||
return;
|
||||
}
|
||||
var showWarning = days < 20;
|
||||
if (warning && warningTemplate) {
|
||||
if (showWarning) {
|
||||
warning.innerHTML =
|
||||
'<i class="fa fa-exclamation-triangle"></i> ' +
|
||||
warningTemplate.replace('__DAYS__', days).replace('__DATE__', date);
|
||||
warning.classList.remove('d-none');
|
||||
} else {
|
||||
warning.classList.add('d-none');
|
||||
}
|
||||
}
|
||||
if (info && infoTemplate) {
|
||||
if (showWarning) {
|
||||
info.innerHTML = '';
|
||||
info.classList.add('d-none');
|
||||
} else {
|
||||
info.innerHTML =
|
||||
'<i class="fa fa-info-circle"></i> ' +
|
||||
infoTemplate.replace('__DAYS__', days).replace('__DATE__', date);
|
||||
info.classList.remove('d-none');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
refreshItemsAndView: function (data){
|
||||
var _self = IqShoppingCart;
|
||||
if (data && data.response === false && data.message) {
|
||||
alert(data.message);
|
||||
return;
|
||||
}
|
||||
$(_self.card_holder).html(data.html_card);
|
||||
$(_self.comp_holder).html(data.html_comp);
|
||||
_self.showInit();
|
||||
_self.updateAboIntervalWarning();
|
||||
|
||||
},
|
||||
refreshDatabaseAndView: function (data) {
|
||||
var _self = IqShoppingCart;
|
||||
if (data && data.response === false && data.message) {
|
||||
alert(data.message);
|
||||
return;
|
||||
}
|
||||
$(_self.card_holder).html(data.html_card);
|
||||
$(_self.comp_holder).html(data.html_comp);
|
||||
|
||||
var input = $(_self.table).find('input[name="product_qty_'+data.data.product_id+'"]');
|
||||
input.val(data.data.qty);
|
||||
_self.showInit();
|
||||
_self.updateAboIntervalWarning();
|
||||
},
|
||||
locationReload : function(){
|
||||
//location.reload();
|
||||
|
|
@ -147,6 +206,7 @@ var IqShoppingCart = {
|
|||
$(_self.comp_holder).html(data.html_comp);
|
||||
|
||||
_self.showInit();
|
||||
_self.updateAboIntervalWarning();
|
||||
_self.oTable.draw();
|
||||
},
|
||||
checkNumber : function(number){
|
||||
|
|
@ -196,4 +256,11 @@ var IqShoppingCart = {
|
|||
console.log("Sorry, there was a problem!");
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
$(function () {
|
||||
$(document).on('change', '#abo_interval_select', function () {
|
||||
IqShoppingCart.updateAboIntervalWarning();
|
||||
});
|
||||
IqShoppingCart.updateAboIntervalWarning();
|
||||
});
|
||||