Immediately correct dark circles and protect eyes with SPF 41.
{
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 = '40173082902583';
price = `
${Unick.formatMoney3(4400)}
`
price = `
${ Unick.formatMoney3(4400)}
${Unick.formatMoney3(3080)}
`
">