
Kokosnussöl Shampoo Bar für trockenes, beschädigtes Haar
Bewertet mit 4,9 von 5 Sternen
21 Bewertungen
variant.price){
onSale = true;
}else{
onSale = false;
}
}"
@discounted-price.window="if($event.detail.id == 7785573023925) {
console.log('discounted price update', $event.detail);
variant.price = $event.detail.new_price;
variant.orignal_price = $event.detail.new_orignal_price;
}"
@variant-updated.window="variant.price = $event.detail.variant.price; if(!isBundle){ soldOut = !$event.detail.availibility }"
@discount-applied.window="$nextTick(() => checkDiscountCode())"
@discount-removed.window="$nextTick(() => checkDiscountCode())"
class="price text-xl justify-center md:justify-between font-semibold flex gap-x-2 items-center price--show-badge ">
Normaler Preis
€18,95
Grundpreis
pro


{
discount_percentage = $event.detail?.percentage || 0;
})"
x-init="$watch('selected', value => {
if (value.length != total_items) {
discount_percentage = 0;
}else{
discount_percentage = 0;
}
const cookieDiscount = Unick.getCookie('discount_code');
if(cookieDiscount){
const discount = discount_table.find((item) => {
return item.toLowerCase().includes(cookieDiscount.toLowerCase());
});
const discountValue = discount?.split(':')[1] || 0;
discount_percentage += parseInt(discountValue);
}
})"
x-data="{
discount_table: JSON.parse(JSON.stringify(`WINTER24:20,Secretsale:25,Kitsch25:25,FB20:20,WELCOME20:20,Kitschwelcome:20,SUMMEREND:20,15Kitsch:15,Fall15:15,CODE10:10,HAIRDAY24:25,discount24:24,LOVEYA30:30`)).split(','),
renderPrice(price){
let total = price;
if(this.discount_percentage > 0){
total = price - (price * (this.discount_percentage / 100));
}
return Unick.formatMoney(total);
},
selected: [],
fixed_product: false,
discount_percentage: 0,
total_items: 4,
add(item) {
this.selected.push(item)
},
remove(id) {
this.selected = this.selected.filter(item => item.id !== id)
},
isInBundle(id) {
return this.selected.some(item => item.id === id)
},
priceBeforeDiscount(){
let total = 0;
this.selected.forEach(function (item) {
total += item.price;
})
return total;
},
totalPrice(){
let total = 0;
this.selected.forEach(function (item) {
total += item.price;
})
total = total - (total * (this.discount_percentage / 100));
let extraDiscount = 0;
let discount = 0;
this.selected.forEach(function (item) {
item.tags.forEach(function (tag) {
if(tag.includes('discount:')){
discount = tag.split(':')[1];
}
})
})
if(discount > 0){
extraDiscount = total * (discount / 100);
}
return total - extraDiscount;
},
addToCart(){
let cartObj = [];
let bundleTitle = 'Kokosnussöl Shampoo Bar für trockenes, beschädigtes Haar';
let bundleHandle = 'kokosnuss-ol-tiefen-feuchtigkeitsspendendes-festes-shampoo-riegel';
let bundleCount = '4';
let bundleQty = 1;
let index = 0;
this.selected.forEach(function (item) {
cartObj.push({
quantity: 1,
id: item.variants[0].id,
properties: {
'_fbt_bundle': bundleTitle,
'_fbt_bundle_handle': bundleHandle,
'_fbt_bundle_count': bundleCount,
}
})
})
if(this.fixed_product && this.total_items == this.selected.length){
cartObj = [];
cartObj.push({
quantity: 1,
id: this.fixed_product,
})
}
fetch(routes.cart_add_url + '.js', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
items: cartObj
})
})
.then(response => {
// Update cart with event dispatch
this.$dispatch('update-cart', { cart: response });
// Open cart after adding product
this.$dispatch('toggle-cart-drawer');
});
}
}">
+
Wird oft zusammen gekauft
Total price:
Kokosnussöl Shampoo Bar für trockenes, beschädigtes Haar
€14,22
€18,95
Kokosnussöl-Conditioner-Bar für trockenes, strapaziertes Haar
€14,22
€18,95
Shea Butter Solid Body Wash
€11,97
€15,95
Selbstentleerende Seifenschale - Schwarz
€14,22
€18,95
{
// var st = window.pageYOffset || document.documentElement.scrollTop;
// show = st > lastScrollTop;
let AddToCart = document.querySelector('.main-product form.product-form .button-add-to-cart');
if(AddToCart?.getBoundingClientRect().top < -10){
show = true;
}else{
show = false;
}
})"
class="add-to-cart-footer p-3 bg-white text-black fixed bottom-0 w-full z-20 shadow border-t">
{
selectOptions[$event.detail?.position] = $event.detail?.event?.target.value;
let getVariant = Unick.findVariant(variants , selectOptions);
selectedVariant = (getVariant) ? getVariant : null;
})">

Kokosnussöl Shampoo Bar für trockenes, beschädigtes Haar
variant.price){
onSale = true;
}else{
onSale = false;
}
}"
@discounted-price.window="if($event.detail.id == 7785573023925) {
console.log('discounted price update', $event.detail);
variant.price = $event.detail.new_price;
variant.orignal_price = $event.detail.new_orignal_price;
}"
@variant-updated.window="variant.price = $event.detail.variant.price; if(!isBundle){ soldOut = !$event.detail.availibility }"
@discount-applied.window="$nextTick(() => checkDiscountCode())"
@discount-removed.window="$nextTick(() => checkDiscountCode())"
class="price flex gap-x-2 items-center">
Normaler Preis
€18,95
Grundpreis
pro
{
qty = $event.detail.qty;
})"
x-init="$nextTick(() => {
$watch('qty', value => {
console.log('qty', value);
$dispatch('quantity-updated', { qty: value });
});
});"
@quantity-updated.window="$nextTick(() => {
qty = $event.detail.qty;
})"
x-data="{ qty: 1 }">
4 Gründe, warum Millionen von Frauen auf Kokosnussöl von Kitsch umsteigen
1. spendet intensiv Feuchtigkeit und nährt
2. fördert ein gesünderes Haargefühl
3. minimiert Schäden und Brüche
4. revitalisiert das Haar bei jeder Anwendung