Chic Sweater Top
${function() {
const variantData = data.variant || {"id":"ebca1ccd-8514-4a82-9e8d-c21e2d0559b3","product_id":"32cb1b9f-b5e9-4d26-bc0c-ed7182bc17f5","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"21052003-black-s","barcode":"","position":1,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3b3b5f6d3c476ff3d453f8af8e5a0ab.jpeg","path":"e3b3b5f6d3c476ff3d453f8af8e5a0ab.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":36.59,"min_quantity":1}],"weight":"0","compare_at_price":"41.11","price":"36.59","retail_price":"41.11","available":true,"url":"\/products\/chic-sweater-top?variant=ebca1ccd-8514-4a82-9e8d-c21e2d0559b3","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"s"}],"off_ratio":11,"flashsale_info":[],"sales":3};
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":"ebca1ccd-8514-4a82-9e8d-c21e2d0559b3","product_id":"32cb1b9f-b5e9-4d26-bc0c-ed7182bc17f5","title":"black-s","weight_unit":"kg","inventory_quantity":0,"sku":"21052003-black-s","barcode":"","position":1,"option1":"black","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3b3b5f6d3c476ff3d453f8af8e5a0ab.jpeg","path":"e3b3b5f6d3c476ff3d453f8af8e5a0ab.jpeg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":36.59,"min_quantity":1}],"weight":"0","compare_at_price":"41.11","price":"36.59","retail_price":"41.11","available":true,"url":"\/products\/chic-sweater-top?variant=ebca1ccd-8514-4a82-9e8d-c21e2d0559b3","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"s"}],"off_ratio":11,"flashsale_info":[],"sales":3};
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 `
`;
}()}