Elegant Denim Jacket
${function() {
const variantData = data.variant || {"id":"ddb402e2-3903-4698-b1bc-a4523034f53f","product_id":"93f4943e-30f2-4253-979f-1d6e1ebc24a3","title":"Khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308142546-Khaki-S","barcode":"","position":6,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2bc0adf18a4875a2b115a4ce1e037773.jpeg","path":"2bc0adf18a4875a2b115a4ce1e037773.jpeg","width":720,"height":900,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":58.66,"min_quantity":1}],"weight":"0.65","compare_at_price":"78","price":"58.66","retail_price":"78","available":true,"url":"\/products\/elegant-denim-jacket?variant=ddb402e2-3903-4698-b1bc-a4523034f53f","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${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":"ddb402e2-3903-4698-b1bc-a4523034f53f","product_id":"93f4943e-30f2-4253-979f-1d6e1ebc24a3","title":"Khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2308142546-Khaki-S","barcode":"","position":6,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2bc0adf18a4875a2b115a4ce1e037773.jpeg","path":"2bc0adf18a4875a2b115a4ce1e037773.jpeg","width":720,"height":900,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":58.66,"min_quantity":1}],"weight":"0.65","compare_at_price":"78","price":"58.66","retail_price":"78","available":true,"url":"\/products\/elegant-denim-jacket?variant=ddb402e2-3903-4698-b1bc-a4523034f53f","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":25,"flashsale_info":[],"sales":0};
return `
`
}()}
${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 `
`;
}()}