${function() {
const variantData = data.variant || {"id":"86a07f6b-e397-488f-b6e2-f0c02711c800","product_id":"ae87dd9a-854e-4d90-82b6-12832279664b","title":"Rainbow","weight_unit":"kg","inventory_quantity":993,"sku":"LGBT-230206-04","barcode":"","position":1,"option1":"Rainbow","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/719de9f32ecdfcaa416e43cf6567b03b.jpeg","path":"719de9f32ecdfcaa416e43cf6567b03b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":5.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"5.99","retail_price":"0","available":true,"url":"\/products\/celebrate-love-diversity-lgbt-rainbow-adjustable-bracelet-3?variant=86a07f6b-e397-488f-b6e2-f0c02711c800","available_quantity":999999999,"options":[{"name":"Color","value":"Rainbow"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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}
`
}()}
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 `
`;
}()}