${function() {
const variantData = data.variant || {"id":"0b7db588-41c6-42cc-a24a-c93a853f1bd2","product_id":"e7dcd4be-694a-4a76-af50-c49cac86686b","title":"'---'--","weight_unit":"kg","inventory_quantity":0,"sku":"GB2046-Black-Onesize","barcode":"","position":1,"option1":"'--","option2":"'--","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":true,"url":"\/products\/dare-treat-me-bad-thigh-garter?variant=0b7db588-41c6-42cc-a24a-c93a853f1bd2","available_quantity":999999999,"options":[{"name":"Color","value":"'--"},{"name":"Size","value":"'--"}],"off_ratio":0,"flashsale_info":[],"sales":37};
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 variantData = data.variant || {"id":"0b7db588-41c6-42cc-a24a-c93a853f1bd2","product_id":"e7dcd4be-694a-4a76-af50-c49cac86686b","title":"'---'--","weight_unit":"kg","inventory_quantity":0,"sku":"GB2046-Black-Onesize","barcode":"","position":1,"option1":"'--","option2":"'--","option3":"","note":"","image":null,"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"14.99","price":"14.99","retail_price":"14.99","available":true,"url":"\/products\/dare-treat-me-bad-thigh-garter?variant=0b7db588-41c6-42cc-a24a-c93a853f1bd2","available_quantity":999999999,"options":[{"name":"Color","value":"'--"},{"name":"Size","value":"'--"}],"off_ratio":0,"flashsale_info":[],"sales":37};
return `
`
}()}
${function() {
const postageFreeAmount = 100;
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 `
`;
}()}