${function() {
const variantData = data.variant || {"id":"738d3eb3-ba3d-48c7-9f02-0b4e3c5baec2","product_id":"e928d190-24b6-455b-bebd-29486579a77c","title":"color1-One Size","weight_unit":"kg","inventory_quantity":0,"sku":"X208-241219-03-V7C29J8M7J-color1-One Size","barcode":"","position":1,"option1":"color1","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d8263d82ea3e67f60e79877edc8c311.jpeg","path":"0d8263d82ea3e67f60e79877edc8c311.jpeg","width":768,"height":1024,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0","compare_at_price":"8.99","price":"8.99","retail_price":"8.99","available":true,"url":"\/products\/handmade-ceramic-necklace-retro-ceramic-ethnic-style-valentines-day-pendant-unique-accessories?variant=738d3eb3-ba3d-48c7-9f02-0b4e3c5baec2","available_quantity":999999999,"options":[{"name":"Color","value":"color1"},{"name":"Size","value":"One Size"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function() {
const postageFreeAmount = 79;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}