An ultra-hydrating overnight mask that reinforces skin's moisture barrier
{
if($event.detail > 0){
let has_discount = false;
let discount_percentage = 0;
has_discount = true;
let item_price = $event.detail;
if(subscribe){
discount_percentage = 0;
}else{
discount_percentage = 30;
}
let discount_price = item_price * discount_percentage / 100;
discount_price = item_price - discount_price;
price = Unick.formatMoney3(discount_price) ;
if(!has_discount){
price = ( subscribe ? `
` + price + ` `: ' ') + Unick.formatMoney3($event.detail);
}
if(!subscribe && has_discount){
console.log('price', price);
price = `
` + price + ` ` + Unick.formatMoney3(discount_price);
}
}
});"
x-init="
productForm = $refs.product_form;
button_label = 'ADD TO CART';
first_variant = '40133807931447';
price = `
${Unick.formatMoney3(7600)}
`
price = `
${ Unick.formatMoney3(7600)}
${Unick.formatMoney3(5320)}
`
">