Solid Elegant Double-Breasted Jacket
${function() {
const variantData = data.variant || {"id":"ddcbe503-9112-46f6-8513-e1759a09b15e","product_id":"3aa6591f-63f6-4e91-b832-005d441bc56c","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121710-red-s","barcode":"","position":3,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b5f5cf1c2bc615b6b27926af218222a5.jpeg","path":"b5f5cf1c2bc615b6b27926af218222a5.jpeg","width":557,"height":741,"alt":"","aspect_ratio":0.7516869095816464},"wholesale_price":[{"price":32.39,"min_quantity":1}],"weight":"0","compare_at_price":"39.5","price":"32.39","retail_price":"39.5","available":true,"url":"\/products\/solid-elegant-double-breasted-jacket?variant=ddcbe503-9112-46f6-8513-e1759a09b15e","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":18,"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":"ddcbe503-9112-46f6-8513-e1759a09b15e","product_id":"3aa6591f-63f6-4e91-b832-005d441bc56c","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121710-red-s","barcode":"","position":3,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b5f5cf1c2bc615b6b27926af218222a5.jpeg","path":"b5f5cf1c2bc615b6b27926af218222a5.jpeg","width":557,"height":741,"alt":"","aspect_ratio":0.7516869095816464},"wholesale_price":[{"price":32.39,"min_quantity":1}],"weight":"0","compare_at_price":"39.5","price":"32.39","retail_price":"39.5","available":true,"url":"\/products\/solid-elegant-double-breasted-jacket?variant=ddcbe503-9112-46f6-8513-e1759a09b15e","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":18,"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 `
`;
}()}