Solid Elegant Double-Breasted Jacket
${function() {
const variantData = data.variant || {"id":"8585f099-6bbc-4f21-ab05-fe809a23a326","product_id":"3aa6591f-63f6-4e91-b832-005d441bc56c","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121710-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b2f68a4cebfdd93c63f0ea16f0c6ef74.png","path":"b2f68a4cebfdd93c63f0ea16f0c6ef74.png","width":626,"height":739,"alt":"","aspect_ratio":0.8470906630581867},"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=8585f099-6bbc-4f21-ab05-fe809a23a326","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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":"8585f099-6bbc-4f21-ab05-fe809a23a326","product_id":"3aa6591f-63f6-4e91-b832-005d441bc56c","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121710-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b2f68a4cebfdd93c63f0ea16f0c6ef74.png","path":"b2f68a4cebfdd93c63f0ea16f0c6ef74.png","width":626,"height":739,"alt":"","aspect_ratio":0.8470906630581867},"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=8585f099-6bbc-4f21-ab05-fe809a23a326","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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 `
`;
}()}