${function() {
const variantData = data.variant || {"id":"4d47772b-0b10-49ec-af5c-1c99300ab8a5","product_id":"8b14417f-2794-480b-a505-d6d1e931b7e4","title":"Gray-One Size","weight_unit":"g","inventory_quantity":999995,"sku":"101132070001","barcode":"Gray-One SizeA00121520","position":1,"option1":"Gray","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/450c345c56536541a6b37e15879a26b1.jpeg","path":"450c345c56536541a6b37e15879a26b1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.98,"min_quantity":1}],"weight":"40","compare_at_price":"19.23","price":"13.98","retail_price":"19.23","available":true,"url":"\/products\/retro-stone-beaded-multi-layer-woven-bracelet?variant=4d47772b-0b10-49ec-af5c-1c99300ab8a5","available_quantity":999995,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"One Size"}],"off_ratio":27,"flashsale_info":[],"sales":44};
const saveType = "percentage";
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}
`
}()}
${function() {
const postageFreeAmount = 69;
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"4d47772b-0b10-49ec-af5c-1c99300ab8a5","product_id":"8b14417f-2794-480b-a505-d6d1e931b7e4","title":"Gray-One Size","weight_unit":"g","inventory_quantity":999995,"sku":"101132070001","barcode":"Gray-One SizeA00121520","position":1,"option1":"Gray","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/450c345c56536541a6b37e15879a26b1.jpeg","path":"450c345c56536541a6b37e15879a26b1.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.98,"min_quantity":1}],"weight":"40","compare_at_price":"19.23","price":"13.98","retail_price":"19.23","available":true,"url":"\/products\/retro-stone-beaded-multi-layer-woven-bracelet?variant=4d47772b-0b10-49ec-af5c-1c99300ab8a5","available_quantity":999995,"options":[{"name":"Color","value":"Gray"},{"name":"Size","value":"One Size"}],"off_ratio":27,"flashsale_info":[],"sales":44};
return `
`
}()}