Casual Solid Color Slim Coats
${function() {
const variantData = data.variant || {"id":"2ee4281c-2a38-4c53-8c2a-b1e5c9fdb63a","product_id":"af18942b-7cc1-4286-843e-da401ea98d2f","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121507-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/01adf407177a1599b75683fdc4827897.jpeg","path":"01adf407177a1599b75683fdc4827897.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.64,"min_quantity":1}],"weight":"0","compare_at_price":"51.41","price":"41.64","retail_price":"51.41","available":true,"url":"\/products\/casual-solid-color-slim-coats?variant=2ee4281c-2a38-4c53-8c2a-b1e5c9fdb63a","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"s"}],"off_ratio":19,"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":"2ee4281c-2a38-4c53-8c2a-b1e5c9fdb63a","product_id":"af18942b-7cc1-4286-843e-da401ea98d2f","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121507-black-s","barcode":"","position":2,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/01adf407177a1599b75683fdc4827897.jpeg","path":"01adf407177a1599b75683fdc4827897.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":41.64,"min_quantity":1}],"weight":"0","compare_at_price":"51.41","price":"41.64","retail_price":"51.41","available":true,"url":"\/products\/casual-solid-color-slim-coats?variant=2ee4281c-2a38-4c53-8c2a-b1e5c9fdb63a","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"s"}],"off_ratio":19,"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 `
`;
}()}