${function() {
const variantData = data.variant || {"id":"4c3caf40-ba25-4908-bd59-0070682f2398","product_id":"3decbc8b-c7cb-433b-910a-c6d972567961","title":"Blue-Onesize","weight_unit":"kg","inventory_quantity":1000,"sku":"BK1604-Bag-Blue","barcode":"","position":2,"option1":"Blue","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5927278af646a85bdc77ffc0916e3196.jpeg","path":"5927278af646a85bdc77ffc0916e3196.jpeg","width":480,"height":562,"alt":"","aspect_ratio":0.8540925266903915},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/skull-demon-cross-body-bag?variant=4c3caf40-ba25-4908-bd59-0070682f2398","available_quantity":1000,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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":"4c3caf40-ba25-4908-bd59-0070682f2398","product_id":"3decbc8b-c7cb-433b-910a-c6d972567961","title":"Blue-Onesize","weight_unit":"kg","inventory_quantity":1000,"sku":"BK1604-Bag-Blue","barcode":"","position":2,"option1":"Blue","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5927278af646a85bdc77ffc0916e3196.jpeg","path":"5927278af646a85bdc77ffc0916e3196.jpeg","width":480,"height":562,"alt":"","aspect_ratio":0.8540925266903915},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/skull-demon-cross-body-bag?variant=4c3caf40-ba25-4908-bd59-0070682f2398","available_quantity":1000,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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 `
`;
}()}