Casual V-neck jacket slim knit set
${function() {
const variantData = data.variant || {"id":"ce6a4569-9941-449e-a464-4e69b3ce6a5f","product_id":"824c6e28-d8e1-41a0-9d7c-3cd2c2d2013d","title":"dark gray-L","weight_unit":"kg","inventory_quantity":0,"sku":"66211118187-dark gray-L","barcode":"","position":4,"option1":"dark gray","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/32955daa18f8f4f75198b9a6fef43367.jpeg","path":"32955daa18f8f4f75198b9a6fef43367.jpeg","width":770,"height":578,"alt":"","aspect_ratio":1.3321799307958477},"wholesale_price":[{"price":42.61,"min_quantity":1}],"weight":"0","compare_at_price":"51.34","price":"42.61","retail_price":"51.34","available":true,"url":"\/products\/casual-v-neck-jacket-slim-knit-set?variant=ce6a4569-9941-449e-a464-4e69b3ce6a5f","available_quantity":999999999,"options":[{"name":"color","value":"dark gray"},{"name":"size","value":"L"}],"off_ratio":17,"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":"ce6a4569-9941-449e-a464-4e69b3ce6a5f","product_id":"824c6e28-d8e1-41a0-9d7c-3cd2c2d2013d","title":"dark gray-L","weight_unit":"kg","inventory_quantity":0,"sku":"66211118187-dark gray-L","barcode":"","position":4,"option1":"dark gray","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/32955daa18f8f4f75198b9a6fef43367.jpeg","path":"32955daa18f8f4f75198b9a6fef43367.jpeg","width":770,"height":578,"alt":"","aspect_ratio":1.3321799307958477},"wholesale_price":[{"price":42.61,"min_quantity":1}],"weight":"0","compare_at_price":"51.34","price":"42.61","retail_price":"51.34","available":true,"url":"\/products\/casual-v-neck-jacket-slim-knit-set?variant=ce6a4569-9941-449e-a464-4e69b3ce6a5f","available_quantity":999999999,"options":[{"name":"color","value":"dark gray"},{"name":"size","value":"L"}],"off_ratio":17,"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 `
`;
}()}