Elegant Short Version Sweater Cardigan
${function() {
const variantData = data.variant || {"id":"d33c14d6-9d6c-4395-a827-c12612da847f","product_id":"0b72a96b-3bee-4189-8c8b-44f38553656a","title":"Black-One Size(45-60KG)","weight_unit":"kg","inventory_quantity":78022,"sku":"221027870-Black-One Size(45-60KG)","barcode":"","position":3,"option1":"Black","option2":"One Size(45-60KG)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4a63d0281ff3d3a365874982b4c46589.jpeg","path":"4a63d0281ff3d3a365874982b4c46589.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.4,"min_quantity":1}],"weight":"0.4","compare_at_price":"48.64","price":"39.4","retail_price":"48.64","available":true,"url":"\/products\/elegant-short-version-sweater-cardigan?variant=d33c14d6-9d6c-4395-a827-c12612da847f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size(45-60KG)"}],"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":"d33c14d6-9d6c-4395-a827-c12612da847f","product_id":"0b72a96b-3bee-4189-8c8b-44f38553656a","title":"Black-One Size(45-60KG)","weight_unit":"kg","inventory_quantity":78022,"sku":"221027870-Black-One Size(45-60KG)","barcode":"","position":3,"option1":"Black","option2":"One Size(45-60KG)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4a63d0281ff3d3a365874982b4c46589.jpeg","path":"4a63d0281ff3d3a365874982b4c46589.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.4,"min_quantity":1}],"weight":"0.4","compare_at_price":"48.64","price":"39.4","retail_price":"48.64","available":true,"url":"\/products\/elegant-short-version-sweater-cardigan?variant=d33c14d6-9d6c-4395-a827-c12612da847f","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size(45-60KG)"}],"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 `
`;
}()}