${function() {
const variantData = data.variant || {"id":"927a0b6a-798b-45e4-a68d-4d52a91104b6","product_id":"e8a23cac-65ab-461d-a3d9-d39de24dd785","title":"Black-One Size","weight_unit":"kg","inventory_quantity":9963,"sku":"BK1352-Black-Onesize","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/037002abcce7209f39571292dd9cfc65.jpeg","path":"037002abcce7209f39571292dd9cfc65.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"0.5","compare_at_price":"29.97","price":"21","retail_price":"29.97","available":true,"url":"\/products\/sexy-mesh-goth-leggings?variant=927a0b6a-798b-45e4-a68d-4d52a91104b6","available_quantity":9963,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":30,"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}
`
}()}
${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":"927a0b6a-798b-45e4-a68d-4d52a91104b6","product_id":"e8a23cac-65ab-461d-a3d9-d39de24dd785","title":"Black-One Size","weight_unit":"kg","inventory_quantity":9963,"sku":"BK1352-Black-Onesize","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/037002abcce7209f39571292dd9cfc65.jpeg","path":"037002abcce7209f39571292dd9cfc65.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21,"min_quantity":1}],"weight":"0.5","compare_at_price":"29.97","price":"21","retail_price":"29.97","available":true,"url":"\/products\/sexy-mesh-goth-leggings?variant=927a0b6a-798b-45e4-a68d-4d52a91104b6","available_quantity":9963,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":30,"flashsale_info":[],"sales":7};
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 `
`;
}()}